RadAsyncUpload at Client end only?
| <rad:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </rad:RadScriptManager> |
| <script type="text/javascript" > |
| if (!progressArea.confirmed && |
| args.get_progressData().RadUpload.RequestSize > 1000000) |
| { |
| if (confirm("The total size of the selected files" + |
| " is more than the limit." + |
| " Do you want to cancel the upload?")) |
| { |
| progressArea.cancelRequest(); |
| } |
| else |
| { |
| progressArea.confirmed = "confirmed"; |
| } |
| } |
| </script> |
| <rad:RadProgressManager ID="RadProgressManager1" runat="server" /> |
| <rad:RadUpload ID="rupDocTempFile" runat="server" Skin="Telerik"></rad:RadUpload> |
| <rad:RadProgressArea ID="RadProgressArea1" runat="server" OnClientProgressUpdating="checkUploadedFilesSize"> |
| </rad:RadProgressArea> |
| <asp:Button ID="btnSave" runat="server" Text="SAVE" OnClick="btnSave_Click" AccessKey="v" ToolTip="Save(v)" /> |


RadGrid grid = new RadGrid();
GridReport.ItemCommand += new GridCommandEventHandler(this.grid_ItemCommand);
GridPlaceHolder.Controls.Add(grid);
private void GridReport_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "Information")
{
if (e.Item is GridDataItem)
{
GridColumnCollection gridColumns = e.Item.OwnerTableView.Columns;
GridDataItem myGridItem = (GridDataItem)e.Item;
if (gridColumns.FindByUniqueNameSafe("Information") != null)
{
ImageButton myRuleImageButton = (ImageButton)myGridItem["Information"].Controls[0];
myRuleImageButton.ImageUrl = "~/Images/Icons/collapse.png";
}
}
}
}
private void GridReport_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem myGridItem = (GridDataItem)e.Item;
if (gridColumns.FindByUniqueNameSafe("Information") != null)
{
ImageButton myRuleImageButton = (ImageButton)myGridItem["Information"].Controls[0];
myRuleImageButton.OnClientClick = String.Format("Click(" + myGridItem.ItemIndex + "); return true;");
}
}
}
Column Creation:
buttonColumn = new GridButtonColumn();
buttonColumn.ItemStyle.BorderWidth = Unit.Pixel(0);
buttonColumn.CommandName = "Information";
buttonColumn.UniqueName = "Information";
buttonColumn.ButtonType = GridButtonColumnType.ImageButton;
buttonColumn.ImageUrl = "~/Images/Icons/expand.png";
buttonColumn.HeaderStyle.Width = Unit.Pixel(20);
buttonColumn.Resizable = false;
buttonColumn.Reorderable = false;
buttonColumn.Visible = true;
GridReport.MasterTableView.Columns.Add(buttonColumn);
Thanks!
protected void rgUnits_ItemCreated(object sender, GridItemEventArgs e) { GridEditableItem item = e.Item as GridEditableItem; if (item != null && item.IsInEditMode && item.OwnerTableView.DataSourceID != DataSourceIDUnitItem) // Parent Row { RadComboBox combo = (RadComboBox)item["EquipmentType"].Controls[0]; combo.AllowCustomText = true; combo.AutoPostBack = true; combo.SelectedIndexChanged += combo_SelectedIndexChanged; } } void combo_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem; int equipmentTypeID = 0; if (int.TryParse(((RadComboBox)editedItem["EquipmentType"].Controls[0]).SelectedValue, out equipmentTypeID)) { EquipmentDescriptionDataSource.Where = string.Format(EquipmentDescriptionFilter, equipmentTypeID); RadComboBox rcbEquipmentDescription = ((RadComboBox)editedItem["EquipmentDescription"].Controls[0]); rcbEquipmentDescription.DataBind(); rcbEquipmentDescription.ClearSelection(); rcbEquipmentDescription.Text = string.Empty; } }I have a Telerik Grid contains a template column, this column holds a RadGridList and receives its data from StringCollection, this means that I have a column with multiple values.
I'm trying to filter this column using a combobox, I can filter such columns but with only single data, but how to filter a column contains multiple data represented by StringCollection?
<telerik:GridBoundColumn DataField="ExperienceLevel" HeaderButtonType="TextButton" HeaderText="Experience Level" SortExpression="ExperienceLevel" UniqueName="ExperienceLevel"> <FilterTemplate> <telerik:RadComboBox ID="RadComboBoxExperienceLevel" runat="server" AppendDataBoundItems="true" DataSourceID="SqlDataSourceExperienceLevel" DataTextField="englishName" DataValueField="ExperienceLevelID" DropDownWidth="150" OnClientSelectedIndexChanged="ExperienceLevelIndexChanged" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ExperienceLevel").CurrentFilterValue %>' Width="100"> <Items> <telerik:RadComboBoxItem Text="All" Value="" /> </Items> </telerik:RadComboBox> <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript"> function ExperienceLevelIndexChanged(sender, args) { var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); tableView.filter("ExperienceLevel", args.get_item().get_value(), "EqualTo"); } </script> </telerik:RadScriptBlock> </FilterTemplate> </telerik:GridBoundColumn>Team Telerik,
I think I have discovered a bug.
Recreation Steps:
Background:
I am building a page that uses several numeric columns that should all be formatted in exactly the same way. So logically, I drag one GridNumericColumnEditor to the design surface, set its properties there, and then set all of the GridNumericColumns that should be formatted that way to use that column editor. Obviously, this doesn't work, even though you can do this with other ColumnEditors for other column types.
Workaround:
Use a different GridNumericColumnEditor for each of the GridNumericColumns - even if they're all to be formatted in exactly the same way. Clearly, this isn't very efficient, but it'll have to do for now until you guys can address this.
Telerik Version: 2012.3.1016.40 (2012 Q3)
Thanks in advance for your kind attention to this matter - and keep up the great work, you guys.
Regards,
Jonathan