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

Spell check does not fire when click update all

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zash
Top achievements
Rank 1
Zash asked on 21 Apr 2011, 07:27 PM
I have a grid in web page.  At that grid, I add an "edit all" button at command template.  When user clicks it, all rows at that grid will be in edit mode.  And another "update all" will update all user's change and update data into database.  That works fine.  Problem comes when I try to add spelling check function to it.

I add spelling check to "update all" and it works, and speeling check "update" button at a grid row and it works fine too.  But when user clicks "edit all" button, all rows in edit mode. "Hidden" controls  are needed for each row to hold "update" button client id, and radajaxmanager needs to add <ajaxsettings> dynamically too.  I want to check with you the way I try to code is right, and please provide me some sample code to accomplish it.

Thanks

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 27 Apr 2011, 01:41 PM
Hi Zash,

I am not sure that I completely understand your scenario and therefore I would like to ask that you try posting your aspx markup code with the related code behind file.
Also if you need a hidden filed for each row you could add a hidden template column which contains HiddenField into its ItemTemplate. For example:
<telerik:GridTemplateColumn Display="false" UniqueName="HiddenTemplateColumn">
     <ItemTemplate>
             <asp:HiddenField runat="server" ID="HiddenField1" />
      </ItemTemplate>
</telerik:GridTemplateColumn>

In this way for every row you could keep values into the HiddenField. Please check out the following link which explains how to access cells and rows into the RadGrid:
http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html
Additionally on the following link you could find information how to add AjaxSettings programmatically:
http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html

Best wishes,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Zash
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or