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

GridDataItem on Client Side

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chirag Nirmal
Top achievements
Rank 1
Chirag Nirmal asked on 10 Dec 2008, 05:14 PM
Hello,

I have 2 GridTemplateColumn's with RadNumericTextBox's in them, and I want to change the value of one RadNumericTextBox based on the input in the other and vice-versa. I think I can achieve this my trapping the OnBlur events on the textbox and find the parent GridDataItem, once I find the parent row, I can find the other textbox and set the value.

I want to do this on click side and not on the server size.

But I am facing a problem where I cant find the parent GridDataItem on the OnBlur event.

Can anyone please help me with this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 15 Dec 2008, 10:24 AM
Hello Chirag,

A possible approach would be:
function GridCreated(sender, args) 
    sender.get_masterTableView().get_dataItems(); 
 
function HandleBlur(sender, args) 
    var itemNumber = sender.get_parent()._itemIndexHierarchical; 
    ... 

Let me know whether this helps.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Chirag Nirmal
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or