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

[Solved] Problem when get_MasterTableView()

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pham
Top achievements
Rank 1
Pham asked on 17 May 2013, 06:49 AM
var grid = $find('<%=rgdBieu1.ClientID %>'); 
      var MasterTableView = grid.get_masterTableView();
       var maNV = MasterTableView.get_dataItems()[args.get_commandArgument()].getDataKeyValue("MA_DV");
Hello everybody,
I have a problem. I use get_masterTableView(), it work in firefox and google chorme but can't work in internet explorer. In IE, function get_masterTableView() return null.
Have any ideas ?
Thanks you very much!

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 21 May 2013, 02:43 PM
Hi,

You could try enabling script debugging for IE so you could easily track the source of the issue. Steps on how to enable script debugging could be found here.

In order to use the getDataKeyValue function with the column names, you should add their UniqueName in ClientDataKeyNames array of the MasterTableView. Note that the getDataKeyValue function should get a column's UniqueName as an argument. Useful information on extracting key values client side could be found in this article and also in this online demo.

I am attaching sample project where the usage of the function is illustrated. i hope it would be helpful to you.

Greetings,
Victor Tachev
the Telerik team
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 their blog feed now.
Tags
Grid
Asked by
Pham
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or