or
jQuery(function($) { $(".SelectScheduleDate").on("click", selectTime);}
hi I have a RadGrid bound to an openaccess data source on the radgrid
_UpdateCommand event I want to save the text value of a combobox not the selected value because we have allowcustomtext on the dropdown set to true
we are useing a "GridDropDownColumn" in the grid, have "radComboBox.AllowCustomText = true" in the Itemdatabound event, and now I am getting the value with "ExtractValues" method in the _UpdateCommand event
Hashtable values = new Hashtable();gridEditableItem.ExtractValues(values);values["School"] = radComboBox.Text;
I am just not sure how to get the orm to save the changed value?
I tried this but that did not work
gridEditableItem.UpdateValues(values);what am I missing?
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); tableView.filter("CustomerName", args.get_item().get_value(), "EqualTo");
| private void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) |
| { |
| if(e.Argumnet.ToString().Split[','][0]=="ContactTitle") |
| { |
| //Access the rest of the string and set the filter Expression |
| } |
| } |
RadComboBox rcBox = new RadComboBox(); rcBox.ID = "DropDownList_" + DataField; rcBox.AutoPostBack = true; rcBox.DropDownWidth = DropDownWidth; rcBox.Width = FilterControlWidth; rcBox.CheckBoxes = true; rcBox.ItemChecked += rcBox_ItemChecked; rcBox.Height = Unit.Pixel(200);
DataTable table = GetDataTable(string.Format("SELECT DISTINCT cast({0} as varchar) as {0} FROM {1} Where 1=1 {2} order by {0} asc", this.DataField, TableName, where)); rcBox.DataTextField = this.DataField; rcBox.DataValueField = this.DataField; rcBox.DataSource = table; cell.Controls.Add(rcBox);
private void rcBox_ItemChecked(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e) { ((GridFilteringItem)(((RadComboBox)sender).Parent.Parent)).FireCommandEvent("Filter", new Pair()); }
protected override void SetCurrentFilterValueToControl(TableCell cell)and:
protected override string GetCurrentFilterValueFromControl(TableCell cell) How can I access the checkboxs? And how do I add or filtering best?
function AddNewMenuItem(itemText,itemValue) { var menu = $find(MainMenu_ID); var menuTabsItem = menu.findItemByText("Tabs"); var menuItem = new Telerik.Web.UI.RadMenuItem(); if (!menuTabsItem) { menuItem.set_text("Tabs"); menuItem.set_value(""); menu.get_items().add(menuItem); menuTabsItem = menu.findItemByText("Tabs"); } menuItem = new Telerik.Web.UI.RadMenuItem(); menuItem.set_text(itemText); menuItem.set_value(itemValue); menuTabsItem.get_items().add(menuItem);}function RemoveMenuItem(itemValue) { var menu = $find(MainMenu_ID); var menuTabsItem = menu.findItemByText("Tabs"); var menuTabsItemToRemove = menu.findItemByValue(itemValue); if (menuTabsItem) { alert("a " + menuTabsItem.get_items().get_count()) menu.get_items().remove(menuTabsItemToRemove); alert("b " + menuTabsItem.get_items().get_count()) if (menuTabsItem.get_items().get_count() == 0) { menu.get_items().remove(menuTabsItem); } }}