Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
489 views
HI, 
i am using rad window ContentTemplate with two RadDateTimePicker  contols and one button.

when dates are selected by user and on button click event, i want to know what dates the user has selected in code behind. can some one please help me.

<telerik:RadWindowManager ID="RadWindowManager1" Title=" Search Filter" ShowContentDuringLoad="TRUE" VisibleStatusbar="false"
        ReloadOnShow="true" runat="server" Skin="Sunset" EnableShadow="true" 
    Animation="FlyIn" EnableTheming="False" AnimationDuration="500">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" Modal="true"  RestrictionZoneID="NavigateUrlZone" runat="server" Behaviors="Close" OnClientClose="OnClientClose"
                Width="400">
                <ContentTemplate>
                 <br />
                <br />
                    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                 From:
                     <telerik:RadDateTimePicker ID="DtFromdate" runat="server">                 
                     </telerik:RadDateTimePicker>
                    <asp:RequiredFieldValidator ID="Rffromdate" runat="server"  ControlToValidate = "DtFromdate" Text="Select date"                              ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
                    <telerik:RadDateTimePicker ID="DtTodate" runat="server">                
                     </telerik:RadDateTimePicker>                     
                     <asp:RequiredFieldValidator  ID="Rftodate" runat="server" Text="Select date" ControlToValidate = "DtTodate"                                         ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
                    <asp:Button ID="BtnSubmitdata" OnClick="BtnParameters_Click" runat="server" Text="Filter" />

----------------------------------------------------------------------------------------------------------------------------------------------------------------
on code behind i am trying to access the above controls but is is not returning any value. 

 RadDateTimePicker fromdt = RadWindow1.ContentContainer.FindControl("Rffromdate") as RadDateTimePicker;
        RadDateTimePicker todt = RadWindow1.ContentContainer.FindControl("Rftodate") as RadDateTimePicker;


can some one please help me.
          
Marin Bratanov
Telerik team
 answered on 11 Jun 2012
3 answers
124 views
I have a tab strip defined like this ...
<telerik:RadTabStrip runat="server"
                     ID="RadTabStrip1"
                     MultiPageID="RadMultiPage1"
                     ScrollChildren="true"
                     ScrollButtonsPosition="Right"
                     PerTabScrolling="true"
                     SelectedIndex="0">
    <Tabs>
        <telerik:RadTab Value="tsSearch"
                        Text="Search"
                         ScrollChildren="true"
                         ScrollButtonsPosition="Right"
                         PerTabScrolling="true">
            <Tabs>
                <telerik:RadTab Value="tsSearchBasic"
                                Text="Quick"
                                PageViewID="pvSearchBasic"/>
                <telerik:RadTab Value="tsSearchAdvanced"
                                Text="Advanced"
                                PageViewID="pvSearchAdvanced"/>
            </Tabs>
        </telerik:RadTab>
        <telerik:RadTab Value="tsDetails"
                        Text="Details"
                         ScrollChildren="true"
                         ScrollButtonsPosition="Right"
                         PerTabScrolling="true">
            <Tabs>
                <telerik:RadTab Value="tsBusiness"
                                Text="Business"
                                PageViewID="pvBusiness"/>
                <telerik:RadTab Value="tsPersonal"
                                Text="Personal (Phone/Email)"
                                PageViewID="pvPersonal"/>
                <telerik:RadTab Value="tsPostal"
                                Text="Personal (Address)"
                                PageViewID="pvPostal"/>
            </Tabs>                
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>

Now, if I have a 2nd-level tab on tsDetails selected and run this fowllowing javascript ...

startTab = tabStrip.findTabByValue("tsSearchBasic");
if (startTab != null)
{
    startTab.select();
    startTab.scrollIntoView();
}

What happens is that the relevant PageView shows, suggesting that the correct tab has been selected. However, the tabstrip itself doesn't change.

Rightly or wrongly, I was expecting the top-level tab "Search" to be come active and the relevant 2nd-level tab to be selected.

Either I'm doing it wrong, my expectations are incorrect or it's broken.

Anyone care to hazard a guess?

[later]
I suspect my expectations are wrong  :-( as it works as I've described on this demo page too.



Stuart Hemming
Top achievements
Rank 2
 answered on 11 Jun 2012
0 answers
140 views

Hello,

 

I need to get width and height of  telerik RadPane inside RadSplitter after I change it in a browser and on next load set that changed width and height to radpane.

I tried events like onClientResized and so on but events worked on page load and after that nothing happens if I move borderline.

Please help me. Also it'll good if you give me example code too.

Ruslan
Top achievements
Rank 1
 asked on 11 Jun 2012
6 answers
332 views
Hi,

I'm trying to load a treeview from this xml string:

  <?xml version="1.0" encoding="utf-8" ?>
- <Tree>
  <Node Text="TAREAS REPETITIVAS: botón reminder para quienes no entregan adjunto" ID="1311" Expanded="True" ImageUrl="~/Images/check.png" IsFather="True" />
  <Node Text="TAREAS REPETITIVAS: Diferenciar archivos x usuario (en carpetas?)" ID="1312" Expanded="True" ImageUrl="~/Images/check.png" IsFather="True" />
  <Node Text="MENSAJES PRIVADOS: convertirlo a cloud?" ID="1318" Expanded="True" ImageUrl="~/Images/check.png" IsFather="True" />
  </Tree>

as you can see, each node have Text and ID attributes
sometimes, the nodes will have childs (only nodes two levels: parent - child)

when a linkbutton be pressed, I want to iterate the nodes and retrieving the id of each node and the id of the node childs 

I'm not sure if this is the best way to do this functionality... could you help me please?
Peter
Telerik team
 answered on 11 Jun 2012
0 answers
68 views
to insure that header lines in a RAD grid with imbedded spaces don't wrap I bracketed the text with <nobr></nobr>
only problem - doesn't work in IE (9 or 8 or...)
Q3 2011 used to convert the string to <NOBR>,/NOBR>- Q1 2012 no longer does

will this be "fixed" or do I need to make case code depending on browser?



um - the answer is both
the bug was mine - I was referring to the columns by an index and I was asked to remove one
the feature is that for Mozilla, Chrome and Safari it didn't wrap anyway
only Opera and IE did
Elliott
Top achievements
Rank 2
 asked on 11 Jun 2012
1 answer
89 views
how to create a dynamic column in rad grid
Pavlina
Telerik team
 answered on 11 Jun 2012
1 answer
109 views
GZIP compression?
Edward
Top achievements
Rank 1
 answered on 11 Jun 2012
1 answer
122 views
how to insert  new rows into the radgridview
Pavlina
Telerik team
 answered on 11 Jun 2012
1 answer
58 views

how to change the border of a toolptip??

Shinu
Top achievements
Rank 2
 answered on 11 Jun 2012
1 answer
123 views
HOW TO AVOID POSTBACK IN RAD TOOL BAR BUTTONS
Princy
Top achievements
Rank 2
 answered on 11 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?