Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
312 views
I have upgrade Rad Controls for ASP.NET AJAX to Q1 2013 from Q3 2012. I have a problem in below Server Side Rad Button control on click event and client side validation are not performed when Validation Group is set to true. Also grid parent item value return null during update.

I have tried internal builds from this below link from the forums. But still same thing happen.

http://www.telerik.com/community/forums/aspnet-ajax/button/in-q1-2013-server-side-onclick-event-and-client-side-validation-are-not-performed-when-validationgroup-is-set.aspx

So I plan to roll back earlier version i.e Q3 2012. I can't able to roll back. Please help how to install Q3 2012 version instead of Q1 2013.

Thanks in advance. 

Regards,
Chee.

Danail Vasilev
Telerik team
 answered on 15 Mar 2013
6 answers
296 views
Hi,
I need help from u,
I have a gridbuttoncolumn(linkbutton),i need to open a window on oncommand,and i am opening successfully but original page is refreshing when oncommand(client events) fires..please help me how to avoid page refresh on oncommand of gridbuttoncolumn(linkbutton).
Kostadin
Telerik team
 answered on 15 Mar 2013
1 answer
107 views
Hi All,

I want the tagcloud items to have different text color based on its font weight. how to achieve the same. please help.

Thanks,
JC.
Princy
Top achievements
Rank 2
 answered on 15 Mar 2013
1 answer
79 views
Hi All,
How to check if the tagcloud contains a certain item using javascript?

Thanks,
JC.
Princy
Top achievements
Rank 2
 answered on 15 Mar 2013
6 answers
517 views
I realize that the scheduler control has a TimeZoneOffset property where I could enter the offset from UTC/GMT.  I was wondering if it had some property for DST support?

When I create an event for a date that is before daylight savings, the time zone offset works fine:  Using monthly view, double clicking on a day before daylight savings went into effect shows the appointment startdate at 00:00 am for that date and the end date is 00:00 the next day - which is correct.  However, when I double click to create an appointment on a day after daylight savings has taken effect, the appointment start date becomes 01:00 for that date, and the end date is 01:00 for the next day, which is an hour extra (due to daylight savings).

Is there a way to handle this or will we have to implement our own code?  Thanks
Plamen
Telerik team
 answered on 15 Mar 2013
1 answer
67 views

Hi I have a RadAsyncUpload in a div, on focus it show right, but normal it show like cutted, I attach two screen.

<div class="qsf-demo-canvas">
    <telerik:RadAsyncUpload ID="fileUpload" style="padding-bottom:10px !important" runat="server" Skin="Black" InputSize="30" MaxFileInputsCount="1" ControlObjectsVisibility="None" Font-Size="Large"></telerik:RadAsyncUpload>
</div>        
Hristo Valyavicharski
Telerik team
 answered on 15 Mar 2013
2 answers
373 views
Calling all brains!

I have a PayPal 'Buy Now' button in a radwindow. On clicking this button the radwindow closes, and the parent page redirects to PayPal. This all works fine.

My concern is how to deal with the delay between the radwindow closing, and the parent page processing its redirect.  To the user it seems nothing is happening for a few seconds. It might not be possible but has anyone a good idea on how to show a "please wait" type message on the parent? 

I am using an empty label "lblJavaScript" on the parent and

 

lblJavaScript.Text =

"<script type='text/javascript'>top.location.href='" & sPayPal & "';GetRadWindow().Close();</script>"

...in the radwindow (where sPayPal = the URL to redirect to).

This works fine.
If I had two <div> on the parent page, one for the content to see before the radwindow pop-up, and one to show when it closes, is there any way to change my javascript above to show the new div as well as redirect the page and close the window?

Sorry to be so dumb. I don't think you can do this, but if you never ask cleverer people you never know!

thanks so much folks




    

dhlennon
Top achievements
Rank 1
 answered on 15 Mar 2013
5 answers
207 views
Is there a way to increase the height of the RadWindow header, and or possibly add custom content to it, like an image or a dropdown control? I know I can add custom buttons to the area in the top right, but what if I wanted to add a level below this...
Dobromir
Telerik team
 answered on 15 Mar 2013
32 answers
1.4K+ views

Hi

For long time I've been trying to achieve simple functionality: nest one rad grid into another, to get something similar to PanelBar. I simply want to be able to click on a row, which would then expand and show inner rad grid. This I've managed to do. However, I'm having really big problem with using this mechanism since all commands from nested grid are transferred automatically to master grid. This way I cannot select nested grid's row because each click collapses my master row.

I've tried already setting inner grid's ItemCommand event,but with no success, still incorrect (in my opinion) behavior occurs.

Below I'm posting snippet with aspx and some code to manage those grid. Could you help me resolving this issue? How can I be able to select row from nested grid? Or process any item command for nested grid?

<telerik:RadGrid ID="gridNodes" runat="server"
 AutoGenerateColumns="false"
 ShowHeader="false"
 GridLines="None">
    <ClientSettings EnablePostBackOnRowClick="true"
EnableRowHoverStyle="true" />
    <MasterTableView GroupLoadMode="Server"
 DataKeyNames="NodeId"
 AutoGenerateColumns="false"
 Name="master">
        <NestedViewTemplate>
            <asp:Panel ID="pnlStatements" runat="server">
                <telerik:RadGrid ID="gridStatements" runat="server"
 AutoGenerateColumns="false"
 ShowHeader="false">
                    <MasterTableView Name="inner">
                        <Columns>
                            <telerik:GridNumericColumn DataField="Id" Visible="false" />
                            <telerik:GridBoundColumn DataField="Value" />
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </asp:Panel>
        </NestedViewTemplate>
        <Columns>
            <telerik:GridBoundColumn UniqueName="NodeName"
 HeaderText="Node name"
 DataField="NodeName" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 and code behind:

Protected Sub gridNodes_NeedDataSource(ByVal sender As Object, ByVal e As GridNeedDataSourceEventArgs) _
    Handles gridNodes.NeedDataSource
    Me.gridNodes.DataSource = Me.ConsumptionContextViewModel.GetNodeWithParents()
End Sub
 
Protected Sub gridNodes_DataBound(ByVal sender As Object, ByVal e As EventArgs) _
    Handles gridNodes.DataBound
    If (gridNodes.Items.Count > 0) Then
        gridNodes.Items(0).Expanded = True
    End If
End Sub
 
Protected Sub gridNode_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) _
    Handles gridNodes.ItemCreated
    If (TypeOf (e.Item) Is GridNestedViewItem) Then
        Dim typeContent = DirectCast(e.Item.FindControl("gridStatements"), RadGrid)
        AddHandler typeContent.NeedDataSource, AddressOf Me.gridStatements_NeedDataSource
        AddHandler typeContent.ItemCommand, AddressOf Me.gridStatements_ItemCommand
    End If
End Sub
 
Protected Sub gridStatements_NeedDataSource(ByVal sender As Object, ByVal e As GridNeedDataSourceEventArgs)
    Dim grid = DirectCast(sender, RadGrid)
    Dim nodeId = DirectCast(grid.NamingContainer, GridNestedViewItem).ParentItem.GetDataKeyValue("NodeId")
    grid.DataSource = Me.ConsumptionContextViewModel.GetTextsForNode(CInt(nodeId))
End Sub
 
Protected Sub gridNode_ItemCommand(ByVal sender As Object, ByVal e As GridCommandEventArgs) _
    Handles gridNodes.ItemCommand
    Select Case e.CommandName
        Case RadGrid.ExpandCollapseCommandName
            If (Not TypeOf (e.Item) Is GridDataItem) Then
                Return
            End If
 
            ' close all items except current. e.Item.Expanded will be expanded after leaving ItemCommand method
            For Each item As GridItem In gridNodes.MasterTableView.Items
                If item.Expanded AndAlso item IsNot e.Item Then
                    item.Expanded = False
                End If
            Next
 
            ' select expanded row
            e.Item.FireCommandEvent(RadGrid.SelectCommandName, e)
            ' explicitly rebind inner container
            If (e.Item.Expanded = False) Then
                Dim dataItem = DirectCast(e.Item, GridDataItem)
                Dim innerContainer = DirectCast(dataItem.ChildItem.FindControl("gridStatements"), RadGrid)
                innerContainer.Rebind()
            End If
        Case "RowClick"
            ' manually fire expand event
            e.Item.FireCommandEvent(RadGrid.ExpandCollapseCommandName, New GridExpandCommandEventArgs(e.Item, sender, e))
        Case Else
            ' do nothing
    End Select
End Sub

Regards,

Pako

Vasil
Telerik team
 answered on 15 Mar 2013
13 answers
257 views
Hi,

I have 2 web applications. First one is our company project where we use Telerik's grid. I'm trying to export grid to MS Excel file by clicking grid's context menu option using the following code:

this.Grid.ExportSettings.ExportOnlyData = true;
this.Grid.ExportSettings.OpenInNewWindow = true;
this.Grid.MasterTableView.ExportToExcel();

But, Firefox's download dialog doesn't show up.

The second application is simpler test application where Telerik's grid is used as well. When I click grid's context menu option download dialog shows up.

It's obvious it's up to something in the code in first more complex application, but I can't find what for now. I'm just wondering if there's any setting I forgot to set up...

I appreciate any help.

Goran
Radoslav
Telerik team
 answered on 15 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?