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

RadGrid Dynamically Created Columns paint incorrectly

1 Answer 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 20 Jun 2013, 01:15 PM
I'm having issues with a grid that is displaying data using columns I create server side based on the folder selected.
Example, a folder for Photographs would have different columns than one for Invoices, etc.

So here's the workflow:
1. Without selecting an item in the grid, click the NOTIFY button (attachment: step1.png)
2. Nothing is selected so I add an alert to the RadAjaxManager like so: (attachment: step2.png)
RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("alert('NOTHING SELECTED. Please select the document for which you want to send a notifcation.');")

3. Clicking the 'OK' button to dismiss the alert returns you to the page with incorrect grid columns and odd data displaying. (attachment: step3.png)

I'm not sure how to get the grid to rebind and paint correctly after going client side with the alert?
Jason

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 25 Jun 2013, 02:33 PM
Hello Jason,

Can you try to use the ScriptManager.RegisterStartupScript method as described in the topic below and verify if this makes any difference?

http://www.telerik.com/help/aspnet-ajax/ajax-execute-custom-javascript.html

Regards,
Pavlina
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Jay
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or