Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Telerik Wrapper - lets start a documentation!Telerik Wrapper - lets start a documentation!
Previous
 
Next
New Post
3/10/2011 11:22 AM
 

Hi all,

I am just working on a DNNGrid(RadGrid from Telerik wrapped into DNN). I can not find any documentation about the wrappers or the licences.
http://www.dotnetnuke.com/Resources/W...
This is the best Link I could found about the wrappers. My question is if this is the current state of the wrappers and if I have to do any other things to get the DNNGrid working fine?

Is it possible for me to use the Designer while developing to create the DNNGrid on the page before runtime?
I have a DNN 5.06.01 running and I am trying to get a DNNGrid via ObjectDataSource and DataSet working.

I create the Grid at runtime with:

DNNGrid oTestGrid = new DNNGrid();
**filling the grid with datasource and setting up soem other things like Pagesize and so on**
phTestGrid.Controls.Add(oTestGrid);
oTestGrid.DataBind();

the phTestGrid is a asp:Placeholder.
Is this the right way to get the Grid working?
because of if I try to switch the page from 1 to 3 it will switch but back to 1 it will load and load and never stop loading (you can see it on the Statusbar: oTestGrid.ShowStatusBar = true;)
If I try to reload the page (clicking on some other tab in the menubar) the following error coming up:

http://img151.imageshack.us/i/dnngrid...

It would be great if some one can help me with this issue and/or give me some hints or links how to use the wrapper DNNGrid.

best regards,

Marc

 
New Post
3/10/2011 11:36 AM
 
the wiki also contains a (short) page on the dnngrid (http://www.dotnetnuke.com/Resources/Wiki/tabid/1409/Page/DnnGrid/Default.aspx) which has a link to http://www.tressleworks.ca/Blog/tabid/73/EntryId/77/Thats-Too-Easy-Implementing-DNNGrid-aka-Telerik-RadGrid.aspx which is a nice simple example. As you can see the telerik grid is just a subclassed gridview so any gridview code should work as expected. In your example you're adding entries to a placeholder so I suspect you have a problem with your code in that area e.g. not dynamically reloading the control after postbacks http://geekswithblogs.net/chrishan/archive/2007/03/27/109988.aspx

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/11/2011 4:12 AM
 

Hi Cathal,

thanks for your answer!
In the Second link this is not a dynamical added DNNGrid.
As you can see in the first line he is filling a existing object with a new DNNGrid (where is the instance?). He can DataBind() the grid before it is existing on the page (controls.add()): this causes an error normally. I think he has always an existing instance of a telerik:RadGrid on his aspx page and is filling it again in this method. If I am doing so I can get the Viewstate working, too.

The third link is interesting but I cant get it. I am also creating and adding the grid on "page_Init()" but my viewstate seems not to work correctly.
The msdnpost has just words but no sample.

Is it possible for you to give me a sample or hitns when to create the control, when to add and when to fill (databind())?

My first postback (for example for the paging) is working but the second one is loading infinitely (reason is the damaged or missingviewstate of the control, I think (correct me please if I am wrong)).

combined question:
how is it possible to make the DNNGrid "ajaxified" (as the Telerik guys call it). I cant use the "RadAjaxManager" because of Community Edition.
Can I get the Grid ajaxified in any other ways? would be great if you can find some more great links :-)

best regards,

Marc

 
New Post
3/11/2011 4:25 AM
 

Ok, as I wrote the last post I think I figured it out.

The difference was that I was using a ObjectDataSource and filled the (oDNNGrid.DataSourceID = "dsObjectDataSource";). I think this is a problem in combination of dynamically adding the DNNGrid to the page.

Now I am using the following: (oDNNGrid.DataSource =dsObjectDataSource;). I am filling the Grid with the DataSource directly and now it is working fine. I dont think this has something to do with viewstates? 

Other problem I saw in this case was that the following code is also not correctly working: (oDNNGrid.AutoGenerateDeleteColumn = true;) this will cause that the grid will generate a delete-column on every single postback i.e. after 5 postbacks you will have 5 Delete-COlumns (I set it to false now and generate the column one time on my one).

It would be great anyway if you can help me with the "ajaxified" Grid.

best regards,

Marc

 
New Post
3/17/2011 10:00 AM
 
doesn't matter anymore.
got it on my own.

best regards,

Marc
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Telerik Wrapper - lets start a documentation!Telerik Wrapper - lets start a documentation!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out