Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
345 views
Hi, I'm having problems trying to get drag and drop working on a simple radgrid. I've based my code on the website demo as follows - cab you help please?

aspx:

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="Telerik" OnNeedDataSource="RadGrid1_NeedDataSource" OnRowDrop="RadGrid1_RowDrop" AllowMultiRowSelection="true" >
    <MasterTableView DataKeyNames="id">
    </MasterTableView>
    
<ClientSettings AllowRowsDragDrop="True">
       
<Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
    </ClientSettings>
</telerik:RadGrid>

VB:

Protected Sub RadGrid1_RowDrop(ByVal sender As Object, ByVal e As GridDragDropEventArgs) Handles RadGrid1.RowDrop

    If String.IsNullOrEmpty(e.HtmlElement) Then
        If e.DestDataItem IsNot Nothing Then
            Dim categoryList As IList(Of category)
            categoryList = categoryStore
            Dim categoryItem As category = GetCategory(categoryList, DirectCast(e.DestDataItem.GetDataKeyValue("id"), Integer))
            Dim destinationIndex As Integer = categoryList.IndexOf(categoryItem)
            Dim categoriesToMove As New List(Of category)()
            For Each draggedItem As GridDataItem In e.DraggedItems
                    Dim tmpcategory As category = GetCategory(categoryList, DirectCast(draggedItem.GetDataKeyValue("id"), Integer))
 
                   If tmpcategory IsNot Nothing Then
                            categoriesToMove.Add(tmpcategory)
 
                   End If
             Next
             For Each categoryToMove As category In categoriesToMove
                    categoryList.Remove(categoryToMove)
                    categoryList.Insert(destinationIndex, categoryToMove)
             Next
             categoryStore = categoryList
             RadGrid1.Rebind()
             e.DestDataItem.Selected =
True
          End If
      End If

End Sub

Protected Property categoryStore() As IList(Of category)
    
Get
        
Try
            Dim obj As Object = Session("categoryList_VB")
            If obj Is Nothing Then
                obj = GetCategories()
                Session(
"categoryList_VB") = obj
            End If
            Return DirectCast(obj, IList(Of category))
        Catch ex As Exception
            Session(
"categoryList_VB") = Nothing
        End Try
        Return New List(Of category)
    End Get

    Set(ByVal value As IList(Of category))
        Session(
"categoryList_VB") = value
    End Set
End Property

Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs)
    RadGrid1.DataSource = categoryStore
End Sub

Protected Function GetCategories() As IList(Of category)
    Dim results As IList(Of category) = New List(Of category)()
    Dim dbCon As New SqlConnection("Data Source=SHEP\SQLEXPRESS;Initial Catalog=abelSQL;Integrated Security=True")
    
Dim dbCmd As New SqlCommand
    dbCmd.Connection = dbCon
    dbCmd.CommandText =
"SELECT id, dscrp, seq FROM sitecostsPrimary ORDER BY seq ASC"
    dbCon.Open()
    Dim reader As IDataReader = dbCmd.ExecuteReader()
    While reader.Read()
        Dim id As Integer = DirectCast(reader.GetValue(reader.GetOrdinal("id")), Integer)
        Dim dscrp As String = DirectCast(reader.GetValue(reader.GetOrdinal("dscrp")), String)
        Dim
seq As Integer = DirectCast(reader.GetValue(reader.GetOrdinal("seq")), Integer)
        results.Add(
New category(id, dscrp, seq))
    End While
    results.Add(New category(999, "Test item", 99))
    Return results
End Function

Private Shared Function GetCategory(ByVal ordersToSearchIn As IEnumerable(Of category), ByVal id As Integer) As category
    For Each cat As category In ordersToSearchIn
        If cat.id = id Then
            Return cat
        End If
    Next
    Return Nothing
End Function

Protected Class category
    Private _id As Integer
    Private _dscrp As String
    Private _seq As Integer

    Public Sub New(ByVal id As Integer, ByVal dscrp As String, ByVal seq As Integer)
        _id = id
        _dscrp = dscrp
        _seq = seq
    End Sub

    Public ReadOnly Property id() As Integer
        Get
            Return _id
        End Get
    End Property

    Public ReadOnly Property dscrp() As String
        Get
            Return _dscrp
        End Get
    End Property

    Public ReadOnly Property seq() As String
        Get
            Return _seq
        End Get
    End Property

End Class

Yavor
Telerik team
 answered on 01 May 2008
1 answer
148 views
When I put a RadDecorator on the same page as a RadUpload it also reskins the RadUploads buttons and it makes the Add and Delete buttons invisible until you do a postback or callback of somesort. I would like to use thsi new functionality, but I can't use it as is.

Is there a way to exclude the RadUpload from being skinned? Below is a sample of what I am talking about.

<telerik:RadFormDecorator ID="formDecorator" runat="server" Skin="Web20" /> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px">  
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
        style="border: 0px;" /> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadAjaxPanel ID="ajaxPanel" runat="server" Width="100%">  
    <table style="width: 100%;">  
        <tr> 
            <td align="left" valign="top">  
            </td> 
            <td align="left" valign="top">  
                <table style="width: 100%;">  
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            Steps:  
                        </td> 
                        <td align="left" valign="top">  
                            <asp:Label ID="labelStep" runat="server" Text="1. Form(s)" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            <telerik:RadTabStrip ID="tabWizard" runat="server" MultiPageID="multiPageWizard" 
                                Orientation="VerticalLeft" SelectedIndex="0" Skin="Office2007" OnTabClick="tabWizard_TabClick" 
                                CausesValidation="False">  
                                <Tabs> 
                                    <telerik:RadTab runat="server" PageViewID="pageForm" Text="1. Form(s)" Selected="true">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageDescription" Text="2. Details">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageFinish" Text="3. Finish">  
                                    </telerik:RadTab> 
                                </Tabs> 
                            </telerik:RadTabStrip> 
                        </td> 
                        <td align="left" valign="top">  
                            <telerik:RadMultiPage ID="multiPageWizard" runat="server" SelectedIndex="0">  
                                <telerik:RadPageView ID="pageForm" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <telerik:RadUpload ID="uploadForms" runat="server" /> 
                                            </td> 
                                            <td> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnFormNext" runat="server" CausesValidation="False"   
                                                    OnClick="btnNext_Click" Text="Next" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageDescription" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Title (Max 255 Chars):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textTitle" runat="server" MaxLength="255">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="valTitle" runat="server" ControlToValidate="textTitle" 
                                                    ErrorMessage="Form Title is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textDescription" runat="server" Height="150px" TextMode="MultiLine">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="textDescription" 
                                                    ErrorMessage="Form Description is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Name:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textOwnerName" runat="server">  
                                                </telerik:RadTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Email:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadMaskedTextBox ID="textOwnerEmail" runat="server">  
                                                </telerik:RadMaskedTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:ValidationSummary ID="valSummary" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailNext" runat="server" Text="Next" OnClick="btnNext_Click" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageFinish" runat="server" Width="100%">  
                                    The following Form(s) is ready to be added:  
                                    <br /> 
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Title:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelTitle" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelDescription" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Form(s):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelForms" runat="server" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                    <br /> 
                                    To add the Form(s), click <span style="font-weight: bold">Finish</span>. To review  
                                    your changes, click <span style="font-weight: bold">Back</span>, or click <span style="font-weight: bold">  
                                        Cancel</span> to return to the Forms homepage.<br /> 
                                        <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryFinish" runat="server" Text="Finish" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryCancel" runat="server" Text="Cancel" /> 
                                            </td> 
                                    </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                            </telerik:RadMultiPage> 
                        </td> 
                    </tr> 
                </table> 
            </td> 
        </tr> 
    </table> 
</telerik:RadAjaxPanel> 
Martin
Telerik team
 answered on 01 May 2008
1 answer
135 views
When I put a RadDecorator on the same page as a RadUpload it also reskins the RadUploads buttons and it makes the Add and Delete buttons invisible until you do a postback or callback of somesort. I would like to use thsi new functionality, but I can't use it as is.

Is there a way to exclude the RadUpload from being skinned? Below is a sample of what I am talking about.

<telerik:RadFormDecorator ID="formDecorator" runat="server" Skin="Web20" /> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px">  
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
        style="border: 0px;" /> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadAjaxPanel ID="ajaxPanel" runat="server" Width="100%">  
    <table style="width: 100%;">  
        <tr> 
            <td align="left" valign="top">  
            </td> 
            <td align="left" valign="top">  
                <table style="width: 100%;">  
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            Steps:  
                        </td> 
                        <td align="left" valign="top">  
                            <asp:Label ID="labelStep" runat="server" Text="1. Form(s)" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="left" valign="top" style="width: 150px;">  
                            <telerik:RadTabStrip ID="tabWizard" runat="server" MultiPageID="multiPageWizard" 
                                Orientation="VerticalLeft" SelectedIndex="0" Skin="Office2007" OnTabClick="tabWizard_TabClick" 
                                CausesValidation="False">  
                                <Tabs> 
                                    <telerik:RadTab runat="server" PageViewID="pageForm" Text="1. Form(s)" Selected="true">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageDescription" Text="2. Details">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" PageViewID="pageFinish" Text="3. Finish">  
                                    </telerik:RadTab> 
                                </Tabs> 
                            </telerik:RadTabStrip> 
                        </td> 
                        <td align="left" valign="top">  
                            <telerik:RadMultiPage ID="multiPageWizard" runat="server" SelectedIndex="0">  
                                <telerik:RadPageView ID="pageForm" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <telerik:RadUpload ID="uploadForms" runat="server" /> 
                                            </td> 
                                            <td> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnFormNext" runat="server" CausesValidation="False"   
                                                    OnClick="btnNext_Click" Text="Next" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageDescription" runat="server" Width="100%">  
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Title (Max 255 Chars):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textTitle" runat="server" MaxLength="255">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="valTitle" runat="server" ControlToValidate="textTitle" 
                                                    ErrorMessage="Form Title is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Form Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textDescription" runat="server" Height="150px" TextMode="MultiLine">  
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="textDescription" 
                                                    ErrorMessage="Form Description is a required field">*</asp:RequiredFieldValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Name:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="textOwnerName" runat="server">  
                                                </telerik:RadTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                Owner Email:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <telerik:RadMaskedTextBox ID="textOwnerEmail" runat="server">  
                                                </telerik:RadMaskedTextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:ValidationSummary ID="valSummary" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnDetailNext" runat="server" Text="Next" OnClick="btnNext_Click" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                                <telerik:RadPageView ID="pageFinish" runat="server" Width="100%">  
                                    The following Form(s) is ready to be added:  
                                    <br /> 
                                    <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Title:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelTitle" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Description:  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelDescription" runat="server" /> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td align="left" valign="top" style="width: 150px;">  
                                                Form(s):  
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Label ID="labelForms" runat="server" /> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                    <br /> 
                                    To add the Form(s), click <span style="font-weight: bold">Finish</span>. To review  
                                    your changes, click <span style="font-weight: bold">Back</span>, or click <span style="font-weight: bold">  
                                        Cancel</span> to return to the Forms homepage.<br /> 
                                        <table style="width: 100%;">  
                                        <tr> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryBack" runat="server" Text="Back"   
                                                    OnClick="btnBack_Click" CausesValidation="False" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryFinish" runat="server" Text="Finish" /> 
                                            </td> 
                                            <td align="left" valign="top">  
                                                <asp:Button ID="btnSummaryCancel" runat="server" Text="Cancel" /> 
                                            </td> 
                                    </tr> 
                                    </table> 
                                </telerik:RadPageView> 
                            </telerik:RadMultiPage> 
                        </td> 
                    </tr> 
                </table> 
            </td> 
        </tr> 
    </table> 
</telerik:RadAjaxPanel> 
Martin
Telerik team
 answered on 01 May 2008
1 answer
65 views
if using the image properties popup on an image with a hyperlink will move the hyperlink away from the image, thus breaking it:

on this page:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/Default/DefaultCS.aspx

make some space on the page.
use the image tool to add an image to canvas.
click on the image and click on the hyperlink tool.
add a hyperlink.
right click over the image, select image properties
set the border to 0 and click ok

the image has now been moved outside of the hyperlink, thus breaking it.


also, is it possible to default image border to zero on all inserts? this is what most often causes our users to see this issue.

rob
Rumen
Telerik team
 answered on 01 May 2008
1 answer
121 views
Hi. I would like to use RadScheduler as holiday editor so:
1) Set SelectedView = ResourceView
2) ShowViewTabs = false

I would like when I double click in a cell, take as a "whole" activity for all the hours inside the cell because now I click in different zones in my cell and I can add multiple "activities"

Is there a way to define a cell as it has one "hour" ?

TIA
Peter
Telerik team
 answered on 01 May 2008
1 answer
151 views
Dear all, I just updated from Prometheus to Q1 2008 AJAX and testing a page with a radgrid received:

Parse Error:
The 'FilterMenu' property cannot be set declaratively

The FilterMenu property in the help shows that it appears to be able to set this correctly declaratively. 

Was there a  note in the release notes about this?

Thanks,
Jason

Yavor
Telerik team
 answered on 01 May 2008
3 answers
141 views
Hi - I have a radgrid that has 3 collumns - one of these is a percentage number (i.e. a number from 0 - 100). The number is displayed as it comes from the db.

But what I want is to have a bar image in the cell with the number with the width of the bar set to the %number.

How do I access the cell that the number is in? I can't seem to access the cell and its contents. I also want to format the text so that, rather than saying just "23", I append a % to it so it says "23%" plus also the bar image.

Any ideas?

Thanks.
John
Top achievements
Rank 1
 answered on 01 May 2008
3 answers
149 views
As this worked in ASP.NET RadControls RadEditor:

...html='<%# Bind("ShortDescription") %>'...

There is no 'html' property of the AJAX RadEditor. Instead you use

<content>
Some stuff....
</content>

So, how do you Bind the editor to ShortDescription as I have previously done with the NON-AJAX RadEditor. You CANNOT do this:

<content>
<%# Bind("ShortDescription") %>
</content>

If code-behind is required, that's flat ridiculous. The examples are wrong and the online help is also incorrect, telling me to use ...content='<%# Bind("ShortDescription") %>'...

There is no content propert of this RadEditor.
Rumen
Telerik team
 answered on 01 May 2008
2 answers
308 views

I have been trying to get a RadWindow I have defined on my page to open via a javascript script block I register as part of a button postback.  (see code below).  My page lives inside of a master page, so I don't know if that has an impact or not, but when I execute the following line:

var oWnd = $find("rwRegisterCardPopup");

my oWnd is null. 

.aspx code
-------------------------
<script type="text/javascript">

<!--

function CallbackFunction_rwRegisterCardPopup(win, val)

{

var hfReturn = document.getElementById('<%= hfRegisterWindowCallback.ClientID %>');

var btn = document.getElementById('<%= btnRegisterWindowCallback.ClientId %>');

hfReturn.value = val;

btn.click();

}

function OpenPopUp_rwRegisterCardPopup(ProductId, SupplierId, Discount)

{

var oWin = $find("rwRegisterCardPopup");

if (oWin == null)

{

alert(

'Error: oWin == null is true (method1)'); //this always shows as oWin is null

oWin = $find(

"<%=rwRegisterCardPopup.ClientID%>");

}

if (oWin == null)

alert(

'Error: oWin == null is true (method2)'); //this always shows as oWin is null

else

{

var url = oWin.get_navigateUrl();

url = url +

"?GLSCProductId=" + ProductId + "&GLSCSupplierId=" + SupplierId + "&Discount=" + Discount;

oWin.setUrl(url);

oWin.show();

oWin.center();

}

}

-->

</script>

<telerik:RadWindow ID="rwRegisterCardPopup" runat="server" Title="New Reloadable Card Registration" Modal="true" Height="600px" Width="400px" Skin="WebBlue" Behaviors="Move" VisibleStatusbar="false" ClientCallBackFunction="CallbackFunction_rwRegisterCardPopup" NavigateUrl="~/orderscrip/register_card.aspx" >

</telerik:RadWindow>

.....


here's my code behind for the button that registers the Client Script Block

Private Sub ShowRegisterCardPopup(ByVal GLSCProductId As String, ByVal GLSCSupplierId As String, ByVal Discount As Decimal)

Dim java As String = "<script>alert('calling OpenPopUp_rwRegisterCardPopup()'); OpenPopUp_rwRegisterCardPopup('{0}', '{1}', '{2}');</" & "script>"

Me.ClientScript.RegisterStartupScript(Me.GetType(), "ShowRegisterCardPopup", String.Format(java, GLSCProductId, GLSCSupplierId, Discount))

End Sub

The Sub is the only code called by the button's Click handler.


My page inherits the Asp.net AJAX ScriptManager from the master page.

I tried adding the RadWindowManger and using the radopen method as well, but had no improvement with the results. 

Please advise.

thanks,
Paul

Svetlina Anati
Telerik team
 answered on 01 May 2008
1 answer
126 views
In RadTreeView "Classic" we are using the BeforeClientHighlight event to cancel a node highlight if we are currently in the process of an Ajax update. We allow drag and drop to a table that is within an Ajax panel, and if the user has dragged-and-dropped and that panel is still refreshing we don't want the user to drag something else. Not only that, we don't want the user to be able to highlight a node AS IF they could drag it.

The "Migrating from RADTreeView for ASP.NET to ASP.NET AJAX" page says that BeforeClientHighlight has been replaced with OnClientNodeHighlighting; however I don't see that event in Intellisense and it is not listed in the Client-Side Programming section of the help doc.

Does it exist? And if not, is there an alternative?

Thank you,
Terry
Nikolay
Telerik team
 answered on 01 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?