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

onCommand is not a valid attribute

3 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 03 Jan 2009, 04:02 PM

Hi  I have an radgrid - I'm trying to implement 

 

 

<Clientsettings>

 

 

 

 

 

<ClientEvents onCommand ="onCommand" />

 

 

</Clientsettings>

But I get a a message that onCommand is not a valid attribute - I'm following some of the examples in forums.. but I don't see oncommand as an avaliable event.. what I'm I missing .. thanks again


 

 

<telerik:RadGrid ID="RadGridAddress" runat="server" AllowPaging="True"

 

 

AllowSorting="True" AutoGenerateColumns="False" AutoGenerateEditColumn="True"

 

 

DataSourceID="ObjectDataSource_ADDRESS" EnableEmbeddedSkins="False"

 

 

Font-Names="Verdana" Font-Size="Small" GridLines="None" GroupingEnabled="False"

 

 

OnInsertCommand="RadGridAddress_InsertCommand"

 

 

OnItemCommand="RadGridAddress_ItemCommand"

 

 

OnItemDataBound="RadGridAddress_ItemDataBound"

 

 

OnItemUpdated="RadGridAddress_ItemUpdated"

 

 

OnNeedDataSource="RadGridAddress_NeedDataSource"

 

 

OnUpdateCommand="RadGridAddress_UpdateCommand" Skin="WebBlue"

 

 

Width="99%" >

 

 

 

 

 

<Clientsettings>

 

 

 

 

 

<ClientEvents onCommand ="onCommand" />

 

 

</Clientsettings>

 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Jan 2009, 04:35 AM
Hi Jon,

I guess you are using the older version of the RadGrid. OnCommand client event is available with the latest version(2008.3.1125.20) of the Grid. Try upgrading RadControls to the latest version.  Here is a KB article which explains how to upgrade RadControls from one version to another.

Updating RadControls for ASP.NET to another version or license

Shinu.

0
Jon
Top achievements
Rank 1
answered on 05 Jan 2009, 04:23 PM

Hi..
I can not upgrade - their is a bug in the updated RadCombo box. That does not appear in the previous version.

How can I 'trap' / client side , the Oncommand..... Insert/Update ?

 

PerformInsertCommandName and UpdateCommandName...

thanks

0
Sebastian
Telerik team
answered on 06 Jan 2009, 11:43 AM
Hi Jon The Nerd,

If you are not able to upgrade due to some known issue with RadComboBox in the latest version 2008.3.1125, consider migrating to one of the previous versions of the grid provided that the OnCommand client event is available since version 2008.2.723 of Telerik.Web.UI.dll.

The type of the command can be determined using the commandName argument passed inside the OnCommand client event handler.

Best regards,
Sebastian
the Telerik team

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