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

fireCommand(), is there a way?

4 Answers 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Fetherolf
Top achievements
Rank 1
John Fetherolf asked on 28 Mar 2008, 04:46 PM
Is there a way to basically do a fireCommand() on a grid with an application specific command string instead of the ones pre-defined by the grid?  I have some specialized functionality I am trying to achieve through JavaScript, but the grid is not giving me the server-side OnItemCommand() event I was hoping for.

Here is my JavaScript:
function ConfirmItemAdd(itemText, newODID) {  
    if(confirm("Would you like to add item [" + itemText + "] to the order?") == true)  
        masterTableView.fireCommand("SaveNewAndEdit", newODID);  
    else 
        masterTableView.fireCommand("AbandonNewAndEdit", newODID);  

Any help, as always, is greatly appreciated.

Thanks,
Kevin

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Apr 2008, 12:11 PM
Hi John,

Unfortunately currently this is not possible however we will provide support for this with the upcoming release (Q1 2008).

Best regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Matthew Erwin
Top achievements
Rank 1
answered on 27 Jun 2008, 05:09 AM
This still doesn't appear to work even with 6/19/08 build...am I missing something or did you guys decide not to include support for this?
0
Vlad
Telerik team
answered on 30 Jun 2008, 07:59 AM
Hello Matthew,

I have attached an example to illustrate you how to achieve this.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Matthew Erwin
Top achievements
Rank 1
answered on 01 Jul 2008, 07:43 PM
Thank you. I ended up just using the RadAjaxManager->ajaxRequest( ) method to do the work and found it to be sufficient. When I have some time I will try this example out in my environment to see if I can trigger an event on a included user control.

I appreciate the rapid and thorough response.
Tags
Grid
Asked by
John Fetherolf
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Matthew Erwin
Top achievements
Rank 1
Share this question
or