Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
Hi.

I am creating a website where a user creates a piece of content, and when he submits it, he chooses when he wants it to be published. For this, I am using the DateTimePicker, which works fine, but I would like to make it so that the user can't select dates or times which have already passed, as it is what makes sense in this example. How can I do this?
Also, when I query my database to show the contents which have been published, I also want to compare the publish date with the date of today to know if I should show that content or not.

Any ideas?
Thanks,

Marta
Marta
Top achievements
Rank 1
 answered on 06 Jul 2009
0 answers
85 views
Hi
       I am using HeaderContextMenu to hiding and unhiding column. But one thing whenever i hide any of column the grid the column should not come to right position.The total view of grid has been collapsed.\

The column didint getting arranged well.

Is there any possible way. to get an exact view of Grid when hide/unhide done


 

Regards,
Appu
Appu
Top achievements
Rank 1
 asked on 06 Jul 2009
3 answers
93 views
3 Item,
default.aspx, grid.ascx, popup.aspx

default if the main page contains the grid.ascx
grid.ascx has only a radGrid with column
            <telerik:GridHyperLinkColumn Text="Deposit" UniqueName="deposit" DataNavigateUrlFields="Username" HeaderText="Point" 
                DataNavigateUrlFormatString="javascript:OpenUpdatePoint('{0}',1);"
            </telerik:GridHyperLinkColumn> 

When click column item, a popup radWindow will prompted using popup.aspx

I have add the follow ajax Manager code in default.aspx and callback javascipt function when popup.aspx radWIndow close.
and I sure that the javascript
        var ranMgr = $find('<%= RadAjaxManager.GetCurrent(this).ClientID %>'); 
        radMgr.ajaxRequest("Rebind"); 
runs properly.

But after ajaxRequest, the  OnAjaxRequest="TheRadAjaxManager_AjaxRequest" didnt fired as I expected.

In this case, what the code in RadAjaxManger should be set? my one is
        <telerik:AjaxSetting AjaxControlID="AgentRadGrid"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="UserRadTabPage" LoadingPanelID="TheRadAjaxLoadingPanel" /> 
                <telerik:AjaxUpdatedControl ControlID="AgentRadGrid" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
AgentRadGrid is the grid name need to refresh, what should be put in the AjaxControlID?

Thanks a lot!!
Pavlina
Telerik team
 answered on 06 Jul 2009
6 answers
241 views

The Grid works fine unless the User sorts the Results. As soon as one of the Columns is sorted by, the Grid seems to lose all the Data. If I page to the next set of Data it gives an "Index Out Of Range" Exception because no DataRows are present (even thought well over 300 Records are set as DataSource during the NeedDataSource Event).

Any Ideas? ViewState is enabled, and paging does work correctly before sorting.

Here is the Setup of the Grid:

<telerik:RadGrid ID="rgResult" runat="server"   
                    meta:resourcekey="radGrid" 
                    AutoGenerateColumns="False" 
                    skin="<%# Skin %>" GridLines="None"   
                    onneeddatasource="rgResult_NeedDataSource" 
                    onitemcommand="rgResult_ItemCommand"   
                    OnDetailTableDataBind="rgResult_DetailTableDataBind" 
                    AllowPaging="True" PageSize="15" Allowsorting="true"
Pavlina
Telerik team
 answered on 06 Jul 2009
1 answer
109 views
Hi
    I hav a problem i while reordering a column. I hav Group footer too.
The problem is while reordering a column which has the groupFooter value is not moving accoring to the the position where i placed ot reordered  any column, it reamain constant only column is reordering.


Plz help me t catch the point

Regards
Appu
 
Pavlina
Telerik team
 answered on 06 Jul 2009
1 answer
97 views
The radDatePicker's DatePopupButton is rendered differently in Safari.
When page is postback, the calendar icon is replaced by its tooltip.
If click to the tooltip message, a calendar will open but background is transparent.

Finally I set EnableViewState to False then it works like expected.

Could you give me any idea why?

Thanks,
d-cpt.


<telerik:RadDatePicker ID="rdpDateTo" runat="server" Skin="WebBlue" TabIndex="2"  
                    MinDate="2008-08-01" EnableTyping="False" ToolTip="Click Calendar icon to select a date" Culture="English (United States)" EnableViewState="False">
                    <DateInput LabelCssClass="radLabelCss_WebBlue" Skin="WebBlue" TabIndex="2" ReadOnly="True"></DateInput>
                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="WebBlue"></Calendar>
                    <DatePopupButton TabIndex="2"></DatePopupButton>
                  </telerik:RadDatePicker>
Dimo
Telerik team
 answered on 06 Jul 2009
1 answer
139 views
Hi
     i have the problem in rad grid, when i resize at the end portion of the column, it is not done exactly instead of the entire data columns are resizing so that the columns are appending buy one by one. So plz help me to find the solution.
My design code is:

<div style="margin-top: 0px; height: 200px; width: 1500px">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <%--<div class="module" style="height: 50px; width: 92%">
                <br />
                <asp:Button ID="btnExport" Width="150px" Text="Export to PDF" runat="server" OnClick="btnExport_Click" />
            </div>--%>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="requestStart"
                OnAjaxSettingCreating="RadAjaxManager1_AjaxSettingCreating">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel2" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <%--<telerik:AjaxSetting AjaxControlID="btnExport">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                            <telerik:AjaxUpdatedControl ControlID="btnExport" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>--%>
                </AjaxSettings>
                <ClientEvents OnRequestStart="requestStart" />
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Height="75px"
                Width="75px" HorizontalAlign="Left" BackgroundPosition="BottomLeft" Direction="LeftToRight">
                <div style="position: absolute; left: 500px; top: 200px">
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                        style="border: 0px;" />
                </div>
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadGrid AllowPaging="true" Height="575px" Width="100%" AutoGenerateColumns="false"
                AllowFilteringByColumn="true" PageSize="50" AllowSorting="true" ID="RadGrid1"
                runat="server" OnItemDataBound="RadGrid1_ItemDataBound" ShowFooter="true" OnPreRender="RadGrid1_PreRender"
                OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated" OnNeedDataSource="RadGrid1_NeedDataSource"
                MasterTableView-NoDetailRecordsText="NO RECORD FOUND..." MasterTableView-NoMasterRecordsText="---NO RECORD FOUND!!!!---">
                <ExportSettings IgnorePaging="True" OpenInNewWindow="True">
                    <Pdf AllowCopy="True" PageTitle="PostingNotice Billing Report" Keywords="None" Subject="RadGrid Export"
                        Author="Anonymous" Title="PostingNotice Billing Report" PageHeight="14in" PageWidth="8.5in" />
                </ExportSettings>
                <SortingSettings EnableSkinSortStyles="false" />
                <MasterTableView TableLayout="Fixed" ShowGroupFooter="true" EnableHeaderContextMenu="true"
                    AllowMultiColumnSorting="true" CommandItemDisplay="bottom" ShowFooter="true">
                    <HeaderStyle Height="20px" />
                    <FilterItemStyle Height="10px" />
                    <ItemStyle Height="20px" />
                    <AlternatingItemStyle Height="20px" />
                    <FooterStyle Font-Bold="true" Font-Size="10px" Font-Names="Arial" />
                    <GroupHeaderItemStyle Font-Bold="true" Font-Size="10px" Font-Names="Arial" />
                    <CommandItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Wrap="false" />
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name"></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldAlias="FirmName:" FieldName="Firm_name"></telerik:GridGroupByField>
                                <telerik:GridGroupByField FieldName="ProjectID"></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                    <CommandItemTemplate>
                        <asp:LinkButton Font-Bold="true" ForeColor="blue" ID="btnExport" CommandName="lnkExportPDF"
                            runat="server">ExportPDF</asp:LinkButton>
                    </CommandItemTemplate>
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <Columns>
                        <telerik:GridBoundColumn HeaderStyle-Width="2.33%" SortExpression="FID" AllowFiltering="false"
                            HeaderText="FID" DataField="FID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="Firm_name" HeaderStyle-Width="4.5%" ItemStyle-Wrap="true"
                            SortExpression="Firm_name" HeaderText="FirmName" DataField="Firm_name">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="NameComboBox" AutoPostBack="true"
                                    Height="100px" Width="80px" runat="server" OnSelectedIndexChanged="NameComboBox_IndexChanged"
                                    OnClientSelectedIndexChanged="NameChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                    <script type="text/javascript">
                                    function NameChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnFilter.ClientID%>').value = args.get_item().get_value();

                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="ProjectID" HeaderStyle-Width="3%" ItemStyle-Wrap="true"
                            Aggregate="CountDistinct" FooterText="ProjID:" AllowFiltering="false" HeaderText="ProjectID"
                            DataField="ProjectID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Project_Name" HeaderStyle-Width="6.67%"
                            ItemStyle-Wrap="true" AllowFiltering="false" HeaderText="ProjectName" DataField="Project_Name">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Project_Date_Created" HeaderStyle-Width="12.67%"
                            ItemStyle-Wrap="true" DataFormatString="{0:mm/dd/yyyy hh:mm:ss tt}" HeaderText="ProjectDateCreated"
                            DataField="Project_Date_Created">
                            <FilterTemplate>
                                <table border="0">
                                    <tr style="width: 10px;">
                                        <td style="border-width: 0px; width: 5px; font-size: 10px; font-family: Arial;">
                                            From</td>
                                        <td style="border-width: 0px">
                                            <telerik:RadDateTimePicker Font-Names="Arial" Font-Size="9px" ID="FromOrderDatePicker"
                                                runat="server" AutoPostBack="true" OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged"
                                                Height="15px" Width="150px" AutoPostBackControl="TimeView" SelectedDate="06/23/2009" />
                                        </td>
                                    </tr>
                                    <tr style="border-width: 0px">
                                        <td style="border-width: 0px; font-size: 10px; font-family: Arial;">
                                            To</td>
                                        <td style="border-width: 0px">
                                            <telerik:RadDateTimePicker ID="ToOrderDatePicker" AutoPostBackControl="TimeView"
                                                OnSelectedDateChanged="FromOrderDatePicker_SelectedDateChanged" Height="15px"
                                                Width="150px" Font-Names="Arial" Font-Size="XX-Small" runat="server" AutoPostBack="true"
                                                SelectedDate="06/23/2009" />
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="PS_TimeStamp" HeaderStyle-Width="6%" ItemStyle-Wrap="true"
                            AllowFiltering="false" HeaderText="PS_TimeStamp" DataField="PSTimeStamp">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="OrgName1" HeaderStyle-Width="5.33%" ItemStyle-Wrap="true"
                            UniqueName="OrgName1" CurrentFilterFunction="contains" AutoPostBackOnFilter="true"
                            FooterText="OrgName :" Aggregate="CountDistinct" HeaderText="OrgName" ShowFilterIcon="false"
                            DataField="OrgName1">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingCode" HeaderStyle-Width="5.33%" ItemStyle-Wrap="true"
                            AllowFiltering="true" HeaderText="BillingCode" UniqueName="BillingCode" DataField="BillingCode">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="BillCodeComboBox" AutoPostBack="true"
                                    Height="100px" Width="75px" runat="server" OnSelectedIndexChanged="BillingCodeComboBox_IndexChanged"
                                    AccessKey="T" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="BillingCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock5" runat="server">

                                    <script type="text/javascript">
                                    function BillingCodeChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnBillCode.ClientID%>').value = args.get_item().get_Text();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="BillingInfo_Date_Created" HeaderStyle-Width="4.5%"
                            AllowFiltering="false" HeaderText="BillingInfoDate Created" HeaderStyle-Wrap="true"
                            HeaderStyle-HorizontalAlign="Left" DataField="BillingInfo_Date_Created">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="JurisdictionCode" HeaderStyle-Width="2.67%"
                            ItemStyle-Wrap="true" UniqueName="JurisdictionCode" HeaderStyle-Wrap="true" HeaderText="Jurisdiction Code"
                            DataField="JurisdictionCode">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="JurisdictionComboBox"
                                    AutoPostBack="true" Width="50px" Height="100px" runat="server" OnSelectedIndexChanged="JurisdictionCodeComboBox_IndexChanged"
                                    AccessKey="T" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=";,"
                                    OnClientSelectedIndexChanged="JurisdictionCodeChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock6" runat="server">

                                    <script type="text/javascript">
                                    function JurisdictionCodeChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnJurisdictionCode.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="FergTechNum" HeaderStyle-Width="4%" ItemStyle-Wrap="true"
                            UniqueName="FergTechNum" HeaderText="FergTechNum" DataField="FergTechNum">
                            <FilterTemplate>
                                <telerik:RadComboBox Font-Names="Arial" Font-Size="9px" ID="FergTechNumComboBox"
                                    AutoPostBack="true" Height="100px" Width="75px" runat="server" OnSelectedIndexChanged="FergTechNumComboBox_IndexChanged"
                                    AccessKey="v" TabIndex="1" MarkFirstMatch="True" AllowCustomText="False" AutoCompleteSeparator=","
                                    OnClientSelectedIndexChanged="FergTechNumChanged">
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock7" runat="server">

                                    <script type="text/javascript">
                                    function FergTechNumChanged(sender,args)
                                    {
                                        document.getElementById('<%=hdnFergTechNum.ClientID%>').value = args.get_item().get_value();
                                       
                                    }
                                    </script>

                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderStyle-Width="5%" ItemStyle-Wrap="true" SortExpression="Quantity"
                            Aggregate="Sum" FooterText="Quantity :" ItemStyle-HorizontalAlign="Right" HeaderText="Quantity"
                            DataField="Quantity" UniqueName="Quantity">
                            <FilterTemplate>
                                <table border="0" cellpadding="0" cellspacing="0" style="margin: 0px; padding: 0px;">
                                    <tr style="width: 0px">
                                        <td style="border-width: 0;">
                                            <asp:Label ID="MinLabel" runat="server" Text="$0"></asp:Label>
                                        </td>
                                        <td style="border-width: 0px;">
                                            <telerik:RadSlider runat="server" ID="RadSlider1" IsSelectionRangeEnabled="true"
                                                SmallChange="5" ShowDecreaseHandle="false" ShowIncreaseHandle="false" Width="75px"
                                                OnClientSlideEnd="QuantityRangeChanged" OnClientValueChange="ClientValueChange"
                                                OnClientSlideStart="ClientSlideStart" />
                                            <div style="clear: both">
                                                <asp:Literal ID="Literal1" runat="server" Text='<%# "Range: $" + StartSlider + " - $" + EndSlider %>' />
                                            </div>
                                            <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

                                                <script type="text/javascript">
                                        function QuantityRangeChanged(sender,args)
                                         {                                     
                                            var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");                                                                                       
                                            
                                            var startValue = sender.get_selectionStart();
                                            var endValue = sender.get_selectionEnd();
                                                                                
                                            tableView.filter("Quantity", startValue + " " + endValue, "Between");
                                        }
                                        function ClientValueChange(sender, args)
                                        {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        
                                        if (!tooltip.isVisible())
                                        {
                                            var activeHandle = sender.get_activeHandle();
                                            if(!activeHandle) return;
                                                   
                                            tooltip.set_targetControl(activeHandle);
                                            tooltip.show();
                                        }
                                        else
                                        {
                                            tooltip.updateLocation();
                                        }
                                        
                                        tooltip.set_text(args.get_newValue());
                                        }
            
                                    function ClientSlideStart(sender, args)
                                    {
                                        var tooltip = $find("<%= RadToolTip1.ClientID %>");
                                        tooltip.hide();
                                    }           
                                       
                                                </script>

                                            </telerik:RadScriptBlock>
                                        </td>
                                        <td style="border-width: 0px; padding-left: 0px">
                                            <asp:Label ID="MaxLabel" runat="server" Text="$25"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </FilterTemplate>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="SourceFile" HeaderStyle-Width="5%" HeaderStyle-Wrap="true"
                            ItemStyle-Wrap="true" AllowFiltering="false" HeaderText="SourceFile" DataField="SourceFile">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowDragToGroup="true" />
                <%--<ItemStyle HorizontalAlign="right" />--%>
                <GroupingSettings ShowUnGroupButton="true" />
            </telerik:RadGrid>
            <telerik:RadToolTip ID="RadToolTip1" runat="server" OffsetY="3" Position="TopCenter"
                ShowCallout="false" Height="20px" ShowEvent="fromcode" />
            <asp:HiddenField ID="hdnFilter" runat="server" />
            <asp:HiddenField ID="hdnBillCode" runat="server" />
            <asp:HiddenField ID="hdnJurisdictionCode" runat="server" />
            <asp:HiddenField ID="hdnFergTechNum" runat="server" />
        </div>\

regards,
Appu




Pavlina
Telerik team
 answered on 06 Jul 2009
1 answer
77 views
I made a grid with the two compnents in it,

my problem is that the two is like causing to clash each events.

I first tried the alpha pager, it works.
commented the pager and made a the Google like filtering
the filtering worked.

but when i combine them, the alphabetic pagers event does not work properly
once i click  a letter from the pager. The grid loads and the alphabets are now gone and the grid does not rebind the items that are filtered by my pager.

i have noticed that using an alphabetic pager needs a GridBoundColumn while the filtering does not since it makes its own column.
I would appreciate if i could see a sample code.

thanks
Pavlina
Telerik team
 answered on 06 Jul 2009
2 answers
107 views
hi,

I have a very simple aspx page that contains a radAjaxpanel control inwhich I have an Iframe.
When the page loads for the first time, I can access the iframe.document object via javascript and all works fine. after the first partial postback done by the AjaxPanel, I cannot access the iframe.document ojbect via javascript and it gives me "null" instead!
If I remove the AjaxPanel it works perfectly.

Here is the .aspx and .vb contents.

--------------ASPX-----------------

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="temp.aspx.vb" Inherits="Admin_temp" %>

 

<%

 

@ Register assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 <

 

html xmlns="http://www.w3.org/1999/xhtml">

 

 

 <

 

head runat="server">

 

 

 

<title>Untitled Page</title>

 

 

 </

 

head 

 

 

<body>

 

<form id="form1" runat="server">

 

<div>

 

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

 

</telerik:RadScriptManager>

 

</div>

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" width="300px">

 

<asp:Button ID="Button1" runat="server" Text="Button" />

 

<input ID="Button2" type="button" value="button" onclick="alert(myframe);alert(myframe.document);" /><br />

 

<iframe id="myframe" name="myframe" runat="server"></iframe>

 

</telerik:RadAjaxPanel>

 

</form>

</

 

body>

 

</

 

html>

 

 

--------------END ASPX-----------

---------------CODE BEHIND-----------------

Partial

 

Class Admin_temp

 

 

Inherits System.Web.UI.Page

 

 

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Button1.Text = Now

 

End Sub

 

 

 

Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender

myframe.Attributes(

"src") = "default.aspx?time=" & Now

 

 

End Sub

 

End

 

Class

 

 

---------------END CODE BEHIND-----------------

I hope you can assist me ASAP, Thanks.
Iana Tsolova
Telerik team
 answered on 06 Jul 2009
1 answer
187 views
I have the following Javascript in the toolbar's button click to retrieve the selected Node. And this doesnt work. Can you help me?

 

var treeView = $find("<%= RdTViewHierarchy.ClientID %>");

 

 

var node0 = treeView.get_nodes().getNode(0);

 

 

for (var i=0; i < node0.get_nodes().get_count();i++)

 

{

 

var node = node0.get_nodes().getNode(i);

 

 

if (node.get_selected()) alert(node.get_text());

 

}

Veselin Vasilev
Telerik team
 answered on 06 Jul 2009
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?