Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
128 views
Dear All,

I have a context menu in a TreeView, and one of the options is to rename the title.  that is working fine, i am doing this

        function onClientContextMenuItemClicked(sender, eventArgs)
        {
            var menuItem = eventArgs.get_menuItem();
            var treeNode = eventArgs.get_node();

            switch(menuItem.get_value())
            {
                case "View":
                    break;
                case "Edit":
                    break;
                case "Rename":
                    treeNode.get_treeView()._startEdit(treeNode);
                    break;
                case "New":
                    break;
                case "Delete":
                    break;
            }
        }

Now I noticed that after changing the treeNode, I am going back to the Page_Load in C#.  From that pageLoad, I want to check if the treeNode was changed, and if changed, get the value, so that I can update the database with that value.

Is this possible to do from the C# code-behind?

Thanks for your help
Johann
Top achievements
Rank 1
 answered on 04 Dec 2008
5 answers
538 views
Hi,

Can I find documentation on changes in the resx files somewhere? It's a huge timesaver for those who do localize the editor if there is a changelog available of these files, so we don't have to translate each file from top to bottom every time there is a new release.

Please say yes! :)

Regards,
-DJ-
Gary Davis
Top achievements
Rank 2
 answered on 04 Dec 2008
15 answers
448 views

Dear Terelik Support,

Please it's an urgent need.

I want to add a TreeView to the ComboBox and I want to populate the treeview from the code behind. I followed the instructions in the following link

http://www.telerik.com/help/aspnet-ajax/combo_templatesaddingtemplates.html

But when I run the page I treeview did not show up. This is my first time trying to accomplish this task and it's very important to my application. I'm using VS 2008 and VB.NET and most.

I tried to read the available posts about this subject but I couldn't do it.

Please is there is any one can help me to accomplish this task?

Thank you.

Veselin Vasilev
Telerik team
 answered on 04 Dec 2008
1 answer
191 views

I am looking for dynamically adding Tabs in Tabstrip and adding pageView in Multipage and then associate the newly created pageView to Tab (similar to tabs in IE).  But I couldn’t find a way to do this from the documentation. Can you please help?


here is the sample code I am trying. 

 

<body>

<script language="javascript" type="text/javascript">

 

    function AddNewTabs() {

       

 

        var multiPage = $find("<%=RadMultiPage1.ClientID %>");

        multiPage.trackChanges();

        var pageView = new Telerik.Web.UI.RadPageView();

        pageView.set_id("id1");

        multiPage.get_pageViews().add(pageView);

        pageView.get_element().innerHTML = "PageView1";

        //pageView.get_element().id = "id1";

        multiPage.commitChanges();

 

        var tabstrip = $find("<%= RadTabStrip1.ClientID %>");

        var roottab = new Telerik.Web.UI.RadTab();

        roottab.set_text("ReportPageView");

        roottab.set_pageViewID("id1");

        tabstrip.trackChanges();

        tabstrip.get_tabs().add(roottab);

        tabstrip.commitChanges();

    }

   

 

   

    </script>

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

   

    <asp:ScriptManager ID="ScriptManager" runat="server" />

   

    <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="AddNewTabs();"/>

   

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">

       <Tabs>

           <telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="CommencePageView"/>

       </Tabs>

    </telerik:RadTabStrip>

      

    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">

        <telerik:RadPageView ID="CommencePageView" runat="server">

            <div>Comments</div>

        </telerik:RadPageView>

    </telerik:RadMultiPage>

   

    </form>

</body>

Atanas Korchev
Telerik team
 answered on 04 Dec 2008
1 answer
115 views

Hello everybody,

I'm building a grid with edit and delete options.
In the edit option i need to show only some of the fields i have available in the grid for update, but i'm having problems achieving this.

I saw several examples in the forum but i can't put it to work in my project

I'm populating the grid on run time this way:

                '. Preencher a Grid  
                rg_shoppinglist.DataSourceID = "SqlDataSource1" 
                SqlDataSource1.SelectParameters.Item("idClient").DefaultValue = "1" 
                rg_shoppinglist.MasterTableView.DataKeyNames = New String() {"idwebchart"}  
                rg_shoppinglist.Width = Unit.Percentage(98)  
                rg_shoppinglist.PageSize = 5  
                rg_shoppinglist.AllowPaging = True 
                rg_shoppinglist.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric  
                rg_shoppinglist.AutoGenerateColumns = False 
                rg_shoppinglist.AutoGenerateEditColumn = True 
                rg_shoppinglist.AutoGenerateDeleteColumn = False 
                rg_shoppinglist.AllowSorting = True 
                rg_shoppinglist.Skin = "Sunset" 
                rg_shoppinglist.EnableViewState = True 
 
                '. Configurar   
                Dim boundColumn As GridBoundColumn  
                '. Referência  
                boundColumn = New GridBoundColumn()  
                rg_shoppinglist.MasterTableView.Columns.Add(boundColumn)  
                boundColumn.DataField = "ref" 
                boundColumn.HeaderText = "Referência" 
                boundColumn.EditFormColumnIndex = False 
                Dim myEdit As Boolean = boundColumn.IsEditable  
                '. Designação  
                boundColumn = New GridBoundColumn()  
                rg_shoppinglist.MasterTableView.Columns.Add(boundColumn)  
                boundColumn.DataField = "description" 
                boundColumn.HeaderText = "Designação" 

                '. MORE FIELDS ETC ETC ETC......

After this i tryed doing somethign like this:

    Protected Sub rg_shoppinglist_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rg_shoppinglist.ItemCommand  
        Dim val As Object 
        If e.CommandName = "Edit" Then 
            e.Item.Edit = True 
            e.Item.OwnerTableView.Rebind()  
 
 
            For i As Integer = 0 To e.Item.Controls.Count - 1  
                val = e.Item.Controls(i)  
                val = e.Item.Controls(i).ID  
                e.Item.Controls(i).......... several try outs without sucess  
 
            Next 
 
 
        End If 
    End Sub 

But nothing seems to work...
Please help
Rogério
Top achievements
Rank 2
 answered on 04 Dec 2008
1 answer
105 views
Hello!

The editor is behaving in an unwanted way with Firefox 2 & 3. A br tag gets inserted right after the template content, selected through the Template Manager button. You can check it out on one of your demo pages: enter HTML mode, erase the html code that's in there, switch to design mode, click the Template Manager button, open the marketing folder and insert 2007-07.html. Back in HTML mode you'll see that there's a br tag right at the end of it.
As some of our clients aren't that html savvy, we would like them to be able to use the editor with as little interaction with the actual html as possible. In other words, no switching from design mode to html mode just to remove something that shouldn't be there to begin with.

Another thing that bothers me with the wysiwyg interface is the indentation button. This button generates a blockquote tag, which has nothing to do with indentation. in fact, it should be used to mark up quotations. HTML tags should not be used for how they look, but for what they actually represent. CSS is the way to go here (margin-left).

And finally. I made a post on the forum back in April about some IE 7  issues, which you can find here: http://www.telerik.com/community/forums/aspnet/editor/annoying-ie-problems-latest-version-of-radeditor.aspx
After upgrading to the latest version of the editor, these problems still remain...
Have any attempts been made to sort these problems out?

Thanks in advance!
Rumen
Telerik team
 answered on 04 Dec 2008
1 answer
211 views
Hi!

How can I close RadWindow from the server side?

What I want is just do some actions on the server side and immediately close the window after these actions.

But as far as I understand, I should close window on the client side?
Kirill
Top achievements
Rank 1
 answered on 04 Dec 2008
1 answer
82 views
How to set Differant Color to Same Series Bar? , I wan to set Differant Color to each & every bar in the same series.
Velin
Telerik team
 answered on 04 Dec 2008
3 answers
121 views
Hi I am using a Panel bar that is being populated from a db, and I want to be able to disable or remove an item on page load.

I am using the following code, but it does not seem to do anything.
I tried using an onclick event instead and that worked, is there something wrong with my code?

Sub

 

Page_Load()

 

 

If Not (Page.IsPostBack) Then

 

 

Dim item As RadPanelItem = RadPanelBar1.FindItemByText("Forum")

 

item.Owner.Items.Remove(item)

End

 

If

 

 

End Sub

Any help would be greatly appreciated.

Jason

 

RW
Top achievements
Rank 1
 answered on 04 Dec 2008
1 answer
175 views
I have two radtreeviews on a page and i would like to drag and drop nodes between the two. I have the drag working fine the destination treeview is adding nodes correctly, but the source treeview is DELETING the dragged node. I am trying to CLONE the source node and reinsert it, to prevent the deletion, but when i simply call:

sourceNode.TreeView.Nodes.Insert(sourceNode.Index, sourceNode.Clone());

I receive the following error. How is it possible that the sourceNode does not match the sourceNode in a CLONE()??? We are using the version v 2008.2.1001.35 of the RadAjax controls.

System.Reflection.TargetException was unhandled
  Message="Object does not match target type."
  Source="System"
  StackTrace:
       at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
       at Telerik.Web.UI.RadTreeNode.Clone()
  InnerException:

Serrin
Top achievements
Rank 1
 answered on 04 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?