Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
174 views
Hi

I am using Telerik tree view control with checkboxs.
What i need is when i select the parent node it should select all the child's nodes like wise unselect also.
I am using this javascript code

function UpdateAllChildren(nodes, checked)
{
   var i;

       for (i=0; i<nodes.get_count(); i++)
       {
           if (checked)
           {
               nodes.getNode(i).check();
           }
           else
           {
               nodes.getNode(i).set_checked(false);
           }
           
           if (nodes.getNode(i).get_nodes().get_count()> 0)
           {
               UpdateAllChildren(nodes.getNode(i).get_nodes(), checked);
           }
       }
       if ((nodes.get_count()==0) && (nodes._parent._parent._parent!=null) && (!checked))
       {
        nodes._parent._parent.set_checked(false);
       }
}
if the selected node has more than 200 child Nodes (nodes.get_count() > 200) then i am always getting this error

Stop running  this script a script on this page is causing Internet explore to run slowly.If it continue to run your computer may be unresponsive. How can i avoid this error

Regards
Vairamuthu



Schlurk
Top achievements
Rank 2
 answered on 28 Jan 2010
1 answer
89 views
Hi
i m selecting a tree node in combo box,initially its not showing a node text as combobox but second time if i select a node it will show as a combo box text .only firstime its not showing node text as combo text,any help

thanks

usman
Schlurk
Top achievements
Rank 2
 answered on 28 Jan 2010
4 answers
129 views
Hi,

I am trying to modify some of the css classes for radgrid. Can someone tell me which selector I should be using to modify

Radgrid_Vista .rgExpand,
RadGrid_Vista .rgCollapse,
.DetailTable_Vista

Is it documented anywhere so that I can refer to it in future.

Many thanks,

Anu
Anu
Top achievements
Rank 1
 answered on 28 Jan 2010
1 answer
65 views
Hi,
   Is there anyway of making visible columns that have been previously been made invisible programmatically.

We have a show all button that we would like to make all columns visible, however once they have been made visible = false, this can't be changed.

Regards

Robert Smith
Shinu
Top achievements
Rank 2
 answered on 28 Jan 2010
7 answers
239 views
Hi , I need a help with exporting to excel / pdf.
I dont know why I cant enter event handler of OnGridExporting event. I have enabled built in command for exporting and added an appropriate event in grid mark up definition.the problem that onCommand event handler is intercepting OnGridExporting event.
please see attached markup file and try to help me . I am using telerik 2009 Q3 version . 

Thanks ! 
<body class="BODY"> 
    <form runat="server" id="mainForm" method="get"> 
    <telerik:RadScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server" /> 
    <!-- content start --> 
    <asp:CheckBox ID="CheckBox1" Text="Allow multi column sorting" Checked="true" runat="server" 
        onclick="toggleAllowMultiColumnSorting(this, event);" /> 
    <telerik:RadDockLayout runat="server" ID="RadDockLayout1"> 
        <table width="100%" border="0"> 
            <tr> 
                <td align="center" rowspan="1" valign="middle" colspan="2"> 
                    <telerik:RadDockZone ID="RadDockZoneTop" runat="server" Orientation="Vertical"> 
                        <telerik:RadDock ID="RadDockSearch" runat="server" Title="חיפוש" EnableAnimation="true" 
                            EnableRoundedCorners="true" Resizable="false" DefaultCommands="ExpandCollapse" 
                             > 
                            <ContentTemplate> 
                                <table width="100%"> 
                                    <tr align="center" valign="middle"> 
                                        <td> 
                                            <asp:Panel ID="searchPanel" runat="server"> 
                                                <!-- Search controls Start --> 
                                                <br /> 
                                                <input id="txtSearch" size="40" /> 
                                                <input id="btnSearch" type="button" onclick="SearchCommand(document.getElementById('txtSearch').value);" 
                                                    value="Search" /> 
                                                <br /> 
                                                <br /> 
                                                <!-- Search controls End --> 
                                            </asp:Panel> 
                                        </td> 
                                    </tr> 
                                </table> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </td> 
                <td align="center" valign="middle"> 
                </td> 
            </tr> 
            <tr>  
                <td> 
                    <telerik:RadDockZone ID="RadDockZoneMiddleLeft" runat="server" Orientation="Vertical"> 
                        <telerik:RadDock ID="RadDockGrid" runat="server" Title="תוצאות חיפוש" EnableAnimation="true" 
                            EnableRoundedCorners="true" Resizable="false" DefaultCommands="ExpandCollapse"> 
                            <ContentTemplate> 
                           
                                
                                <telerik:RadGrid ID="RadGrid1" Visible="true" EnableViewState="false" runat="server" 
                                    OnInit="RadGrid1_Init" AllowPaging="true" AllowSorting="True" GridLines="None" 
                                    ShowGroupPanel="true" ShowFooter="true" ShowStatusBar="true" ShowHeader="true" 
                                    AutoGenerateColumns="false" AllowFilteringByColumn="true" OnColumnCreating="RadGrid1_ColumnCreating" 
                                    OnGridExporting="RadGrid1_GridExporting"> 
                                    <ItemStyle Wrap="false" /> 
                                    <MasterTableView Width="100%" AllowMultiColumnSorting="true" TableLayout="Fixed" 
                                        GroupLoadMode="Server" GroupsDefaultExpanded="true" AllowFilteringByColumn="true" 
                                        CommandItemDisplay="Top"> 
                                        <Columns> 
                                            <telerik:GridBoundColumn Visible="false" DataField="Id" HeaderText="מזהה ייחודי" 
                                                DataType="System.String" HeaderStyle-Width="80px" FilterControlWidth="40px"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="Title" HeaderText="כותרת" DataType="System.String" 
                                                HeaderStyle-Width="400px" FilterControlWidth="370px"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="Agency" HeaderText="סוכנות" DataType="System.String" 
                                                HeaderStyle-Width="100px" FilterControlWidth="60px"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="EmployeeId" HeaderText="מזהה עובד" DataType="System.Int32" 
                                                HeaderStyle-Width="80px" FilterControlWidth="40px"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="ClearanceLevel" HeaderText="רמת אישור" DataType="System.String" 
                                                HeaderStyle-Width="80px" FilterControlWidth="40px"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="SiteId" HeaderText="אתר" DataType="System.String" 
                                                HeaderStyle-Width="80px" FilterControlWidth="40px"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Visible="false" DataField="InternalURI" HeaderText="קישור" 
                                                DataType="System.String" HeaderStyle-Width="80px" FilterControlWidth="40px"> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridTemplateColumn Visible="false" DataField="InternalURI" HeaderText="קישור" 
                                                UniqueName="InternalURITemplate" Aggregate="Count" GroupByExpression="InternalURI Group By InternalURI" 
                                                DataType="System.String"> 
                                                <ItemTemplate> 
                                                    <asp:Label ID="lblInternalURI" runat="server" Text='<%#Eval("InternalURI") %>'> 
                                                    </asp:Label> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridDateTimeColumn DataField="CreationDate" HeaderText="תאריך יצירה" DataType="System.DateTime " 
                                                HeaderStyle-Width="80px" FilterControlWidth="40px" DataFormatString="{0:dd/MM/yyyy}"> 
                                            </telerik:GridDateTimeColumn> 
                                            <telerik:GridBoundColumn DataField="Receptiondate" HeaderText="תאריך קבלה" DataType="System.DateTime" 
                                                HeaderStyle-Width="80px" FilterControlWidth="40px" DataFormatString="{0:dd/MM/yyyy}"> 
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                                        <CommandItemSettings ShowExportToExcelButton="true" ShowExportToPdfButton="true" /> 
                                        <PagerStyle AlwaysVisible="true" Position="TopAndBottom" Mode="NextPrevAndNumeric" /> 
                                    </MasterTableView> 
                                    <ClientSettings AllowGroupExpandCollapse="true" AllowDragToGroup="true" > 
                                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> 
                                        <Resizing AllowRowResize="false" AllowColumnResize="false" EnableRealTimeResize="True" 
                                            ResizeGridOnColumnResize="True" /> 
                                        <ClientEvents OnCommand="RadGrid1_Command" OnRowDataBound="RadGrid1_RowDataBound" 
                                            OnRowDblClick="RowDblClick" OnRowSelected="RowSelected" OnKeyPress="KeyPress" /> 
                                    </ClientSettings> 
                                    <GroupingSettings ShowUnGroupButton="true" /> 
                                    <FilterMenu EnableTheming="True"> 
                                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                    </FilterMenu> 
                                </telerik:RadGrid> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </td> 
            </tr> 
            <tr> 
                <td align="center" valign="top"> 
                    <telerik:RadDockZone ID="RadDockZoneBottom" runat="server" Orientation="Vertical" 
                        Width="100%" Height="100%"> 
                        <telerik:RadDock ID="RadDockPreviewBottom" runat="server" Title="צפייה מקדימה" EnableAnimation="true" 
                            EnableRoundedCorners="true" Resizable="false" DefaultCommands="ExpandCollapse"> 
                            <ContentTemplate> 
                                <div id="PreviewDiv" dir="ltr" title="צפייה מקדימה"> 
                                </div> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </td> 
            </tr> 
        </table> 
    </telerik:RadDockLayout> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
    <br /> 
    <asp:Button ID="clrFilters" runat="server" Text="Clear filters" OnClick="clrFilters_Click"> 
    </asp:Button> 
    <br /> 
    Events: 
    <asp:Panel ID="Panel1" Style="height: 200px; overflow: auto; padding: 15px;" CssClass="module" 
        runat="server"> 
    </asp:Panel> 
    <!-- content end --> 
    </form> 
</body> 


code behind : 

   protected void RadGrid1_GridExporting(object source, GridExportingArgs e) 
        { 
          
unable to get here ! ! !     
 
        } 

Daniel
Telerik team
 answered on 28 Jan 2010
1 answer
70 views
Hi All,
I have developed a webpart in which i have used RadToolTip. I set alt attribute in image tag, When i run in MOSS 2007 (IE8), it runs  very well, but don't show tooltip in SharePoint 2010 RC (IE8). Then i set title attribute in image tag, it only show tooltip of image tag, don't show tooltip of RadTooltip control.
Any solution ?
Thanks all help.
Regards,
Tuan
Svetlina Anati
Telerik team
 answered on 28 Jan 2010
1 answer
99 views
Hi All,
  I want to show my own form when doubleclicking on a time slot from the scheduler. I also use resource grouping. Can I do this?
Shinu
Top achievements
Rank 2
 answered on 28 Jan 2010
1 answer
153 views
Hi,

I checked on the Telerik Online Demos - Keyboard support never seems to be working:
Listbox -> Functionality -> Keyboard Support, 
http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/keyboardsupport/defaultcs.aspx
and, Listbox -> Functionality -> Transfer
http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/transfer/defaultcs.aspx

On pressing Tab Key / Shift-Tab, neither the LIstboxes nor the ListBox Transfer buttons seem to be ever reached by the Keyboard.
This is very high priority for my customers since they purchased Telerik to provide Universal Accessibility Compliance and we're stuck with this issue now.
Any helpl would be greatly appreciated.

Thanks and Regards,
Veenu Munjal
Yana
Telerik team
 answered on 28 Jan 2010
3 answers
352 views
Hi,

I want to change the color to red when there is no records in grid to display with message " No records!" but could not able to find out the property to chnage the font color.
i used the

NoMasterRecordsText

 

="<span class=red>No records!</span>"

 

but it doesn't work still text shown in default color.

please Suggest.
bharat kumar
Top achievements
Rank 1
 answered on 28 Jan 2010
0 answers
81 views

Hello,
I am using RadCombobox and DatePicker in my project. I create the controls at runtime (code behined). Also i have downloaded the latest version of the rad:controls. When i run my project in FireFox everything goes fine, but in IE 8 the controls show a weired behavior. It seems that either skins dont apply or what so ever. i am sending the screen shots for how radcombobox and date picker appears. Also there is another issue when i uplaod my project on live, the rad combobox doesnot work properly, i.e, neither it postback nor allow me to make any selection of items (as i have use checkboxes with items). I am using the trial version.
Below is the code where i create both the controls.

For DatePicker

 

 

 

RadDatePicker rdDateTime = new RadDatePicker();

 

rdDateTime.ID =

 

"rdDateTime" ;

 

 

rdDateTime.EnableTyping =

false;

 

rdDateTime.Width = 150;

 

For Combobox:

 

 

 

RadComboBox ddlValue = new RadComboBox();

 

ddlValue.EnableEmbeddedBaseStylesheet =

 

true;

 

ddlValue.EnableEmbeddedSkins =

 

true;

 

ddlValue.Skin =

 

"Outlook";

 

 

 

ddlValue.Width = 150;

 

 

 

ddlValue.ID = "ddlValue" ;

ddlValue.ItemDataBound += new RadComboBoxItemEventHandler(ddlValue_ItemDataBound);

 

 

ddlValue.AutoPostBack = true;

 

ddlValue.SelectedIndexChanged +=

 

new RadComboBoxSelectedIndexChangedEventHandler(ddlValue_IndexChanged);

Now kindly plz tell me how could the look of controls be set.
Thanks in advance

 

 

 

 

Faheem Khan
Top achievements
Rank 1
 asked on 28 Jan 2010
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?