This is a migrated thread and some comments may be shown as answers.
Controls for handling multiple selection edit.
1 Answer 13 Views
This is a migrated thread and some comments may be shown as answers.
Water
Top achievements
Rank 1
Water asked on 30 Jan 2012, 11:40 AM
Hello,

I'm writing a page where the user can select multiple items in a grid and then press 'edit' to edit the items in a popup screen. If the items contain different values for one field I want the relevant control to be greyed out until they edit it and I need to be able to detect whether they have altered the value or not when they postback the page. Are there any telerik controls that can do this?

E.g. The user selects 5 students from a grid and clicks 'edit'. The edit window pops up. As all the students have different names, the text box for entering the name field is greyed out. If the user clicks on the text box it turns white and they can type in a value. When the page is submitted, if the user has not edited the field then all the students retain their old name but if the user has typed in the text box then all students will have their name changed to the same value.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 02 Feb 2012, 09:08 AM
Hi,

About your first question, you could either use some kind of Validator control for the input controls or you could hook the OnTextChanged event if the input control is TextBox or OnSelectedIndexChanged event if the input control is a DropDownList control. When the event is fired you will know that the user has changed the value of the input control. Another approach you could try is to use the RadInputManager. By default you could assign one CSS class to the input control and when the control receives the focus you could assign different CSS class. Thus you will get the desired functionality.

About your other question you could check this online demo application, which is implementing similar functionality. Another demo that could prove helpful is this.

Regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Asked by
Water
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or