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

[Solved] Programatically clicking Update button on grid popup window via javascript

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rene
Top achievements
Rank 1
Rene asked on 24 Mar 2011, 06:02 PM
Due to Firefox not working with .click() functionality - how would I programatically (via javascript) simulate the user clicking the Insert or Update buttons in the mvc grid popup window?

Thank You in Advance,

Rene.

[ SOLUTION ]

Works for both IE and FF and probably more...

function TelerikButtonClickInsert(gridName){
  $(# + gridName + 'Popup .t-grid-insert').click();
}

function TelerikButtonClickUpdate(gridName){
  $(# + gridName + 'Popup .t-grid-update').click();
}

1 Answer, 1 is accepted

Sort by
0
Rene
Top achievements
Rank 1
answered on 24 Mar 2011, 08:26 PM
[ SOLUTION ]

Works for both IE and FF and probably more...

function TelerikButtonClickInsert(gridName){
  $(# + gridName + 'Popup .t-grid-insert').click();
}

function TelerikButtonClickUpdate(gridName){
  $(# + gridName + 'Popup .t-grid-update').click();
}

Rene.
Tags
Grid
Asked by
Rene
Top achievements
Rank 1
Answers by
Rene
Top achievements
Rank 1
Share this question
or