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

[Solved] RadListBox giving error when inside a RadGrid

1 Answer 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hemika
Top achievements
Rank 1
Hemika asked on 10 Jul 2013, 11:27 AM
Hi, 
I dont know which section to post this.
I have a sharepoint project. With 2 web parts(assume Grid 1 and 2) each having a radgrid. I created another webpart with having both of those webparts as usercontrol. Grid 1 is a normal radgrid and Grid 2 has a gridItemTemplate column which has a RadComboBox and a RadListBox. (See attachment for clarification)

I have attached the a sample project. To recreate the issue,  Add the "VisualWebPart1" to a page. It will have 2 grids with no data. Click add record in the top grid (i.e Grid 1). Then click add record on the bottom grid(i.e Grid 2). I get script error on the following line.

"Telerik.Web.UI.RadListBox._preInitialize("ctl00_m_g_48fd96ff_fcd9_4ad7_b892_f17a26434abb_ctl00_grid2_RadGrid2_ctl00_ctl03_ctl01_rdSelectedUsers","0");"

Error : "SCRIPT5007: Unable to get value of the property '_preInitialize': object is null or undefined "


Download Sample Proj.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 12 Jul 2013, 07:49 AM
Hi,

 I have inspected the sample project and notices that RadAjaxManager is not used properly. Please review this help topic where the is provided the right way to use RadAjaxManager in SharePoint WebPart.

Hope this will be helpful. 

Regards,
Plamen
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
Hemika
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or