window[
"<%= RadGrid1.ClientID %>"].MasterTableView.SelectRow(window["<%= RadGrid1.ClientID %>"].MasterTableView.Rows[rowIndex].Control, true);
protected void Customer_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) { LoadCustomerData(); (o as RadComboBox).Items.Clear(); string text = e.Text; try { DataRow[] rows = CustomerData.Select("title LIKE '" + text + "*'"); int itemsPerRequest = 20; int itemOffset = e.NumberOfItems; int endOffset = itemOffset + itemsPerRequest; if (endOffset > rows.Length) { endOffset = rows.Length; } for (int i = itemOffset; i < endOffset; i++) { (o as RadComboBox).Items.Add(new RadComboBoxItem(rows[i]["title"].ToString())); } e.Message = String.Format("رکورد <b>1</b>-<b>{0}</b> از <b>{1}</b> رکورد", endOffset.ToString(), rows.Length.ToString()); } catch { } }
********************************************************************************
private void LoadCustomerData() { if (Cache["CustomerData"] == null) { DataTable words = new DataTable("words"); DataColumn title = words.Columns.Add("title"); DataColumn id = words.Columns.Add("id"); string word = String.Empty; List<CDS.IAS.Logic.Sale.User.NameResult> result = CDS.IAS.Logic.Sale.Customer.Customer.GetCustomerName(); foreach (var item in result) { words.Rows.Add(item.FullName, item.ID); } Cache["CustomerData"] = words; } CustomerData = (DataTable)Cache["CustomerData"]; }********************************************************************************
and in page load:
if (!IsPostBack)
{ 
LoadCustomerData();
}
i just set Item but i need to insert value
beacuse i use to my program this code:combobox.selected value
please help to me
thanks a lot
function
itemClicked_handler(sender, args)
{
log(sender.get_id() +
" item was clicked. Item index is " + args.get_item().get_index());
// gets reference to the rotator object
var rotator = $find("RadRotator1");
var currentIndex=args.get_item().get_index();
// Sets currently shown item by its index
rotator.set_currentItemIndex(currentIndex);
}
I have 2 rotator, RadRotator1 and RadRotator2. When I click on one of the 4 items of RadRotator2, RadRotator1 must be initiate with that clicked item of RadRotator2.