hi all ,i'm devoloping a multi image uploader inside radgrid component
I used GridEditCommandColumn as opening edit block
this grid also inside a page which have validators
so How to define a validation group for edit mode of grid control?
I used GridEditCommandColumn as opening edit block
this grid also inside a page which have validators
so How to define a validation group for edit mode of grid control?
| <telerik:RadGrid runat="server" ID="ImagesRadGrid" AllowPaging="True" AllowSorting="True" |
| OnNeedDataSource="ImagesRadGrid_NeedDataSource" AutoGenerateColumns="False" Width="97%" |
| OnUpdateCommand="ImagesRadGrid_UpdateCommand" OnPreRender="ImagesRadGrid_PreRender" |
| ShowStatusBar="True" OnInsertCommand="ImagesRadGrid_InsertCommand" OnDeleteCommand="ImagesRadGrid_DeleteCommand" |
| GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound" OnItemCreated="RadGrid1_ItemCreated" PageSize="2"> |
| <PagerStyle Mode="NumericPages" AlwaysVisible="true" /> |
| <MasterTableView Width="100%" DataKeyNames="ImageUrl" > |
| <Columns> |
| <telerik:GridEditCommandColumn ButtonType="ImageButton" > |
| <HeaderStyle Width="3%" /> |
| </telerik:GridEditCommandColumn> |
| <telerik:GridTemplateColumn HeaderText="Culture" UniqueName="Culture" SortExpression="Culture"> |
| <ItemTemplate> |
| <asp:Label runat="server" ID="lblCulture" Text='<%# Eval("Culture.Description") %>' /> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:Label runat="server" ID="lblCulture" Text='<%# Bind("Culture.Description") %>' /> |
| </EditItemTemplate> |
| <HeaderStyle Width="30%" /> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn UniqueName="Upload"> |
| <ItemTemplate> |
| <img name='imageViewer' alt="image" width='100' height='100' src='<%# "../ImageWebForm.aspx?ImagePath="+Eval("ImageUrl") %>' /> |
| </ItemTemplate> |
| <EditItemTemplate > |
| <div id="fileUpladerDiv"> |
| <table style="width:300px"> |
| <tr> |
| <td style="width:250px;" > |
| <telerik:RadUpload ID="RadUpload1" runat="server" InitialFileInputsCount="1" |
| AllowedFileExtensions=".png" ControlObjectsVisibility="None" Width="222px" Skin="WebBlue" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton"> |
| <HeaderStyle Width="2%" /> |
| </telerik:GridButtonColumn> |
| </Columns> |
| <EditFormSettings> |
| <EditColumn ButtonType="ImageButton" /> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |