I have a hierarchical grid (3 levels) and when i export my grid to excel, the columns are very large. How can specify the column width for the exportation?
How do I get the number of lines entered in the editor.
So that I can control the maximum number of lines entered by user.
If the editor had maximum character and maximum line property .. It would have been of great help.
I am using radgrid and having GridboundColumn and GridDropDownColumns in it with edit/insert feature. I am implementing the feature like if user click on Edit of the gird the form is opening up enabling the user to make the changes, but depending on value of 'qualificaton' dropdown i have to disbale/enable the dropdown 'Profession' so i used itemdatabound event of the radgrid and able to disable the dropdown(Profession) depending on 'qualificaton' dropdown ... now i also have autopostback true on dropdown (Profession) to enable/disable 'profession' dropdown
i.e. say dropdown 1st has value as 1 and user click on Edit and i disabled the 2nd dropdown using itemdatabound event. Now user changed the 1st dropdown value to 2 now i have to enable the dropdown two so tried to use indexchangedevent for 1st dropdown(autopostback = true) but i am not able to enable the dropdown two may be because i disabled it earlier onitemdatabound event. Please let me know the workaround to achieve it.
protected void radGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
{
GridEditableItem editedItem = e.Item as GridEditableItem;
GridEditManager editMan = editedItem.EditManager;
GridDropDownColumnEditor ddl1 = editMan.GetColumnEditor("qualificaton") as GridDropDownColumnEditor;
if (ddlStaff.SelectedText == "1")
{
if (e.Item.ItemType == GridItemType.EditFormItem)
{
GridEditableItem editedItem1 = e.Item as GridEditableItem;
editedItem1["field"].Enabled = false;
}
}
}
}
protected void radGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
// to assign the indexchangedevent and to set autopostback true of the dropdown in edit mode of the radgrid
GridEditableItem item = (GridEditableItem)e.Item;
DropDownList ddl1 = item["qualificaton"].Controls[0] as DropDownList;
ddl1.AutoPostBack = true;
ddl1.SelectedIndexChanged += new EventHandler(this.ddl1_SelectedIndexChanged);
}
}
void ddlStaff_SelectedIndexChanged(object sender, EventArgs e)
{
GridEditableItem editedItem = (sender as DropDownList).NamingContainer as GridEditableItem;
DropDownList ddl1 = editedItem["qualificaton"].Controls[0] as DropDownList;
DropDownList ddl2 = editedItem["field"].Controls[0] as DropDownList;
We are using external tool.xml file for the toolbars and buttons. After uprading to Q1 2009 the whole editor box is broken. It looks ok in FF3 but in IE7 the toolbar's icons broken into rows and editor's broke out to wide box and all messed up. I am not sure what do I do to fix it if someone can please help me out to fix this.
As I said earlier in gird thread if something has to change then should have changed with new mode or class but not existing mode/class/skin becuase now all my pages that uses grid, editor and datepicker are broken and I have to re-do all pages that uses them.
as part of reviewing Rad controls, would like to know what the support is like from a developers perspective?
With my very limted experience today
a) While the controls seem to have some very nice features, missing very basic stuff seems to make then unusable?
b) These things dont seem to be getting fixed ( see datepicker pop up issues which was agreed to be fixed over 8 mths ago), but is till not done 2 releases latter.
c) If they say Q2 will it actually happen?
d) Most of my posts to these forums go unaswered, same with support tickets? is this normal?
Any experiences welcome, as this si probally the most imporatnt aspect of my considerations..
I have defined a grid with size of 20. After adopting the above method, the grid size has been automatically reduced to 14. Is this the normal behaviour in using this approach?