Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
125 views

hi anybody
i test the trial version of telerik controls, and in one of my test encounterd this problem pleas help me
to understand and solve it

I wanna add daynamically panel to panel bar and then add tree to panel
and use TreeNodeExpandMode.ServerSideCallBack;
for tree node
but i got this error messege
the target 'RadPanelBar1$i0$i0$tree1for the callback could not be found or did not implement icallbackeventhandler

this is my source code:

using  System;
using System.Data;
using System.Configuration;
 using System.Collections;
using System.Web;
using System.Web.Security;
 using System.Web.UI;
 using System.Web.UI.WebControls;
 using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class Default2 : System.Web.UI.Page
{
 
RadTreeView tree = null;
 protected void Page_Load(object sender, EventArgs e)
{
tree = new RadTreeView();
 tree.ID = "tree1";
 if (!IsPostBack && !IsCallback)
{
 tree.NodeExpand += new RadTreeViewEventHandler(tree_NodeExpand);
 RadTreeNode node = new RadTreeNode("Node1");
 node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
 tree.Nodes.Add(node);
 tree.Nodes.Add(new RadTreeNode("Node2"));
  RadPanelItem Item = new RadPanelItem("Panel1");
 RadPanelBar1.Items.Add(Item);
 RadPanelBar1.Items[0].Items.Add(new RadPanelItem());
 RadPanelBar1.Items[0].Items[0].Controls.Add(tree);
}
}
void tree_NodeExpand(object sender, RadTreeNodeEventArgs e)
 {
string s = e.Node.Text;
}
}

html code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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>Untitled Page</title>
  </head>
  <body>
 <form id="form1" runat="server">
 <div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
 <telerik:radpanelbar id="RadPanelBar1" runat="server"></telerik:radpanelbar>
</div>
</form>
</body>
</html>

thanks in advancs
 

 

 

 

 

 

 

 

 

 

Hamid Bahan
Top achievements
Rank 1
 asked on 23 Feb 2009
3 answers
177 views
Hi,

When I paste some text from Word to Rad Editor, I want to strip style tags like <h1>.
The html of the text that paste from word is:
<h1>Something</h1>
But I dont want these <h1>, <h2> etc. tags.
How can I do this?

PS: I'm using latest version of RAD Controls for ASP.NET.

Rumen
Telerik team
 answered on 23 Feb 2009
3 answers
150 views
Hi,
   We are using self referential grid in our product. Can you please assit us in mentioning how many levels does telerik support for self referential grid?
Nikolay Rusev
Telerik team
 answered on 23 Feb 2009
2 answers
193 views
Can I retrieve a treeview node from the following DOM Element which is read from Treeview ?

<LI class="rtLI rtFirst" _itemTypeName="Telerik.Web.UI.RadTreeNode">
   <DIV class=rtTop jQuery1235081519640="2">
      <SPAN class=rtSp></SPAN>
      <SPAN class=rtPlus></SPAN>
         <IMG class=rtImg style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" alt="" src="Images/folder.gif" align=absMiddle>
      <SPAN class=rtIn jQuery1235081519640="3">xxx yyy zzz</SPAN> 
   </DIV>

I can get the node from tree.findNodeByText("xxx yyy zzz").
The problem is, the label/text "xxx yyy zzz" is not unique.
Is there a better way to uniquely identify that treeview node giving this piece of information?

Thanks. 
 
Atanas Korchev
Telerik team
 answered on 23 Feb 2009
1 answer
139 views
Currently when the user clicks on [Go], it does a postback, which validates the form but might return an alert about missing required fields.

If validation error, then the selected files are lost in FileUpload after the postback (due to HTTP limitation, OK).

What is another approach to this, so that I can validate via AJAX and display to the user, and if validation is successful, automatically do a postback (with the files from FileUpload)?

I experiemented with AJAX the button, and got another function from another post for RadAlert.
How do I do the 2nd part where if validation is successful, automatically do a postback (with the files from FileUpload)?

Public Sub ShowRadAlert(ByVal p_msg As String, ByVal p_title As String, ByVal p_controlClientId As String)

              <telerik:AjaxSetting AjaxControlID="btnGo">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="btnGo">
                        </telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>

Genady Sergeev
Telerik team
 answered on 23 Feb 2009
2 answers
105 views
Hi,

I went through the Outlook Navigation examples, it works fine.
Is it possible to place the multipage  under the  panel item instead of one in your example i.e) whnenever I click the  panel item, the pageview must come under the panel item . if so ,provide me some examples to do so.

regards
Sathies
s
Top achievements
Rank 1
 answered on 23 Feb 2009
1 answer
118 views
Hi...
i am using Radcombo with template. and using grid in template.

The Radcombo  is in RadGrid. it dispay in edit mode of particular row. i am facing two problem.

1)

  if i allow column filter to the Radgrind in radcombo template, the drop down disappear on filter even "e.cancelBubble = true;" on div in which grid in template is placed.

the grid in radcombo template is placed in RadAjaxPanel so paging work without postback.

2)
the second problem is. the dropdown item some time display scrollbars on page change on change of grid page. because dropdown div style is set to 'display: block' so it is not automatically increase or decrease.

i don't want scroll bars.


thanks,


Yana
Telerik team
 answered on 23 Feb 2009
1 answer
102 views
Hi,

I am stuck in a problem wherein if I assign a height to the RadGrid, say 200px, then if I try to drag a row, the div that appears when dragging also takes the height as 200px.

Is there a property using which I can assign height to the drag div separately?

Please confirm.

Thanks in advance,
Manish
Tsvetoslav
Telerik team
 answered on 23 Feb 2009
3 answers
119 views
Once again I have updated the rad controls to the latest version and had problems.

This time its the popup button vanishing on a RadDatePicker.

All of our RadDatePickers are added to the page at runtime. When this happens the button is missing. Yet if I manually add a RadDatePicker to the aspx page, the button appears.

We do not use any custom skins.

The cssclass for the RadDatePicker button is class="rcCalPopup" for a dynamically created RadDatePicker with or without a manually added radDatePicker. The cssclass is the same for the manually added RadDatePicker.

Also, the button appears fine in the live examples.

Matt
Nikolay Rusev
Telerik team
 answered on 23 Feb 2009
1 answer
143 views
Hi, I'm a little confused, but that is may be because I spend too much time behind my pc. Ok, here it is. On the this site I see an example how to check multiple controls (see: check multiple controls). Looks nice. But at a lot of places I also see some different approche. See this page in the documentation. Can someone please explain to me wat the difference is.

What I try to get to work is to start the RadSpell from a RadToolbar. In my code I set the ControlsToCheckId to a string-array containing all the controlIds (int this case all the controls to check are of the RadTextBox-type, but that should not matter I think). To get this to work, I also have a js-script on the page which references the RadSpell. Now, when I have, lets say, 10 RadTextBoxes and I put some text in the first one and leave the others to their default value, and start the spellchecker, it pops up. No problem with that, but, first of all, the text typed in the textbox shows half way the textbox in the RadSpell dialog, which is strange. But wait, it gets stranger. when I scroll up, I see the same text again. So this text is present twice in the RadSpell-dialog. Now, when I check the spelling and change some words, on closing of the RadSpell-dialog, the text in the original dialog is not changed.

Does anyone has a clue, and of course an answer on my question about the difference checking multiple textboxes using ControlIdsToCheck and the script approach mentioned in the documentation.

I use the Q3 2008 version of the RadAJAX controls.

TIA


Tervel
Telerik team
 answered on 23 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?