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

how we cannot get the masterTableView some time

6 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
M Kumar
Top achievements
Rank 1
Iron
Veteran
M Kumar asked on 27 Feb 2020, 04:45 AM

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

Sort by
0
Eyup
Telerik team
answered on 02 Mar 2020, 12:09 PM

Hello,

 

You can try these 3 things to resolve the issue:

1. Ensure that there is OnCommand event defined as demonstrated here:

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-binding/understanding-data-binding/client-side-binding/client-side-binding-specifics

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

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
0
M Kumar
Top achievements
Rank 1
Iron
Veteran
answered on 10 Mar 2020, 03:23 AM

Hi Eyup,

 

                  thanks for reply i use external javascript file so how we put Wrap the script tag inside a RadScriptBlock.

0
Eyup
Telerik team
answered on 12 Mar 2020, 06:25 AM

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

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
0
M Kumar
Top achievements
Rank 1
Iron
Veteran
answered on 25 Mar 2020, 03:58 AM

Hi eyup,

 

                 Thanks for reply like this we use as per in screenshot file or u send sample for me.

 

 

0
Accepted
Eyup
Telerik team
answered on 27 Mar 2020, 05:47 AM

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>
Also, ensure that there is no script error after you disable AJAX:
https://www.telerik.com/support/kb/aspnet-ajax/ajaxmanager/details/get-more-descriptive-errors-by-disabling-ajax

 

Regards,
Eyup
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
M Kumar
Top achievements
Rank 1
Iron
Veteran
answered on 10 Aug 2020, 07:02 AM

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

Tags
Grid
Asked by
M Kumar
Top achievements
Rank 1
Iron
Veteran
Answers by
Eyup
Telerik team
M Kumar
Top achievements
Rank 1
Iron
Veteran
Share this question
or