ItemCommand to reload my grid
<
asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<br />
<table align="center" class="style31">
<tr>
<td class="style32">
Area
</td>
<td class="style33">
<telerik:RadComboBox ID="cbxArea" Runat="server" AutoPostBack="True"
DataTextField="NombreArea" DataValueField="CodigoArea" Skin="Vista">
</telerik:RadComboBox>
</td>
<td>
</td>
</tr>
<tr>
<td class="style32">
Responsable
</td>
<td class="style33">
<telerik:RadComboBox ID="cbxResponsables" Runat="server" AutoPostBack="True"
DataTextField="NombrePersona" DataValueField="CodigoEnte" Skin="Vista"
Width="230px">
</telerik:RadComboBox>
</td>
<td>
</td>
</tr>
<tr>
<td class="style32">
Tipo de equipo
</td>
<td class="style33">
<telerik:RadComboBox ID="cbxTipoEquipo" Runat="server" AutoPostBack="True"
DataTextField="NombreTipo" DataValueField="CodigoTipoEquipo" Skin="Vista">
</telerik:RadComboBox>
</td>
<td>
</td>
</tr>
<tr>
<td class="style32">
</td>
<td class="style33">
</td>
<td>
<asp:Button ID="btnBuscar" runat="server" style="height: 26px" Text="Buscar" />
</td>
</tr>
</table>
<br />
<br />
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True"
AutoGenerateColumns="False" AutoGenerateEditColumn="True" GridLines="None"
Skin="Office2007" Visible="False" width="735px">
<mastertableview DataKeyNames="CodigoEquipo" editmode="EditForms"
enableheadercontextmenu="True" InsertItemDisplay="Bottom"
insertitempageindexaction="ShowItemOnFirstPage" ShowGroupFooter="True">
<Columns>
<telerik:GridBoundColumn DataField="CodigoEquipo" DataType="System.String"
HeaderText="CODIGO DE EQUIPO" UniqueName="CodigoEquipo">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CodigoTipoEquipo" DataType="System.String"
HeaderText="CODIGO TIPO EQUIPO" UniqueName="CodigoTipoEquipo">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CodigoPais" DataType="System.String"
HeaderText="PAIS" UniqueName="CodigoPais" Visible="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DescripcionEquipo" DataType="System.String"
HeaderText="DESCRIPCION" UniqueName="DescripcionEquipo">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="NumeroTelefono" DataType="System.String"
HeaderText="NUMERO DE TELEFONO" UniqueName="NumeroTelefono">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MontoLimite" DataType="System.String"
HeaderText="MONTO LIMITE" UniqueName="MontoLimite">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FechaRegistro" DataType="System.String"
HeaderText="FECHA REGISTRO" UniqueName="FechaRegistro" Visible="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="UsuarioRegistro" DataType="System.String"
HeaderText="USUARIO REGISTRO" UniqueName="UsuarioRegistro" Visible="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EstadoRegistro" DataType="System.String"
HeaderText="ESTADO REGISTRO" UniqueName="EstadoRegistro" Visible="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Origen" DataType="System.String"
HeaderText="ORIGEN" UniqueName="Origen" Visible="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EstadoActivoFijo" DataType="System.String"
HeaderText="ESTADO ACTIVO FIJO" UniqueName="EstadoActivoFijo">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="WebUserControl"
UserControlName="CtrlMantenimientoEquiposAsignados.ascx">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
<ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn"
Visible="False">
<HeaderStyle Width="19px" />
</ExpandCollapseColumn>
</mastertableview>
<ClientSettings ActiveRowIndex="true" EnablePostBackOnRowClick="false">
</ClientSettings>
</telerik:RadGrid>
<br />
<br />
</ContentTemplate>
</asp:UpdatePanel>
| <FilterMenu Skin="Telerik" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedSkins="true"> |
| </FilterMenu> |
and have also tried applying the same settings in the code-behind, but the grid continues to emit the "RadMenu_WebBlue" class for the filter menu, causing it to appear with the "WebBlue" skin.
I have checked the value of the grid.FilterMenu.Skin property in the the grid PreRender event, and at that point it still has the value "Telerik". By the time it reaches the grid Unload event, the value has changed to "WebBlue". Apparently during the Render process it gets changed to "WebBlue".
I am using the RadControls for ASP.NET AJAX Q1 2010 DLL's.
Is there something I'm missing? Do I need to change another setting somewhere?
Regards,
Bob Reader
Dim CheckNbrPics As Integer = 0
For Each file As UploadedFile In RuPhotos.UploadedFiles
CheckNbrPics = CheckNbrPics + 1
Next file
If CheckNbrPics = 0 Then
MyFormValid =
False
sbError.Append(
"<li class=""Error"">Error text</li>")
End If
The files are saved in a second time.
I would like to keep this validation in the logik of my code behing, is it possible ?
It seems that FF download 1st the files and play the code after this, IE not.
Any idea to fix it ?
Thanks,
Herve
| function FilterGridMenu(commands, primaryKeyID, claimID, claimantID, claimNumber, jurisdiction, attachmentModuleName) |
| { |
| var gridMenu = $find("<%= rmGridActions.ClientID %>"); |
| if(gridMenu.get_enabled()) |
| { |
| //gridMenu.trackChanges(); //COMMENTED OUT BECAUSE ITS A HUGE MEMORY HOG |
| //Reset GridMenu Items and Values |
| var menuItems = gridMenu.get_allItems(); |
| for (var i=0; i < menuItems.length; i++) |
| { |
| if(menuItems[i].get_text() != 'Grid Actions') |
| { |
| menuItems[i].hide(); |
| menuItems[i].set_value(primaryKeyID); |
| } |
| var menuItemText = menuItems[i].get_text(); |
| if(menuItemText == 'Object Payment') |
| { |
| var paramValue = primaryKeyID + '|' + claimID + '|' + claimantID + '|' + claimNumber + '|' + jurisdiction; |
| menuItems[i].set_value(paramValue); |
| } |
| else if(menuItemText.indexOf('Add') > -1 && menuItemText.indexOf('Attachment')) |
| { |
| var paramValue = attachmentModuleName + '|' + primaryKeyID + '|' + claimantID + '|' + claimNumber; |
| menuItems[i].set_value(paramValue); |
| } |
| } |
| //Apply Commands list to hide or disable Context Menu Items |
| var arrayCommands = commands.split('|'); |
| for (x in arrayCommands) |
| { |
| var menuText = arrayCommands[x]; |
| if(menuText.length > 0) |
| { |
| var menuItem = gridMenu.findItemByText(menuText); |
| if(menuItem != null) |
| { |
| menuItem.show(); |
| } |
| } |
| } |
| //gridMenu.commitChanges(); //COMMENTED OUT BECAUSE ITS A HUGE MEMORY HOG |
| } |
| } |