Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
82 views
I need my radgrid accept N number of values showing the fields to fill,I add that when you close a form where you insert the fields and just clean it.


Iana Tsolova
Telerik team
 answered on 23 Jul 2010
2 answers
112 views
Hi,

I have a tree view:

<

 

telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="true"

 

 

 

CheckChildNodes="true" TriStateCheckBoxes="true" Skin="Outlook" ShowLineImages="false"

 

 

 

Style="margin-bottom: 10px">

 

 

 

</telerik:RadTreeView>

 

 



And I set the following properties to support load on demand:

radTreeView.WebServiceSettings.Path =

"~/zz_Portal/KdsDimensionLoader.aspx";

 

radTreeView.WebServiceSettings.Method =

 

"GetKdsDimElements";

 

node.ExpandMode =

 

TreeNodeExpandMode.WebService;

 

 


When I check a checkbox and then expand the node for the first time the parent will loose the checked status and the children are unchecked.
Not the expected behaviour.

In the web method it WOULB be very easy to implement the expected behaviour if we could use a proper RadTreeNode object.
But in the samples RadTreeNodeData is used and this object has not the Checked property.

So, how can I use Web Methods for on demand loading and keeping the checked status of the parent and have all children checked as well after adding them to the parent?

Thanks for any reply.

[

WebMethod]

 

 

 

public static RadTreeNodeData[] GetKdsDimElements(RadTreeNodeData node)

 

{

 

 

List<RadTreeNodeData> result = new List<RadTreeNodeData>();

 

 

 

DataRow kdsDimSlicer = MDXSlicers.FindSlicerById("11");

 

 

 

MetaData metaData1 = (MetaData)HttpContext.Current.Session[SessionVariables.MetaData.ToString()];

 

 

 

if (metaData1 != null)

 

{

 

 

string dimName = (string)kdsDimSlicer[MDXSlicers.DIMENSION];

 

 

 

string hierarchyName = (string)kdsDimSlicer[MDXSlicers.HIERARCHY];

 

 

 

DataTable table = metaData1.GetMembers(dimName, hierarchyName);

 

 

 

DataRow[] rows = table.Select("ParentUniqueName = '" + node.Value.Replace("'", "''") + "'");

 

 

 

foreach (DataRow row in rows)

 

{

 

 

RadTreeNodeData childNode = new RadTreeNodeData();

 

childNode.Text = row[

 

"Name"].ToString();

 

childNode.Value = row[

 

"UniqueName"].ToString();

 

 

 

DataRow[] checkChilds = table.Select("ParentUniqueName = '" + childNode.Value.Replace("'", "''") + "'");

 

 

 

if (checkChilds.Length > 0)

 

{

childNode.ExpandMode =

 

TreeNodeExpandMode.WebService;

 

}

result.Add(childNode);

}

}

 

 

return result.ToArray();

 

}

 


Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
3 answers
104 views
I was basing my code off the "Performance 300,000 rowcount example".  I just assumed that by following that model that the filtering MUST be done at the SQL server level.  Is that not correct?

I created a similar grid with a LinqDataSource that uses a DataContext that is LinqToSql.

The paging seems to be done at the SQL server level but when I filter I don't see any additional "where" clause which tells me that SQL server is returning ALL the rows and then .NET/Linq/Telerik/SomeoneElse is doing the filtering.

Is that right?  Or do I not have something configured properly so that the LinqDataSource will cause the WHERE to show up at SQL Server?

Thanks,
Kevin
Iana Tsolova
Telerik team
 answered on 23 Jul 2010
3 answers
116 views
Hello,

I have a treeview with multipleselect = true and an event attached to the the NodeClick event. This gets fired when a user clicks a node but it doesn't when the user clicks for the second time using CTRL or SHIFT. How can I activate this 'autopostback' on multi-click events?

Many thx for your help

Hans
Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
2 answers
82 views
Hi

I have just relocated my localhost server (iis7) to a different drive, and got the websites all back up and running.
All the telerik controls work fine when previewing the pages, but I now get 'error rendering control' in Visual Studio
2008 design view, for all Telerik controls.

Something must have got disconnected in the move I guess. What is the best way to fix this?

Thanks

Clive

Q2 2009 controls, windows vista, IIS7, Visual Studio 2008 with SP,  asp.net 3.5 SP1
Clive Hoggar
Top achievements
Rank 1
 answered on 23 Jul 2010
1 answer
149 views
hi,

i'm working on after clicking on the item of RadPanelBar, a new window pops up, and the new window is actually an user control (.ascx file). is there a way to do this?

Thanks a lot !
Nikolay Tsenkov
Telerik team
 answered on 23 Jul 2010
1 answer
94 views
I use a RadContextMenu that I load programmatically with javascript when the user right-clicks.  This has worked perfectly for some time.  However, since I loaded the new (2010 Q2) build, now when I open the menu more than once the items loaded into the menu are always added onto the items that were already there even though I am calling the get_items().clear() function.

The snippet below is from a simple project that demonstrates the problem:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <script type="text/javascript" language="javascript">
        function showMenu(contextMenu, e) {            
                contextMenu.trackChanges();
                
                contextMenu.get_items().clear();                
            
                var item = new Telerik.Web.UI.RadMenuItem();
                item.set_text('Sampl Item 1');
                contextMenu.get_items().add(item);               

                var item = new Telerik.Web.UI.RadMenuItem();
                item.set_text('Sampl Item 2');
                contextMenu.get_items().add(item);

                var item = new Telerik.Web.UI.RadMenuItem();
                item.set_text('Sampl Item 3');
                contextMenu.get_items().add(item);

                contextMenu.commitChanges();
         }
    </script>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <div id="div1"  style="width: 400px; height: 100px; border: solid 1px Black">
        Click here to see context menu
    </div>
    <telerik:RadContextMenu ID="RadContextMenu1" Runat="server" OnClientShowing="showMenu">
        <Targets>
            <telerik:ContextMenuElementTarget ElementID="div1" />
        </Targets>
    </telerik:RadContextMenu>
    </form>
</body>
</html>

This simple page worked perfectly prior to updating my control library to 2010 Q2.
Veronica
Telerik team
 answered on 23 Jul 2010
5 answers
310 views
I'd like to localize menu items and put their Text into Resource.resx file. Is it possible? How?
I'd like not to change datasource programmatically or to use database.
Veronica
Telerik team
 answered on 23 Jul 2010
4 answers
333 views
I have a template column in my grid with linkbuttons. I'd like to be able to retrieve the datakey value of the row by clicking this button. How would I go about doing this?
fred williams
Top achievements
Rank 1
 answered on 23 Jul 2010
3 answers
214 views
Can I get some assistance with getting a radwindow to pop-up like a tooltip on mouseover of an element? I'm a little confused as to how to start it. The window also needs to have pre-defined text instead of loading a separate page into the window.
Shinu
Top achievements
Rank 2
 answered on 23 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?