Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
252 views
Hi,

I am using RadTreeView control in radCombobox. I am using get_checkedNodes() method to get the checked nodes. This method is returning the collection of checked nodes but the order of the collection depends upon the values checked by user. I want this order in the order of index of the items in treeview. For example treeview is structured to have nodes A,B,C,D,E. If user checks in the order as D,B,C than collection returned is also in the order D,B,C. I want this collection in the order of index as B,C,D. Is there any way to sort this collection in javascript or to get the collection in the order of index. I am using 1 level depth of treeview control and I want this sorting in javascript.

Thanks,
Pankaj
Usha Ganju
Top achievements
Rank 2
 answered on 02 Nov 2009
2 answers
121 views
Currently I have a user control which contains a RadGrid, RadWindow and RadAjaxManagerProxy.

On the page which contains the control, initially when tested it worked fine. I'd click a button on the RadGrid would bring up the RadWindow. I've since moved it into a RadDock, now when the button is clicked, a post back happens, but the window does not pop up.

Here is the code for the window itself.

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" OnClientClose="OnClientCloseHandler"
DestroyOnClose=
"true" ReloadOnShow="true"
        <Windows> 
                <telerik:RadWindow ID="windowNotes" Behaviors="Close" KeepInScreenBounds="True" Modal="True" 
                             runat="server" Width="450px"   VisibleStatusbar="False"  ReloadOnShow="true"
                </telerik:RadWindow>  
        </Windows> 
    </telerik:RadWindowManager>   

The code from when the button is being pushed.

windowCustomerNotes.VisibleOnPageLoad = true
windowCustomerNotes.NavigateUrl = "~/Admin/Notes.aspx" 
 
windowCustomerNotes.Title = "Notes On" + firstName + " " + lastName 

And the page that contains it has a radAjaxManager which points to the panel which has the control inside of it.

 
<telerik:RadDockLayout ID="RadDockLayout1" runat="server"  
         storelayoutinviewstate="True"
   <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="350px" Width="180px"
      <telerik:RadDock ID="rdockUsers" runat="server" Width="1270px" Height="250px" 
                    BorderColor="Black" DefaultCommands="ExpandCollapse"  
                    EnableAnimation="True" Resizable="True" Title="Users"  
                    Collapsed="True" onclientinitialize="OnClientInitialize" 
                    OnClientDragStart="OnDragStart" OnClientDragEnd="OnDragEnd" 
                    onclientdockpositionchanged="OnClientPositionChanged"
                    <ContentTemplate> 
                        <div style="padding-left:5px;padding-right:5px;"
                            <asp:Panel ID="pnlUsers" runat="server"
                                <UC:Users id="users1" runat="server" /> 
                            </asp:Panel> 
                        </div> 
                    </ContentTemplate> 
                </telerik:RadDock> 
        </telerik:RadDockZone> 
    </telerik:RadDockLayout> 

As I said when I just had the panel on the page the rad window showed just fine. Also if I set the attribute "visibleonpageload" on the window itself. When the rdock initially loads on the page, the window will be shown.

Any reason why the window will not show any more?

Thanks
Derek
Top achievements
Rank 1
 answered on 02 Nov 2009
3 answers
166 views
Hi,
 
The icalender export is not working for me in Outlook 2003 ie if there is 3 records in outlook it is showing only the first record,
but in Outlook 2007 its working fine , showing all the records,
I follwed the following demo:

http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx

Please help.



Schlurk
Top achievements
Rank 2
 answered on 02 Nov 2009
3 answers
504 views
Hi ,

The OnCheckChanged event is not firing for me on the server side, when you click the checkbox.  It is just postingback, and returning the original value checked.  When something else causes a postback it is firing the event though. Any idea what it might be?

<telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1" 
            runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting>   
                <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:radajaxloadingpanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
            InitialDelayTime="10" MinDisplayTime="10" Width="75px">  
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
                style="border: 0px;" /> 
        </telerik:radajaxloadingpanel> 


<telerik:RadGrid ID="RadGrid1" runat="server" EnableViewState="False" GridLines="None" 
AllowPaging="True" AllowSorting="True" Skin="Web20" OnNeedDataSource="RadGrid1_NeedDataSource" AutoGenerateColumns="False"   
 OnInit="RadGrid1_Init" PageSize="30" Height="470px" HorizontalAlign="Center" Width="690px">  
    <MasterTableView  DataKeyNames="StudentID" ClientDataKeyNames="StudentID" CommandItemDisplay="Top" > 
    <RowIndicatorColumn> 
        <HeaderStyle Width="20px" /> 
    </RowIndicatorColumn> 
     <Columns> 
            <telerik:GridBoundColumn HeaderText="StudentID" DataField="StudentID" Visible="False" UniqueName="StudentID">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="SSID" HeaderText="Student ID" UniqueName="column5" DataType="System.Int64"  > 
             <HeaderStyle Width="70px" /> 
            <ItemStyle Width="70px" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Grade" HeaderText="Grade" UniqueName="column1" > 
            <HeaderStyle Width="60px" /> 
            <ItemStyle Width="60px" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" UniqueName="column2" > 
             <HeaderStyle Width="120px" /> 
            <ItemStyle Width="120px" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="column3" > 
             <HeaderStyle Width="120px" /> 
            <ItemStyle Width="120px" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="IEP" HeaderText="IEP" UniqueName="column6" DataType="System.Boolean"  > 
             <HeaderStyle Width="50px" /> 
            <ItemStyle Width="50px" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="EligibleREA" HeaderText="Eligible Reading" UniqueName="column7" > 
             <HeaderStyle Width="70px" /> 
            <ItemStyle Width="70px" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="EligibleMath" HeaderText="Eligible Math" UniqueName="column8" > 
             <HeaderStyle Width="70px" /> 
            <ItemStyle Width="70px" /> 
            </telerik:GridBoundColumn> 
            <telerik:GridTemplateColumn UniqueName="GridTemplateRegister" DataField="Registered" HeaderText="Registered">    
            <ItemTemplate>    
                <asp:CheckBox ID="chkRegistered" runat="server"  TextAlign="Right"   OnCheckedChanged="chkRegistered_CheckedChanged"    
                     AutoPostBack="True"  Checked='<%#Bind("Registered") %>' />    
            </ItemTemplate>    
            <HeaderStyle Width="70px" /> 
            <ItemStyle Width="70px" /> 
            </telerik:GridTemplateColumn> 
        </Columns> 
        <CommandItemTemplate> 
            <asp:LinkButton Style="vertical-align: bottom" ID="btnAdd" runat="server" 
               OnClientClick="javascript:return AddStudent();"<img style="border:0px" alt="" src="images/addstudent.gif" />Add Student Record</asp:LinkButton>       
          
        </CommandItemTemplate> 
 
    </MasterTableView> 
        <ClientSettings > 
            <ClientEvents  /> 
            <Scrolling AllowScroll="True" UseStaticHeaders"True"/>  
            </ClientSettings> 
     <PagerStyle Mode="NumericPages" PageButtonCount="20" /> 
     </telerik:RadGrid> 

        protected void chkRegistered_CheckedChanged(object sender, EventArgs e)  
        {    
            CheckBox chkbx = (CheckBox)sender;   
            GridDataItem item = (GridDataItem)(sender as CheckBox).NamingContainer; //item is the row where the checkbox (that invoked the event) resides    
              
            // Update database  
 
        }   


Thanks,
Parth
Parth
Top achievements
Rank 1
 answered on 02 Nov 2009
2 answers
114 views
Hi

When the window content page is viewed on its own, there is no problem, but when the page is seen within a RadWindow, a single pixel artefact is visible when using IE7 or IE 8. Unfortunately it is white and the page background is black so it is very visible.
I attach a screenshot with IE at the top, Firefox below.

Can you help me get rid of it!

Thanks

Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 02 Nov 2009
1 answer
116 views
Hi all i just want to show a tooltip on the asp.net grid by mouse over it. For example if i bind some Product names in the grid from the database, when i move the mouse over a particular product in the grid, i should get the rate of that particular product from database.
Please help me... 
Daniel
Telerik team
 answered on 02 Nov 2009
5 answers
165 views
Trying to update a label in a editform template when the value of a drop down box is changed.  However it keeps telling me the labels isnt defined because its in the editform template, if I move it out of the template it works just fine.
bradley baker
Top achievements
Rank 1
 answered on 02 Nov 2009
1 answer
223 views
Hi
I have been trying to find the right match for the Google Autofill  and there seens to be some matches missing.

I am creating a payment form and the typical content is 
  1. Name on Credit Card: [firstname] [lastname]
  2. Credit Card Number: [0000000000000000]
  3. End Date: [mm] [yyyy]
  4. CVC (SecurityNumber) : [0999]
  5. Start Date (optional): [mm] [yyyy]

Whilst this content in Google is often password protected, this at least allows input to be speedier and more reliable.

Can you tell me what the correct AutoCompleteType  should be for my RadTextBox.
 
Thanks in Advance
Doug

     
Sebastian
Telerik team
 answered on 02 Nov 2009
2 answers
138 views
Hi,

this is most likely a simple question but how do you set the color of the ticks labels? The ForeColor property of the Slider or of the SliderItem won't change anything.

Thanks
Nicolas
Top achievements
Rank 1
 answered on 02 Nov 2009
3 answers
98 views

Dear Telerik,

I've got a strange problem. I've set the culture from my RadScheduler to "nl-NL", and I've set my globalization settings in my web.config also to "nl-NL". Now, when I open my RadScheduler TimeLineView with DateHeaderFormat set to "D" (long dateformat), it (the date) shows up for a very short moment in Dutch (1-2 seconds), then it retrieves the appointments by using a webservice and then the date translation changes back to english! What could this be?

 

 

 

 

 

 

Dimitar Milushev
Telerik team
 answered on 02 Nov 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?