Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
421 views
Hello,

I have a grid with columns grouping, being created dynamically:

public static GridColumn AddColumn(this RadGrid grid, string column, int width, string headerText = null, string sortExpr = null, string colGroupName = null)
{
if (string.IsNullOrEmpty(headerText))
headerText = column;


var boundColumn = new GridBoundColumn();
grid.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField = column;
boundColumn.HeaderText = headerText;
boundColumn.UniqueName = column;
if (colGroupName != null)
{
boundColumn.ColumnGroupName = colGroupName;
boundColumn.AllowSorting = false;
}
else
{
if (string.IsNullOrEmpty(sortExpr))
sortExpr = column;
boundColumn.AllowSorting = false;
boundColumn.SortExpression = sortExpr;
}


return boundColumn;
}


public static GridColumnGroup AddColumnGroup(this RadGrid grid, string name, int width, string headerText, string parent = null)
{
var colGroup = new GridColumnGroup();
grid.MasterTableView.ColumnGroups.Add(colGroup);
colGroup.Name = name;
colGroup.HeaderText = headerText;
if (parent != null)
colGroup.ParentGroupName = parent;
return colGroup;
}
and in ascx.cs:
foreach (var indicator in ListIndicatori)
{
if (....)
{
List.AddColumn("Field_" + indicator.Id, 100, indicator.Denumire + "(" + indicator.UnitateMasura + ")");
DataTableSource.Columns.Add("Field_" + indicator.Id);
}
else
{
var groupName = "Group" + indicator.Id;
List.AddColumnGroup(groupName, 120, indicator.Denumire + "(" + indicator.UnitateMasura + ")");
List.AddColumn("Field_" + indicator.Id + "_LD", 40, "LD", colGroupName: groupName);
List.AddColumn("Field_" + indicator.Id + "_LQ", 40, "LQ", colGroupName: groupName);
List.AddColumn("Field_" + indicator.Id + "_VF", 40, "VF", colGroupName: groupName);


DataTableSource.Columns.Add("Field_" + indicator.Id + "_LD");
DataTableSource.Columns.Add("Field_" + indicator.Id + "_LQ");
DataTableSource.Columns.Add("Field_" + indicator.Id + "_VF");
}
}

where List is RadGrid declared in ascx file
I receive the error:
Invalid column group configuration! Column "Field_10_LQ" cannot be after column "Field_5"
The columns are not always the same (i.e Column "Field_53_LQ" cannot be after column "Field_7") and does not appears all the time, but I was not able to discover why and when (in which cases) it appears.
Any help will be appreciated!

Thanks,
Antonio
Marin
Telerik team
 answered on 27 Nov 2012
3 answers
63 views

please check below steps:
1. we have removed edit/delete controls for some rows in ItemDatabouind event of the grid at the time of grid load.
2. when we click on a add record button on Grid.

3. popup window shows.

4. that popup contains a dropdown box which postback to server.

5. These removed controls still appearing in background when the pop-up comes up on front


Eyup
Telerik team
 answered on 27 Nov 2012
1 answer
70 views
Hi ,

I have a grid panel with  form template editor. In which i kept two cascading combo boxes and used ajaxpanel for avoiding  postback . The problem here is that i need a client side row add function in grid too ..... where as Ajax panel inside form doesn't allow automatic rowinsert or update. Hence i cant add the row to grid using POPUP form editor..


Any suggestions to overcome this ....?
Eyup
Telerik team
 answered on 27 Nov 2012
5 answers
293 views
Could someone help me with a CSS question for the RadMenu?

I have RadMenu with several root items.  The menu is rendered horizontally.  When you hover over one of the root items so the sub menu items are displayed, the left edge of the slider panel that contains these items starts directly beneath the root item.

I would like to change that so when you hover over a root item, the slider panel that drops down always is the same width, and the left edge of it is always in the same position, while the height auto-adjusts based on content.

I am currently using a custom skin to style my menu.  Can someone tell me what classes I need to modify, and what properties I need in order to achieve this?  Below is a link to a drawing that illustrates the current behavior, and the behavior that I want.

Example Illustration - Click to View

Thank you for your time,
Jim
Kate
Telerik team
 answered on 27 Nov 2012
3 answers
148 views
Hi,

I am thinking to have editable RAD grid in one of upcoming application -  All fields in all rows of RAD Grid has Text boxes/dropdown. There is no Edit button in individual rows as all fields in all rowshave has text box in them.

Is it possible to have filter in Rad grid when all fields in al lrows have text boxes/dropdowns in them ?

If yes then can you please send me demo for this ? 

Please note that editable RAD Grid in following link (Demo at the bottom of this link) is different then what I am talking here.

http://www.telerik.com/community/forums/aspnet/grid/issus-found-in-editing-a-grid-after-filtering.aspx


Thanks and regards,
Manishkumar Patel
Princy
Top achievements
Rank 2
 answered on 27 Nov 2012
1 answer
61 views
Does that mean I have to reinstall radcontrol AJAX in order for it to work? Could I do a repair on the rad controls? What is the recommended solution to my situation? Anyone have any experience with this?
Andrey
Telerik team
 answered on 27 Nov 2012
1 answer
168 views
How to give my own tooltip to the expand colapse button of my radgrid?
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2012
1 answer
115 views
Hi, i hav a teXt box in the editform. If the entered text is '12' i want to show a msg in a label. How can i do this?
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2012
7 answers
247 views
Hi,

I am facing an issue on undocking sliding pane as left side bar. The right side having a menu panel. On hovering sliding pane does not cover (overlapp) the menu panel. Rest of the pane covers the right hand side but only the menu panel. 

This is happening while we are upgrading the telerik controls from 2008 version to 2012 version. All the issues of have been resolved but this.

The z-index of the menu penal is getting applied though new telerik DLL and the value is 7000, while the sliding pane is having 2000 z-index. Again getting applied through new telerik DLL. We tried to override the z-index but it doesn't get overridden. Any help is much appreciated.
Lokesh
Top achievements
Rank 1
 answered on 27 Nov 2012
1 answer
114 views
Hello, I have a problem when creating a source-grid is not shown because at runtime, also when I try agrearle a template to a column I get error, I wonder if I could guide you in this.
Shinu
Top achievements
Rank 2
 answered on 27 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?