Hello again,
How do I programatically apply a filter to a RadGridView?
Basically, I want to hide the "Filtering Row" and apply filters on multiple columns but from within code.
Cheers
Phi
Hi,
I have a DateTime column on a RadGridView. How do I set formatting for that column?
I have tried adding GridViewDataColumn and GridViewDateTimeColumn to the MasterGridViewTemplate, then seting the DataTextFormatString property of the column to "{0:dd/MMM/yyyy}";
but that doesn't work.
Currently I am doing a work-around, where I subscribe to the OnGridViewCellFormatting event, detect if it's a date value and re-format it there, but this solution isn't really ideal.
Please advise!
Regards,
Phi Le
Hi,
I want to know how to use the GetNodeByKey() method.
It doesn't appear to work, so can you tell me if I'm missing something.
Here is the code I use:
RadTreeNode node = new RadTreeNode("node1");
node.Key = 1;
this.radTreeView1.Nodes.Add(node);
node = new RadTreeNode("node2");
node.Key = 2;
this.radTreeView1.Nodes.Add(node);
// Won't be able to find the node with key = 2, messagebox will appear
RadTreeNode selected = this.radTreeView1.GetNodeByKey(2);
if (selected == null)
MessageBox.Show("couldnt find selected node with key=2 using GetNodeByKey()");
// this should find it ok.
foreach (RadTreeNode radNode in this.radTreeView1.Nodes)
{
if (Convert.ToInt32(radNode.Key) == 2)
MessageBox.Show("Found node with key = 2");
}
Regards,
Phi Le
Hi,
Create an empty form. Place a RadTabStrip there, and add a new tab. Place a RadComboBox within the newly added tab.
Close the form window, and then re-open it. You will notice that the designer code changes (there is an asterisk indicating the file has changed).
When I look at the designer generated code, I notice that the following line is added
Me.RadComboBox.FormatString = Nothing
If I save, close the form window and re-open, the designer code changes again and the previous line is no longer there. Everytime I close and re-open the form, that line appears and re-appears.
It doesnt make a difference to to the functionality but its annoying that the designer code always changes even if I havent touched the form.
I also notice that there's a slight pause, everytime I re-open the form, it seems to be regenerating the designer code. Does this happen with all forms & controls, or is it a behaviour of the VS2005 designer or is it unique to the Telerik controls?
Regards,
Phi Le