Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 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
245 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
112 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
118 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
203 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
175 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
306 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
132 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
2 answers
88 views
Hi Friends,

I am very new to Telerik control.

I have a task to populate two radgrids. the scenario is

1)  On load the first grid say (RoomGrid) populates Room names of a school ie from 1 to 10 with Id, Roomname and Description

1-Room1-Descritpion1
2-Room2-Description2
.
.
.10-Room10-Description

So when I click on a particular row the second grid say studGrid should be populated with StudId, StudName in that room.

I dont want postback to happen when I click on the row as i will be opening a radwindow on doubleclicking RoomGrid.

So If I use selectedIndexChanged event the page will reload(postback) and doubleclick fails.

Can anyone help me how to do this? or any sample code? Very urgent Please

Thanks in Advance
Balaji





Balaji
Top achievements
Rank 1
 answered on 18 Aug 2011
1 answer
226 views
hi

I have a grid with paging enabled and viewstate is set to True and i have set a breakpoint at the NeedDdataSource. What happened is that whenever i click the page number on the grid it goes into breakpoint and it would ran through the code again.

There is some performance issues here if i have many rows of records.

Since i know the dataset has been filled with data, how do i code it so that there is no need to go through that code everytime i do a paging on the grid? thanks and sorry for the inconvenience caused.

Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource

Dim ds1 As New DataSet
ds1 = dsDemo("demo","demo")
RadGrid1.DataSource = ds1.Tables(0).DefaultView

End Sub


Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?