Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
350 views

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

 

Tsvetina
Telerik team
 answered on 18 Aug 2011
12 answers
289 views
HI,

We need multiple file selected & could be processed to upload , on just one browse click.
Is Multi file selection possible for upload using RadAsyncUpload or RadUpload control?

I searched every demo and tutorial to find the answer in no. but I think it should be possible.
Please help.

Thanks.
Helen
Telerik team
 answered on 18 Aug 2011
1 answer
108 views
This is probably simple.

I need to print a document when a checkbox is checked. I have all the information out of the grid (file name). I think the problem is that the files are on the server and this code won't work:
Dim Print As New System.Diagnostics.ProcessStartInfo()
Print.Verb = "print"
Print.WindowStyle = ProcessWindowStyle.Hidden
Print.FileName = fullpath
Print.UseShellExecute = True
System.Diagnostics.Process.Start(Print)

Is there a way to print a document that is on the server and print it on the clients machine

I also need to do something similar to this, but I need to start a download for documents that is checkbox.selected = true

Thanks,
Chuck
Mira
Telerik team
 answered on 18 Aug 2011
14 answers
232 views
I am running version 2008.2.723.20 and doing some client side coding.

var tree = <%=rtv.ClientID %>;
var node = tree.FindNodeByText("Books");

On the second line of code I am getting the following error:

Microsoft JScript runtime error: Object doesn't support this property or method

It appears that version 2008.2.723.20 does not support this method.

Can anyone confirm? Is the Expand() method also supported?

If FindNodeByText is not supported, is there a way I can loop through each of the child nodes and check the text/value of the particular node?

Thanks
Helen
Telerik team
 answered on 18 Aug 2011
1 answer
85 views
I am using a httpmodule to encrypt querystring. If I do querystring encryption RadGrid behaves differently. OnDeleteCommand event of delete button does not get fired.

Please help me to solve this issue.
Veli
Telerik team
 answered on 18 Aug 2011
1 answer
86 views
HI,
In my grid I have fixed one Field as default Grouping field but i want to localize its text from code behind. How to do it?
My code as:
<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>

I want to change  HeaderText="Engagement Name" as per localization.
# I am able to localize other columns on radGr1_GroupsChanging event but how to do for default Group?

Thanks..... 
Rajneesh
Top achievements
Rank 2
 answered on 18 Aug 2011
1 answer
161 views

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?



Thank you for your understanding
Shinu
Top achievements
Rank 2
 answered on 18 Aug 2011
2 answers
148 views
Hello,
I have multiple ragrids in a table and I would like to export them in one PDF.
i saw this exemple : http://www.telerik.com/community/code-library/aspnet-ajax/grid/export-multiple-radgrids-in-single-pdf-excel-file.aspx
but I'm not sure it will work for me: My grids don't have the same column names, and iwhen i tried inserting the gridWrapper, i did'nt have access to any of my grids server-side.

Do you have an idea of how could i do it?
Thank you
Shirya

this is how i populate one of  my radgrids(it is practically the same for all): That is why i need to have access to them
 
'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()
Daniel
Telerik team
 answered on 18 Aug 2011
1 answer
274 views
Hi all,
I have used aspButton to open RadWindow , it's work success
but i used radButton to open RadWindow, it's can open but immediately auto close
Please give me solution on this problem.why rad window auto close with rad button.
TKS~
<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
Shinu
Top achievements
Rank 2
 answered on 18 Aug 2011
1 answer
93 views
Right now I'm using the default export to CSV which maintains my field types when I open the file in excel, ie, currency stays as currency and percent as percent. What I want to do is export the grid with the headings it has also and still maintain type.

Is this possible with export to CSV?
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Aug 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?