Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
241 views
I'm using the RadTreeView to display hierarchical address information for users to select region coverage (e.g. Counrty-> State -> City -> Suburb) I have used TriState checkboxes and CheckChildNodes properties to enable a user to select a city and have all suburbs selected, but if the user then de-selectes a suburb - the triState checkbox of the city is set to indeterminate.

All good so far.

The total number of nodes we are dealing with in the current scenario is about 1800. A resonable, but not uncommon number.

The problem I'm having is when you are checking/unchecking parent nodes with a lot of child nodes (e.g at State/Country level) then the CheckChildNodes process (coupled with the TristateCheckBox) can take many seconds to run (e.g.10 -20 seconds or more). This is clearly more than an acceptable 1-2 seconds.

I don't think I can use the load on demand scenarios effectively because this will affect the use of the TristateCheckboxes. I.e.  If you haven't loaded all the ChildNodes how do you know if one is selected/unselected.

I have tried all sorts of different things to get this to perform better. Custom javascript to check the child nodes (no real improvement as expected) , posting back and doing the check/uncheck server-side (surprising quick without TriState enabled, dog slow with it enabled). Various combinations of events and properties. I have tried not using TriState which improves things slightly (but provides and inferior user experience), but the bulk of the problems seem to be in the CheckChildNodes.

Most of the performance related stuff on TreeView is around load-on-demand. Is there anything else I can do to speed this up?
Atanas Korchev
Telerik team
 answered on 15 Apr 2009
1 answer
140 views
I have found a problem where IE7 does not properly render the outer fieldset if a nested fieldset has a legend.  In this case, the the top line of the outer fieldset is shifted up by the height of the legend of the inner fieldset.  Disabling rounded corners solves the problem, but the only reason I am using the fieldset is to get the rounded corners effect.  Also, if there is no legend on the inner fieldset, the control also renders properly.  The fieldset renders properly in firefox.

Here is the sample html that doesn't render properly:
<body> 
    <form id="form1" runat="server"
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"/> 
        <fieldset style="margin:5px; padding:5px;"
            <fieldset> 
                <legend>Legend</legend> 
                <div>Content</div> 
            </fieldset> 
        </fieldset> 
    </div> 
    </form> 
</body> 

I am using the 2009 Q1 version of the RadControls.  Please advise.

Thank you,

Billy
Georgi Tunev
Telerik team
 answered on 15 Apr 2009
1 answer
97 views
Hello Sir,
When i export to excel i get one error message.Please see the error message in the screen shot attached. How do i avoid this error message.
Please help me with this.
 
Thanks,
Jwalant Dange
Daniel
Telerik team
 answered on 15 Apr 2009
1 answer
75 views
Hi

My Requirement is i can selected multipule cells randomly in RADGIRD.
Need the SUM of the Cells to be Displayed in TOOLTIP
I am able to select the multipule cells and display the display the Tooltip for Selected Cells(Selected Value)
BUT i am unable to SUM the Selected values in RAD GIRD to Display the same in ToolTip
I suffring from past 2 weeks for the same
Plz Help Me

My code Goes like This .ASPX File

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="gotit.aspx.cs" Inherits="dgtooltip.gotit" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

@ Register assembly="Infragistics35.WebUI.UltraWebGrid.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>

 

<!

 

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></title>

 

 

<style type="text/css">

 

 

.HoverClass

 

{

 

background-color: aqua;

 

 

}

 

.DefaultClass

 

{

 

background-color: white;

 

 

}

 

.ClickClass

 

{

 

background-color:Red !important;

 

}

</

 

style>

 

</

 

head>

 

<

 

script type="text/javascript">

 

 

function RowCreated(sender, eventArgs)

 

{

 

var dataItem = eventArgs.get_gridDataItem();

 

 

for (var i = 0; i < dataItem.get_element().cells.length; i++) {

 

dataItem._element.cells[i].onmouseover =

function() {

 

 

this.className = "HoverClass";

 

 

};

dataItem.get_element().cells[i].onclick =

function() {

 

 

this.selected = this.selected == true ? false : true;

 

 

this.className = "ClickClass";

 

 

this.title = this.innerText;

 

 

};

dataItem.get_element().cells[i].onmouseout =

function() {

 

 

var cssName = this.selected ? "HoverClass" : "DefaultClass"

 

 

this.className = cssName;

 

 

return;

 

};

}

}

 

 

var grid;

 

 

function RowSelected(rowObject) {

 

 

var selRow = this.GetCellByColumnUniqueName(rowObject, "ID");

 

 

//here selRow.innerHTML will hold the value for the selected row contact name

 

 

}

 

function GetSelectedNames() {

 

 

for (var i = 0; i < grid.MasterTableView.SelectedCells.length; i++) {

 

 

var curRow = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.SelectedCells[i], "ID");

 

 

//here curRow.innerHTML will hold the value for the selected rows contact names

 

}

}

 

function GridCreated() {

 

grid =

this;

 

}

 

 

</

 

script>

 

<

 

body>

 

 

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

 

 

 

 

 

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

 

 

</telerik:RadScriptManager>

 

 

 

 

 

<div>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"

 

 

style="z-index: 1; left: 10px; top: 34px; position: absolute; height: 0px; width: 0px">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="m_Grid">

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<asp:HiddenField ID="HiddenField1" runat="server" Value="test();" />

 

 

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:ULTIMATE_NEWConnectionString2 %>"

 

 

SelectCommand="select id,id,id,ID from CustomerMaster"></asp:SqlDataSource>

 

 

<asp:Label ID="lblLabel" runat="server"

 

 

style="z-index: 1; left: 280px; top: 47px; position: absolute; height: 39px; width: 262px"

 

 

Text="Label"></asp:Label>

 

 

<br />

 

 

</div>

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"

 

 

 

style="z-index: 1; left: 49px; top: 200px; position: absolute; height: 105px; width: 657px"

 

 

GridLines="Both">

 

 

<ClientSettings>

 

 

 

<ClientEvents OnGridCreated="GridCreated" OnRowSelected="RowSelected" OnRowCreated="RowCreated"></ClientEvents>

 

</

 

ClientSettings>

 

<

 

HeaderContextMenu>

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

HeaderContextMenu>

 

<

 

MasterTableView autogeneratecolumns="False" datakeynames="id,id1,id2,ID3"

 

 

datasourceid="SqlDataSource1">

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="id" DataType="System.Int16" HeaderText="id"

 

 

ReadOnly="True" SortExpression="id" UniqueName="id">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="id1" DataType="System.Int16"

 

 

HeaderText="id1" ReadOnly="True" SortExpression="id1" UniqueName="id1">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="id2" DataType="System.Int16"

 

 

HeaderText="id2" ReadOnly="True" SortExpression="id2" UniqueName="id2">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="ID3" DataType="System.Int16"

 

 

HeaderText="ID3" ReadOnly="True" SortExpression="ID3" UniqueName="ID3">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

</

 

MasterTableView>

 

<

 

FilterMenu>

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

FilterMenu>

 

 

</telerik:RadGrid>

 

 

 

<input type="hidden" id="comboValue" value="" runat="server" />

 

 

&nbsp;<p>

 

 

&nbsp;</p>

 

 

<p>

 

 

&nbsp;</p>

 

 

<p>

 

 

&nbsp;</p>

 

 

<p>

 

 

&nbsp;</p>

 

 

<p>

 

 

&nbsp;</p>

 

 

<p>

 

 

&nbsp;</p>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Yavor
Telerik team
 answered on 15 Apr 2009
4 answers
116 views
I am trying to use code found in the "HowToModalDialog" sample application but I use Text boxes and check boxes.

Everything seems fine with the Text boxes but the javascript function find$() does not seem to find my checkboxes despite using the ClientId.
Is there any particular reason for this?
Does $find not support checkboxes?

Eric
Eric
Top achievements
Rank 1
 answered on 15 Apr 2009
1 answer
127 views
Look at the demo http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipversustooltipmanager/defaultcs.aspx in firefox.

When you hover over the section that uses rad tooltip manager it shows on the first hover.

Then hover over the second row.

Go back to the first row, and the tooltip is not shown again.

The same behavior does not occur when using regular tooltips.


Svetlina Anati
Telerik team
 answered on 15 Apr 2009
3 answers
87 views
It appears that the lack of client-side API documentation is something that has been mentioned on on any number of times in the past.

What are the chances that the next release will see the missing docs being added?

Is there any chance of a sneak peek here?

--
Stuart
Georgi Tunev
Telerik team
 answered on 15 Apr 2009
1 answer
277 views
(Using Q1 2009)

I have a question that I can't seem to find an answer for --

Currently, if I want to find out the value of a filtered column, say, a TextBox or DatePicker, I am doing something like this:

 

GridFilteringItem item = RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem;

 

 

string Name = (item["Name"].Controls[0] as TextBox).Text;

 

DateTime? FromIHD = (item["Date"].Controls[0] as RadDatePicker).SelectedDate;

But this method requires me to know the "string columnUniqueName" to access the item.

What I would *like* to be able to do is loop through the GridFilteringItems (perhaps by an index?), determine what type of control that column is using (such as a TextBox or RadDatePicker) and get the values of each one.

Maybe I'm just blind, but I didn't see an easy way to do this.

Thanks!

Troy

 

Yavor
Telerik team
 answered on 15 Apr 2009
3 answers
399 views
Hello,

I am creating link buttons dynamically and want to call the link button click event after confirming from the user. Curently I have assigned the onClientClick event of the link button to Confirm dialog, and Click event to the link button server side click event. I want to use radConfirm in place of confirm dialog box. Is it possible to use radConfirm for this purpose and how?

Sajeev
Georgi Tunev
Telerik team
 answered on 15 Apr 2009
6 answers
227 views
I see that jQuery is included with many script downloads for RadControls (it is in the text returned by WebResource script requests). Each time a different page is served with some RadControls, jQuery is included again. I also use jQuery for some other stuff. This means it is then downloaded twice for a page - once for RadControls and once with my script tag.

I don't want my users to have to download it multiple times, and I don't want to have version mismatches between the jQuery I am using and the one included by Telerik.

Can this be remedied somehow? Turning off script combining in the RadScriptManager seems to help, but then there are a lot of separate script downloads.

Is there a way for me to access the embedded jQuery within RadControls so I don't have to use my own script tag and cause multiple downloads?
Dan Ehrmann
Top achievements
Rank 1
 answered on 15 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?