Radgrid columns preparing dynamically. Group code is:
Protected SubRadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated
If e.Column.DataType.Name = "Decimal" Or e.Column.DataType.Name = "Double" Then
CType(e.Column, Telerik.Web.UI.GridBoundColumn).DataFormatString = "{0:N3}"
CType(e.Column, Telerik.Web.UI.GridBoundColumn).Groupable = True
CType(e.Column, Telerik.Web.UI.GridBoundColumn).Aggregate = Telerik.Web.UI.GridAggregateFunction.Sum
End If
End Sub
Group totals working fine if I use 1 group. When I create second a group 1th level sub total is not correct. For example:
| SALARY | DIVISION | REGION | ||
| Region: AAA | ||||
| Division : XXX | ||||
| 796,50 | XXX | AAA | ||
| 796,50 | XXX | AAA | ||
| 796,50 | XXX | AAA | ||
| 2.389,50 | ||||
| Division : YYY | ||||
| 796,50 | YYY | AAA | ||
| 796,5 | ||||
| 1.593,00 | ||||
| Region: BBB | ||||
| Division : LLL | ||||
| 3646,00 | LLL | BBB | ||
| 3657,00 | LLL | BBB | ||
| 3180,00 | LLL | BBB | ||
| 3500,00 | LLL | BBB | ||
| 13.983,00 | ||||
| 3.500,00 | ||||
Dim Print As New System.Diagnostics.ProcessStartInfo()Print.Verb = "print"Print.WindowStyle = ProcessWindowStyle.HiddenPrint.FileName = fullpathPrint.UseShellExecute = TrueSystem.Diagnostics.Process.Start(Print)<GroupByExpressions> <telerik:GridGroupByExpression > <SelectFields > <telerik:GridGroupByField FieldAlias="Engagement Name" FieldName="EngName" FormatString="{0:d}"></telerik:GridGroupByField> </SelectFields> <GroupByFields > <telerik:GridGroupByField FieldName="EngNameWithID" HeaderText="Engagement Name"></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression></GroupByExpressions>HeaderText="Engagement Name" as per localization.Thanks.....
Hello,
I am currently working with the RadListView components.
I am trying to make a textbox visible or not from the result of a preceding textbox.
if tb1.text = “CE”
then tb2.visible = false
Currently I am having null pointer exception returns. The problem is that by the standard methods of binding the result to a String returns an object and not a string (even with the .ToString() argument). How can i resolve this problem?
'Retreive the list of functions in my DB then : If FunctionList.Count <> 0 Then Me.RadGridFunctions.DataSource = FunctionList Else Me.RadGridFonctions List(Of Fonction) End If Me.RadGridFunctions.DataBind()<head> <title></title> <script type="text/javascript"> function openWin() { window.radopen("Default5.aspx", "UserListDialog"); return false; } </script> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="sc1" runat="server"> </telerik:RadScriptManager> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" > <Windows> <telerik:RadWindow ID="UserListDialog" runat="server" Height="320px" Width="550px" Left="150px" /> </Windows> </telerik:RadWindowManager> <asp:Button ID="aspButton" runat="server" Text="aspButton" /> <telerik:RadButton ID="radButton" runat="server" Text="radButton" /> </form> </body> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Me.aspButton.Attributes.Add("onclick", "return openWin();return false;") Me.radButton.Attributes.Add("onclick", "return openWin();return false;") End If End Sub