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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDataGrid paging and so onDataGrid paging and so on
Previous
 
Next
New Post
2/1/2006 4:51 PM
 

Is there anyone who implemented ClientAPI paging in DNN with a datagrid? Trying to accomplish something as they have made over att CS (http://communityserver.org/blogs/default.aspx) look at the right hand webparts "Most Comments" and "Most Viewed" and use the paging to see the AJAX feature.

/Rob

 
New Post
2/1/2006 5:02 PM
 

Not that I am aware of, though this would not be hard to implement from the control perspective...  Seems like a useful candidate for the DotNetNuke WebControls project...   so many cool controls to develop and so little time...

If anyone is interested in learning about control development this may be a good sample to try and create.  I would suggest taking one of the existing DNNControls like the DNNTextSuggest one and tweaking it to do the paging...  If you decide to tinker and want to contribute to the DNN web control project I will be happy to assist:)


 
New Post
2/1/2006 5:28 PM
 

After thinking on this a little more it reminded me of a simple control I was meaning to write that is similar.  I was considering writing a control that does the min/max capability.  Where the contents of the maximized control are not initially rendered until the user expands it...   This would probably be where I would start.  Once I finished that I would move on to a little more complicated control that does the page numbers...  in essence they are the same thing, only that the paging control has more than one "expand" button, that happens to collapse all other expand buttons when clicked.  Wheter or not I would make one control out of it or two is another question...

For me I need to decide if I should tackle the DNNMenu or knock out some of these simple controls first...  I am currently spending way too much time on the ASP.NET 2.0 Menu Navigation provider...


 
New Post
2/1/2006 5:34 PM
 

I will take a deeper look into this tomorrow. I have made some progress integrating a derived class of datagrid with the ClientAPI, however I have not find a way yet to make all code totally dynamic. And it's a little tricky what logic I need to do in the RaiseClientAPICallbackEvent to manage the event targets.

   DotNetNuke.UI.Utilities.ClientAPI.GetCallbackEventReference(Me.Parent.Parent.Parent, "'"

it's the level that messes things up a little, maybe I will find a dynamic way to manage this tomorrow or how to make it a logic part of my overloaded Datagrid control API.

Cheers,
/Rob

 

 
New Post
2/2/2006 6:16 PM
 

After spending some time on this today, looking at several AJAX implementations I’m fairly up to date what to do to make this work through ClientAPI, but unexpectedly (it easily becomes complicated as you one second tries to manipulate the DataGrid control and in the next poke around in the ClientAPI) I seem unable to find a vital feature as I’m unsure if it’s supported by the ClientAPI alone. 

I have the following question to you Jon; You have apparently thought about making hide/show working through dynamically fetching UI components. #1 Question is, how? :o)

I have made this a long time ago (Pre .NET) by rendering each required component through a common .asp page which I loaded in a hidden iframe, As this was done I searched for the node ID I was to replace within the freshly loaded iframe and performed a copy between the nodes innerHTML.

However, I’m not sure if this is allowed today depending on the .NET page viewstate. I remember reading here in the blogs and on the asp.net forum about the viewstate protection implemented in DNN to prevent page manipulations and hijacked postbacks. (Maybe this is just made through some cookie magic and we all go free but I haven’t looked in to this so I’m not sure)

Dynamical adding and removing of some chunks of UI is required as you indicated above Jon in order to update the grid after some paging is performed. For me the question is what approach to take?

Naturally it required more time than what I hoped for just to figure the basics out but hey! :)

Cheers,
/Rob

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDataGrid paging and so onDataGrid paging and so on


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