or
Posted 0 minutes ago (permalink)
1. i have tree with about 4 levels
the first level i get from server code and the other
by webservice.
in the begining i just recieve
the first level
i know from advanced what is their checked property
some are:
how can i set these values by code ,when the component can't make it itself
, because it doesn't have childs yet (until i click on some of the first level and recive by webservice their childs. the second level)
2. one more problem is that tri state doesn't work properly. example: one of the three childs isn't checked, the father of it, the second level is Indeterminate but the first level is Checked instead of Indeterminate
|
|
RadTreeNode contactNode = new RadTreeNode(); |
if (contact == currentCustomer.ContactAccounts) |
contactNode.ImageUrl = "~/images/icons/16/user-business.png"; |
else |
contactNode.ImageUrl = "~/images/icons/16/user-worker.png"; |
contactNode.Text = contact.Name; |
if (contact.Email.Length > 0 && contact.Fax.Length > 0) |
{ |
contactNode.ContextMenuID = "contactContextMenuEmailAndFax"; |
} |
else if (contact.Email.Length > 0) |
{ |
contactNode.ContextMenuID = "contactContextMenuEmailOnly"; |
} |
... etc etc etc |
private
void
rcBox_SelectedIndexChanged(
object
sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
((GridFilteringItem)(((RadComboBox)sender).Parent.Parent)).FireCommandEvent(
"Filter"
,
new
Pair());
}
var formvalue = HttpContext.Current.Request.Form[rcBox.UniqueID];
if
(!
string
.IsNullOrEmpty(formvalue))
{
rcBox.SelectedValue = formvalue;
//((GridFilteringItem)(rcBox.Parent.Parent)).FireCommandEvent("Filter", new Pair());
}