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

[Solved] Grid's MeThod in client event

3 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lang dinh thien
Top achievements
Rank 1
lang dinh thien asked on 24 Aug 2009, 09:12 AM
hi every body.
i have a problem that i can't understand , i hope you can help me, thank you
take a look with this function:
<script type="text/javascript">
            function RowDblClick(sender, eventArgs)
            {
              sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
            }
</script>
 this function was wrote for client event double click on gird and this function will show edit mode of the row i doubled click . i didn't write this function, i copied it in a example. the problem is how can i known sender and eventArgs support method .get_masterTableView() and .get_itemIndexHierarchical() for me , because when i dot after sender or eventArgs i couldn't see any method or property that i could use . please show me the way that i can know sender or eventArgs support how many method or property.
thank you.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Aug 2009, 09:28 AM
Hi Lang,

You can make use of the debugger feature of the VisualStudio to debug through the client side code and then using QuickWatch you can find the methods and properties of the Grid.

JS:
 
 
  
function RowDblClick(sender, eventArgs)  
   {  
                 sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());  
                     debugger;  
  }  

Shinu
0
Tsvetoslav
Telerik team
answered on 24 Aug 2009, 12:38 PM
Hello Lang,

In addition to the solution provided by Shinu (which is exactly the way you should approach client object inspection) I'd like to add that Visual Studio does not support IntelliSense for javascript objects.

Sincerely yours,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
lang dinh thien
Top achievements
Rank 1
answered on 24 Aug 2009, 12:54 PM
thank you for helping me team. ^.^
Tags
Grid
Asked by
lang dinh thien
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Tsvetoslav
Telerik team
lang dinh thien
Top achievements
Rank 1
Share this question
or