This is a migrated thread and some comments may be shown as answers.

Using placeholder and my grid appearence is no good when scrolling

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan Rowe
Top achievements
Rank 1
Dan Rowe asked on 24 May 2010, 09:33 PM
I have a grid in a DNN module that is completly created in the page load and there are placeholders on the ascx code that the grid is rendered through.
I also want to allow scrolling on the grid but I am having dificulties with the appearance when doing so.
I found this Forum post that explains how to do this but I am not sure how this works under the circumstances.
Do I still use the Script at the top of my ASCX and since I am using placeholders and not mentioning the grid in the ASCX code at all where do I handle calling the script?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 25 May 2010, 12:57 PM
Hello Dan Rowe,

First of all, are you sure that you are reading the correct documentation? The article you mention is about the old ("classic") RadGrid for ASP.NET. This is the same article for the new RadGrid for ASP.NET AJAX:

http://www.telerik.com/help/aspnet-ajax/grdresizegridwithscrollingwhenlessdata.html

Now to your question - you can include the Javascript code in the ASCX declaratively or add the script programmatically as a Literal Control. You can subscribe to the RadGrid's GridCreated client event programmatically as well (set gridInstance.ClientSettings.ClientEvents.OnGridCreated = "functionName"), so you should have no problems in your scenario at all.

Greetings,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Dan Rowe
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or