Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
348 views
Hello,

I have a RadTreeView in a UpdatePanel and a RadListView in another UpdatePanel. I must expanded the parent nodes to the right childnode. When i clicked on the childnode, then i load a details from webservice in the ListView in the other UpdatePanel. This works fine.

The problem is, after i clicked on the childnode and loaded the details, the TreeView is unexpanded and the childnode is deselcted. How can I solve my problem?

Here is my code:

<asp:UpdatePanel ID="UpdatePanel2" runat="server" onload="UpdatePanel2_Load">  
            <ContentTemplate> 
                <telerik:RadTreeView ID="rtvLayoutListe" runat="server" AutoPostBack="true" Height="450px"   
                    Skin="Office2007" OnClientNodeClicking="ClientClickHandler"    
                    oncontextmenuitemclick="rtvLayoutListe_ContextMenuItemClick"             
                    OnNodeClick="rtvLayoutListe_NodeClick"   
                    onclientcontextmenuitemclicking="ContextMenuClicking"   
                    onclientnodeclicked="ClientClickedHandler"
                .....

                    </

 

ContextMenus 

 

 

                </telerik:RadTreeView

 

 

            </ContentTemplate 

 

 

</asp:UpdatePanel>
...

<

 

asp:UpdatePanel ID="UpdatePanel1" runat="server">  

 

 

 

<Triggers>
<asp:AsyncPostBackTrigger ControlID="rtvLayoutListe" EventName="NodeClick" />

 

</Triggers>

 

<ContentTemplate>
<h3><asp:Label ID="lblContainerNameH3" runat="server" Text=""></asp:Label></h3> 
<telerik:RadListBox ID="rlbObjectList" runat="server" AllowDelete="True"  

AllowReorder="True" CssClass="rlbObjects" Skin="Office2007" Width="400px"  
onitemdatabound="rlbObjectList_ItemDataBound">  

 

<ButtonSettings ShowTransfer="False" ShowTransferAll="False" /> 

</telerik:RadListBox>
...

 

 

 

 

 

 


Javascript:
function ClientClickHandler(sender, eventArgs) {  
            var node = eventArgs.get_node().get_value();  
            if (!node.startsWith("container-")) {  
                eventArgs.set_cancel(true);  
                return false;  
      }  

C#:

protected

 

void UpdatePanel2_Load(object sender, EventArgs e) 

{

    GenerateTreeView();

}

 


public

 

void GenerateTreeView() 

 

 

{

rtvLayoutListe.Nodes.Clear(); 

 

layoutsql lsql = new layoutsql(); 

 

DataSet ds = lsql.GetLayoutsForManager();  

 

...
}

protected void rtvLayoutListe_NodeClick(object sender, RadTreeNodeEventArgs e)  
    {  
        if (e.Node.Value.StartsWith("container-"))  
        {  
            lblContainerNameH3.Text = "Container: " + e.Node.Text;  
            objectssql osql = new objectssql();  
            rlbObjectList.DataSource = osql.LoadCurrentContainers(int.Parse(e.Node.Value.Substring(10)));  
            rlbObjectList.DataBind();  
            lblContainerNameH3.Text += " - Time: " + new TimeSpan(0, 0, timecounter).ToString();  
        }  
        else  
        {  
            lblContainerNameH3.Text = "";  
        }  
    } 

I saw, after the click on the Node - the UpdatePanel makes a new load. 

How can I prevent a reload of the UpdatePanel?

Reiner
Yana
Telerik team
 answered on 22 Oct 2009
1 answer
87 views
Hello All,

I have the IP address of the user and I want to set one of the columns in the data source of the grid.  In Pseudo code, I want to achieve the following

MyGrid . RowBeingUpdated . Column ("IPAddress).Value = "192.168.1.1";

Could someone advise which event I should use and the syntax to update the cell value.  I have tried to get it working with DataKeyValues, but am not familiar enough yet to get it working.

I have included below the code that I used with the VS2008 default grid, and it works fine for that control.

Thanks in advance, 

Mark Breen
Ireland

<snip>
        protected void LinqDSBoatBuilders_Inserting(object sender, LinqDataSourceInsertEventArgs e)
        {
            BoatBuilder oRec = (BoatBuilder)e.NewObject; //This is my LINQtoSQL data source
            oRec.CreatedOnDate = DateTime.Now;
            oRec.CreatedByIPAddress = GetIPAddress();
        }
</snip>

Sebastian
Telerik team
 answered on 22 Oct 2009
1 answer
81 views
Hi,

I'm using this example: http://www.telerik.com/community/code-library/aspnet-ajax/general/drag-and-drop-between-radgrid-and-radtreeview.aspx from the code library to drag and drop RadGrid rows to a RadTreeView. In this example it is only possible to drop a row onto a Node, but not in between two nodes.

Is there a solution to make this possible?

Thx,
Danny
Sebastian
Telerik team
 answered on 22 Oct 2009
3 answers
101 views
Dear friends,

I have a trouble using RadGrid in SharePoint web part. When I have several web parts on a page and on is updating in UpdatePanel, the grid lines disappear except last 2 columns.

Had anybody saw such bug? Is some workaround available?

Thanks to all!
Dimo
Telerik team
 answered on 22 Oct 2009
1 answer
149 views
Hi, I would like to implement Google-Like filtering in my ListBoxes just as you do in the Google-Like filtering example of the RadGrid.  In other words, I would like to input some text in a textbox on top of the list box so that the list items that appear on the listbox depend on the text that is entered in the textbox.

I would appreciate any ideas or code to help me do this.

Thank you,
Manuel
Paul
Telerik team
 answered on 22 Oct 2009
9 answers
196 views
I am using a self-referencing hierarchy with paging (nothing custom, just the built-in mechanisms). When I expand a parent item to show the children, the grid shows the parent's paging template inside it which is something I would rather not have happen. Is it possible to hide this on child records?
Tsvetoslav
Telerik team
 answered on 22 Oct 2009
1 answer
229 views
Any plans for a RadMinifiy Httpmodule to dynamically minify css\js?

Hoping... :)
Ivo
Telerik team
 answered on 22 Oct 2009
1 answer
117 views
I am using the q1 2009 version of tooltip (in VB) to create a user control that opens a tooltip from a javascript function (a dbl click on some text) and then loads a user control into the tooltip. The idea will be to feed the selected text into a database query in the new user control.

Currently this works fine when running in a stand-alone page but when it is added to a master page or template page
when the tooltip opens I get a javascript error: " LENGTH is null or is not an object"
I've tried numerous ideas and have tried to find some relevant references in the forums but have not found a fix that works yet.
What is the best way to avoid this error?

A basic version of the code used for the user control containing the tooltip manager is below:



<

 

script runat="server">

 

 

Protected Sub tooltipupdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs)

 

 

Dim ctrl As Control = New Control

 

ctrl = Page.LoadControl(

"~/controls/usercontrol1.ascx")

 

e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl)

 

End Sub

 

</

 

script>

 

<

 

div>

 

 

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

 

function showToolTip(element)

 

{

 

 

 

var searchString = "";

 

 

if (window.document.selection)

 

{

 

var rng = window.document.selection.createRange();

 

searchString = rng.text;

}

 

else if (window.getSelection)

 

{

searchString = window.getSelection().toString();

}

 

if (searchString)

 

{

 

var tooltipManager = $find("<%= RadToolTipManager1.ClientID %>");

 

 

 

if (!tooltipManager) return;

 

 

 

var tooltip = tooltipManager.getToolTipByElement(element);

 

tooltip = tooltipManager.createToolTip(element);

tooltip.set_value(searchString);

 

element.onmouseover =

null;

 

tooltip.show();

}

}

 

 

 

</script>

 

 

</telerik:RadScriptBlock>

 

 



<
telerik:RadToolTipManager ID="RadToolTipManager1"

 

 

Width="400px"

 

 

height="200px"

 

 

RelativeTo="BrowserWindow"

 

 

Position="Center"

 

 

runat="server"

 

 

Onajaxupdate="tooltipupdate"

 

 

AutoTooltipify="false"

 

 

 

>

 

 

 

</telerik:RadToolTipManager>

 

 

<div runat="server" id="dblclk1" ondblclick="showToolTip(this)" >some text here</div>

 

</

 

div>

 

Svetlina Anati
Telerik team
 answered on 22 Oct 2009
2 answers
205 views
I am trying to deploy the RadEditorMoss 4.5.4 version to a sharepoint farm.  The farm has 2 web front ends with the cenrtral admin on one of the web front ends.

I can successfully add the solution to the farm, but when I try and deploy the solution to my web application I get the following error.

server1 : http://server1:22659/ : SharePoint - 22659 : Error: The copying of this file failed: RadControls/Editor/Localization/en-US/Tools.xml.
This operation uses the SharePoint Administration service (spadmin), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again.
server2 : http://server1:22659/ : SharePoint - 22659 : Error: The copying of this file failed: RadControls/Editor/Skins/Default/Dialogs/ImgExt/asf.gif.
This operation uses the SharePoint Administration service (spadmin), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again.
server2 : This operation uses the SharePoint Administration service (spadmin), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again.
server1 : This operation uses the SharePoint Administration service (spadmin), which could not be contacted.  If the service is stopped or disabled, start it and try the operation again.

I have ensured that the Aministration service is running. And also have it running with an account with admin privilages on both web fronts ends.
I have noticed that it failes when trying to copy different files, but always fails on some file.

Just as a test I have also deployed the full RAD Moss RadEditorMOSS_5_2_3_Trial.  That solution deployed successfully.  There seems to be a problem specifically with this wsp.

Any help would be appreciated.
CaTh
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
55 views
From Slider demo with gridview example, I use same.
But retrieve value from query string, use needed datasource properties of gridview.

After changing item 20 to item 50 view, In IE this gap between Header and grid data start point occur And page navigation lost. Pls view in followinig link.
http://i34.tinypic.com/30jhax4.jpg

In FF , it never occur but the filter icon/space can not see.
http://i33.tinypic.com/25fm87n.jpg


Any idea?
thanks

Edit: sorry for the wrong section. Please move to asp.net ajax rad gridview. Apologies.


Dimo
Telerik team
 answered on 22 Oct 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?