Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
90 views
Hi ,
I have the requirement that the position of check boxes remain in the same column for parent and child node .
Generaaly check boxes will come with child node with the indent space . I want the child node to appear at the indent
space but the check boxes should come without indent . It mean that all check boxes will come at same x location ( same column ) .
Please help me how it can be achieved in telerik control ?

Checkbox  root
checkbox         Parent
checkbox                child 1
checkbox                child 2
checkbox                child 2
checkbox                      child4

Position of child nodes are same but checkboxes should not appear just before them . They should be
in the 1st colimn itself . Hope this illustration is clear .


Thanks ,
Kaushik Vatsa
Kaushik
Top achievements
Rank 1
 asked on 19 Mar 2012
1 answer
552 views
This is the scenario:
I have a RadGrid, in which each row will have a
"GenName(String), Status(RadComboBox), Type(RadComboBox)"
The ClientDataKeyNames are "ID, GenName"

I am doing a CLIENT SIDE BINDING USING A WCF SERVICE for the RadGrid.

Once the data is bound to the radgrid, I will have to click on the "Type" RadComboBox. It has to use Load on Demand. But the data that will be shown in the RadComboBox depends on the ID (ClientDataKeyName) of that particular row. How do I access it??

presently I am using "onclientitemsrequesting" event and below is the even handler,

function GetGenerationVersions(sender, eventArgs) {
                 
                var filterString = eventArgs.get_text();
 
                var rcbElement = sender.get_element();
                // var parentRowID = $(rcbElement).parents("tr").first().prev("tr.rgRow, tr.rgAltRow")[0].id;
                var genID = sender.get_element().parentNode.parentNode.getDataKeyValue("ID");
 
                //.get_parent().get_parent().get_masterTableView().get_dataItems()[0].getDataKeyValue("GenerationID");
                alert(genID.toString());
                var context = eventArgs.get_context();
                context["FilterString"] = filterString;
 
                context["SiteID"] = document.getElementById("<%=lblSiteID.ClientID %>").innerText;
                context["ProductID"] = $find('<%=rcbProducts.ClientID %>').get_selectedItem().get_value();
                context["GenerationName"] = genID;
 
            }

It throws me an Error :  Object doesn't support property or method 'getDataKeyValue'

Please let me know how to deal with it.
Thanks.

Yash

"
Vasil
Telerik team
 answered on 19 Mar 2012
1 answer
116 views
I need to add Radupload control as one of the RadMenu items.
When i add Radupload under RadMenu items, it renders it as a button in menu, I want it to look like a linkbutton.
Other approach seems like Radupload needs to be invisible but trigger it on click of a linkbutton through javascript.
Is that possible?Can you let me know what approach is suitable to achieve this?
Peter Filipov
Telerik team
 answered on 19 Mar 2012
0 answers
74 views
Hi,

I have a requirement like, when we type any person name its has to suggest person names along with email, it is like 2 level sugsestion.
It is like menu type structure

For ex:

If i type Mahsesh it has to suggest all names start with mahesh along with email id's in next level. Please find attached file

It will be helpful, if you can provide the code which supports this feature.

Regards
Patil B V

Patil
Top achievements
Rank 1
 asked on 19 Mar 2012
5 answers
219 views
Hi,
I have the problems with a Virtual Scrolling :

1) I can not select the last item on the page because it goes immediately to the next page
2)I have a tab with a RadGrid with virtual scrolling.
If I am placed on the first page of the RadGrid and change tab and then I come back I see the page with the correct lines of the RadGrid.
If I am placed on the second page of the RadGrid and change tab and then I come back I see the page without RadGrid rows of data.
Why?

thanks
Pavlina
Telerik team
 answered on 19 Mar 2012
4 answers
159 views
Does anyone know if it is possible to change the NoMasterRecordsText property from No Records to Display to something else PER FOLDER?  So in the tree view you would have multiple folders and when the user clicks a folder I want to display Access Denied for ones they have no access to and This Folder is Empty for folders that simply have nothing in them.  Has anyone done anything like this?
Adam
Top achievements
Rank 1
 answered on 19 Mar 2012
1 answer
189 views
Hi

I have a RadGrid Control which displays a child grid when the Parent Grid Row is clicked.
This works without issues.

In order to make it clearer to the user, I wish to change the background colour of one of the Cells in the row.  This is dependant upon the value contained within another column.  (Basically some rows will have more than 1 detail row - so I want to indicate this to the user)

When I add this functionality to the ItemDataBound event of the grid, it throws a "PageRequestManagerServerErrorException Object reference not set to an instance of an object." error. when I try to expand the child row.  The colour change is is showing correctly.

if (e.Item is GridDataItem)
 {
        if (e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["DocTypes"].ToString() == "Multiple")
        {
            // Find Column and change colours
            GridDataItem item = (GridDataItem)e.Item;
            item["DocReferences"].BackColor = Color.Tomato;
            item["DocReferences"].ForeColor = Color.White;
        }
}

I have tried adding this to the ItemCreated event but it still throws the error.
Can someone throw some light as to what is causing the error - I believe it is something to do with the Ajax process but cannot pinpoint it exactly.

I am at a loss as to how to trobleshoot this.

Regards
Roger
Shinu
Top achievements
Rank 2
 answered on 19 Mar 2012
1 answer
131 views

Hi,
I've a radTabStrip and a radMultiPage.
I need to update with AjaxManager the content of the PageView into my radMultiPage.
Each pageView creates on demand, during the OnPageViewCreated event each UserControl in the pageView.
My problem is the refresh of this control.
If I do an async postback into pageView and this adds a new pageView, on the client I never see the new pageView.
I'm able only to refresh the tabstrip, when i try to refresh the multipage, the first pageView (which called the postback) disappears, and the new pageView appears, if I select the previous pageView I receive ajax error message.
I tried also to add a custom event on my page which returns the PageViewID generated during the process and adds this to the AjaxControl, but it doesn't work, because the AjaxControl can update after the page was rendered and the user click on the button.
Can you help me?

Thanks in advance

Kate
Telerik team
 answered on 19 Mar 2012
5 answers
121 views
Hi All,

I am using the RadTreeView in my application....
all is fine..but after installing the Q1 2012 version of the ASP.NET Ajax Controls...and after testing my application...

I have niticed that after several times i click on tree nodes, when clicking on a tree node it gives me the following error:-

 'Name' is null or not an object
on the following line

,_buildNode:

 

function(i,h){var g=this._getEntityByName(i.Name);.....

 

 

 

 

 

 


i don't know the cause of this problem...
and so the application will not run properly untill i run again....

how can i solve this issue???
Please help

Best Regards
Asa'ad...

 

Asa'ad
Top achievements
Rank 1
 answered on 19 Mar 2012
1 answer
238 views
In my project I have a RadTreeView and a RadToolbar, when a node is selected on the RadTreeView I want to update the Toolbar with buttons that correspond to actions you can perform with the selected node.  In order to do this, I placed the RadToolbar in a RadAjaxPanel and call ajaxRequest with the corresponding information needed to determine what buttons to display in the toolbar.

This works fine and dandy until the an attempt to update the toolbar is made at the same time as one of the nodes is expanded in the tree (The nodes are all set to ServerSideCallBack ExpandMode).  When this happens (which is quite frequent), the node expansion is cancelled and instead the tree is left in it's current state.  As far as I can discern (judging from the captured request body in internet explorer), the tree is piggybacking a client state update onto the ajaxRequest made for the panel which is in turn causing the tree to be "updated" from the server before the actual request for the node data completes, leaving the tree in whatever it's current state is (pre node expansion).

Below is a project I made in which I tried to replicate this behavior,  any suggestions to get around this behavior is very much welcome (preferably not doing by weird stuff like timeouts or similar hacks in the javascript).

Here is the asp:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TestRadTreeView._Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
 
<head runat="server">
    <title></title>
    <telerik:RadCodeBlock ID="rmCodeBlock" runat="server">
        <script type="text/javascript">
            function UpdatePanel() {
                var findresult = $find('<%= contextMenuAjaxPanel.ClientID %>');
                $find('<%= contextMenuAjaxPanel.ClientID %>').ajaxRequest(arguments);
            }
        </script>
    </telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadStyleSheetManager ID="rmCSS" runat="server" EnableStyleSheetCombine="true" />
    <telerik:RadSkinManager ID="rmSkin" runat="server" />
     <telerik:RadScriptManager ID="rmScript" runat="server" EnableScriptCombine="true"
        EnableTheming="True">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <div>
    <telerik:RadAjaxPanel ID="contextMenuAjaxPanel" runat="server">
            <telerik:RadToolBar ID="rtbContext" runat="server" Width="100%" OnClientButtonClicking="UpdatePanel">
                <Items>
                    <telerik:RadToolBarButton runat="server" Text="TEST"/>
                </Items>
            </telerik:RadToolBar>
        </telerik:RadAjaxPanel>
        <telerik:RadTreeView ID="rtvTree" runat="server" Width="500px" Height="500px" ExpandAnimation-Duration="0"
            CollapseAnimation-Duration="0" OnClientNodeExpanding="UpdatePanel"/>
    </div>
    </form>
</body>
</html>

and here is the codebehind:

Imports Telerik.Web.UI
 
Public Class _Default
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        rtvTree.Nodes.Add(New RadTreeNode("Test") With { _
            .ExpandMode = TreeNodeExpandMode.ServerSideCallBack _
        })
    End Sub
 
 
    Private Sub rtvTree_NodeCollapse(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles rtvTree.NodeCollapse
        e.Node.Selected = True
    End Sub
 
    Private Sub rtvTree_NodeExpand(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles rtvTree.NodeExpand
        e.Node.Nodes.Add(New RadTreeNode("Test") With { _
            .ExpandMode = TreeNodeExpandMode.ServerSideCallBack _
        })
    End Sub
 
End Class

In the aspx file, if you remove the OnClientNodeExpanding "UpdatePanel" property from the toolbar then the nodes will expand fine (although you wouldn't be getting updates for the toolbar any longer).
Bozhidar
Telerik team
 answered on 19 Mar 2012
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?