| <telerik:GridTemplateColumn UniqueName="firstname" > |
| <ItemTemplate> |
| ... |
| </ItemTemplate> |
| <FilterTemplate> |
| <asp:textbox runat="server" id="txtBox1" text=""/> |
| </FilterTemplate> |
| </telerik:GridTemplateColumn> |
<telerik:RadGrid runat="server" ID="rgrDocuments" Skin="Office2010Blue" Height="30%"
ShowStatusBar="True" AllowFilteringByColumn="True" AutoGenerateColumns="false"
CellSpacing="0" GridLines="None" ShowGroupPanel="True"
oncolumncreated="rgrDocuments_ColumnCreated"
onitemcommand="rgrDocuments_ItemCommand">
<GroupingSettings CaseSensitive="false"/>
<ClientSettings AllowDragToGroup="True">
<Selecting AllowRowSelect="true" />
</ClientSettings>
<MasterTableView Width="100%" >
<Columns>
<telerik:GridTemplateColumn AllowFiltering="false">
<ItemTemplate>
<asp:ImageButton runat="server" ID="btnDownload" CommandName="cmdDownload" ImageUrl="~/Images/down.png" Height="24px" Width="24px" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="false">
<ItemTemplate>
<asp:ImageButton runat="server" ID="btnDelete" CommandName="cmdDelete" ImageUrl="~/Images/elimina.png" Height="24px" Width="24px" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn Visible="false" DataField="N" UniqueName="N°" HeaderText="Anno" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MES" UniqueName="Tipo" HeaderText="<%$ Resources:Documenti, docu_GriTipo %>" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CIT" UniqueName="Nome" HeaderText="<%$ Resources:Documenti, docu_GriNome %>" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<FilterMenu EnableImageSprites="False">
</FilterMenu>
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Windows7">
</HeaderContextMenu>
</telerik:RadGrid>
protected void rgrDocuments_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "cmdDownload")
{
GridDataItem item = e.Item as GridDataItem;
byte[] array = RecuperaBlobDocumento(short.Parse(item["N°"].Text));
string fileName = RecuperaNomeFile(short.Parse(item["N°"].Text));
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + fileName);
Response.BinaryWrite(array);
Response.End();
}
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2010Black"> </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" > <asp:ContentPlaceHolder ID="Body" runat="server"/> </telerik:RadAjaxPanel>
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" OnClientItemSelected="OnImageSelected" EnableCopy="true" EnableAsyncUpload="true" >
<Configuration MaxUploadFileSize="20480000" />
</telerik:RadFileExplorer>
Hi,
I am using RadListBox in one of our page, I can able to retrieve multiple selection info and save it to destination place, and when users open the form again, I need to get previous selections(multiple values) and set it to RadListBox, it only showing last value not other selection. I am calling the following method for setting values.
private
void setRadListBoxSelection(Telerik.Web.UI.RadListBox ctl, string val)
{
string[] selArr = val.Split('@');
foreach (string word in selArr)
{
ctl.SelectedValue = word;
// ctl.SelectedItem.Value = word;
}
}
do you have any suggestions for fixing the above issue.
Satya