Hi sir,
I use radgrid in that i give MasterTableView in that datakeynames and clientdatakeynames some time it show error like this"Cannot read property 'get_dataItems' of null". once i clear the temp file and run again it work. After 2 days it show some error again. I need solution for this ASAP.
6 Answers, 1 is accepted
Hello,
You can try these 3 things to resolve the issue:
1. Ensure that there is OnCommand event defined as demonstrated here:
2. Wrap the script tag inside a RadScriptBlock:
https://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxmanager/radcodeblock-and-radscriptblock
3. Ensure that the RadScriptBlock and the script inside are placed inside the body and after the RadScriptManager.
I hope this will prove helpful.
Regards,
Eyup
Progress Telerik
Hi Eyup,
thanks for reply i use external javascript file so how we put Wrap the script tag inside a RadScriptBlock.
Hi,
Find the <script ...></script> element which contains the link to the external js file and try to include it inside the RadScriptBlock.
Regards,
Eyup
Progress Telerik
Hi eyup,
Thanks for reply like this we use as per in screenshot file or u send sample for me.
Hi,
Yes, this is correct. Just make sure also that every script related to Telerik components is added after the script manager:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
//Put your JavaScript code here.
</script>
</telerik:RadScriptBlock>
https://www.telerik.com/support/kb/aspnet-ajax/ajaxmanager/details/get-more-descriptive-errors-by-disabling-ajax
Regards,
Eyup
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.
Hi Team,
We are facing problem still now,we cant solve this, pls help to solve this.
Form inspect code , we get gird client id ,property , but when get mastertableview, retrun null, here i attach screenshots
http://prntscr.com/twywe3
http://prntscr.com/twyyru
And this problem appear only one place, same copy will work perfectly.
Pls reply asap
Thanks