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

Why do AddNewRecordButton and InitInsertButton behave differently and how to overcome this?

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 09 Jul 2010, 04:21 PM
I'm using the radgrid to display/sort data and maintain consistency in the app, but editing and adding of one particular grid is handled by another control due to complexity. 

I'm able to handle most of this in the OnItemCommand event with either RadGrid.InitInsertCommandName, RadGrid.EditCommandName etc.   The part I'm having trouble with is the actual Add button.  The "Add new item" LinkButton works fine but the "+" button never hits the OnItemCommand event even though they presumably would be doing the exact same thing.  What do I have to do?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 12 Jul 2010, 02:55 PM
Hello Scott,

I tried to reproduce the described issue but without success. Could you please provide some more details about your scenario? From your information I assume that you are using the default command item buttons and not custom ones. Do you get the same issue with another image button - for example does the "refresh" image button reach the ItemCommand event handler?

I noticed that you have referenced the 2010.1.519 version in this thread. Would you mind verifying that this is the exact product version that you are currently using? In order to help me build a clearer picture of your scenario, you can also send me some code snippets demonstrating your implementation.

Regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Scott
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or