Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
172 views
Hello,
Is the OnClick event  for the sitemap control missing by design ?

As I was hoping one was there so that I could use it in the following senarios...

  1)  Dynamically change the URL links 
  2)  Deny access on specifc links based on a users security level.

If it is possible please could you advise as to how i can do this

Cheers

Pete 
Paul
Telerik team
 answered on 09 Nov 2009
1 answer
131 views
The Title says it all.
I have an existing window:
<telerik:RadWindowManager ID="_windowBranch" runat="server" Behaviors="Close" VisibleTitlebar="true" > 
            <Windows> 
                <telerik:RadWindow ID="_branchWindow" VisibleStatusbar="false" VisibleTitlebar="true" runat="server" 
                  RestrictionZoneID="zone" ShowContentDuringLoad="false" Behaviors="Close"  /> 
            </Windows> 
        </telerik:RadWindowManager> 

Which I'm opening clientside:
var oManager = GetRadWindowManager(); 
            CloseOpenWindowFromParent(); 
            var window = oManager.open(Path, "_branchWindow"); 
            window.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close); 
            window.set_visibleTitlebar(true); 
            window.Maximize(); 


The Titlebar is always missing if I open it Maximized.  If don't open it maximized the Titlebar is not missing.




Georgi Tunev
Telerik team
 answered on 09 Nov 2009
4 answers
110 views
Hi,

I want to know how to modify the cells in the sorted column of the RadGrid. I've tried many ways using the Visual Style Builder, but with no success.

Thanks in advance,

Simón de Lizarza
Simón
Top achievements
Rank 1
 answered on 09 Nov 2009
2 answers
126 views
I use wcf function to bind grid via client.(like this example http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx). I can load data without any problem. But column grouping was not work.
anyone help me or any sample?

eitan
Top achievements
Rank 1
 answered on 09 Nov 2009
1 answer
95 views
Assume you assign an image to your menu item as such:

menuItemL1.ImageUrl = "menu/icon-home.gif" 
menuItemL1.HoveredImageUrl = "menu/icon-home-hover.gif" 
menuItemL1.SelectedImageUrl = "menu/icon-home-selected.gif" 

 


When you hover over the menu item the Hovered image displays fine but once you select a menu item and then hover over it again the hover image is not rendered - it remains on the selected menu image. This is not correct.

Thanks for the help.


 

 

Yana
Telerik team
 answered on 09 Nov 2009
1 answer
70 views
I copied and pasted this example with the thought in mind I'd modify what I need. Can I edit the TargetFolder property when I'm using the (what I'm guessing is automatically generated) insert form? I guess what I'm after is properties of the auto-generaed radupload control.
Kamen Bundev
Telerik team
 answered on 09 Nov 2009
4 answers
153 views
We are using the Radtoolbar for our main menu at the top of the browser window.

After the last toolbar button we would like the remaining area to have scrolling news inside a radTicker control.

I have tried creating a radticker object, populating with text, then adding to the controls collection of a radtoolbarButton but this does not work.

how do i achieve what i want?

btw - we also tried to use a basic marquee element but this created all sorts of issues like a big wide button on the toolbar that was as wide as the text
Guy
Top achievements
Rank 1
 answered on 09 Nov 2009
1 answer
192 views

Hello,

I have a rad tree view implemented in a user control, and that usercontrol is implemented in a radsplitter on a left side pane. Now what I havealready done is set that when a node is clicked,

to open the content in the right pane with node target. What i can'tseem to do is make the same effect when i right click the menu and select editcategory, i catch the event in the codebehind,

and change the ContentUrl of the pane. But the pane doesn't refresh. SoI added the whole splitter in an update panel, and grab that when the eventoccurs and make it refresh. But then

I am getting this javascript errors: Without the update panel the rightpane doesn't refresh, and with it i am getting these errors.

Microsoft JScript runtime error: Sys.InvalidOperationException: Acontrol is already associated with the element.

Microsoft JScript runtime error: Sys.InvalidOperationException: Twocomponents with the same id 'ctl00_TreeMenu_MainMenu_MainContextMenu' can't beadded to the application.

Microsoft JScript runtime error: Sys.InvalidOperationException: Acontrol is already associated with the element.

Microsoft JScript runtime error: Sys.InvalidOperationException: Twocomponents with the same id 'ctl00_TreeMenu_MainMenu' can't be added to theapplication.

The code works but, why are the erorrs showing.

CODE OF MASTER PAGE:

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

        <Services>

            <asp:ServiceReference Path="~/WebService1.asmx" />

        </Services>

    </asp:ScriptManager>

   <div id="wrapper">

        <div id="headerHolder">

            <uc:Header ID="MainHeader" runat="server"></uc:Header>

        </div>

        <div id="MainContent">

            <%--<telerik:RadAjaxPanel ID="asdf"runat="server">--%>

            <asp:UpdatePanel ID="bu" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">

            <ContentTemplate>

                 <telerik:RadSplitter ID="MainSplitter" runat="server" Width="99%" Height="1000px"

                        VisibleDuringInit="false">

                        <telerik:RadPane ID="LeftPane"runat="server"Width="18%">

                            <asp:UpdatePanel ID="UpdatePanelTree"runat="server"UpdateMode="Conditional">

                                <ContentTemplate>

                                    <uc:TreeMenu ID="TreeMenu"runat="server"/>

                                </ContentTemplate>

                            </asp:UpdatePanel>

                        </telerik:RadPane>

                        <telerik:RadSplitBar ID="VerticallSplitBar"runat="server"CollapseMode="Both"/>

                        <telerik:RadPane ID="UpPane" runat="server"ContentUrl="about:blank">

                            <asp:ContentPlaceHolderID="UpContent"runat="server">

                            </asp:ContentPlaceHolder>

                        </telerik:RadPane>

                    </telerik:RadSplitter>

            </ContentTemplate>

            </asp:UpdatePanel>

              

        

        </div>

CODE OF TREEMENU CONTEXT MENU CLICK:

 protected void MainMenu_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)

        {

            RadTreeNodeclickedNode = e.Node;

            switch(e.MenuItem.Value)

            {

                case"EditCategory":

                    e.Node.Selected = true;

                    stringtreeViewState = (string)Session["treeViewState"];

                    RadTreeViewcachedTreeView = newRadTreeView();

                    cachedTreeView.LoadXmlString(treeViewState);

                    RadTreeNodecachedNodeClicked = cachedTreeView.FindNodeByValue(e.Node.Value);

                

                    cachedNodeClicked.Expanded = true;

                    cachedNodeClicked.Selected = true;

                    Session["treeViewState"] = cachedTreeView.GetXml();

                    RadPaneUpPane = (RadPane)this.Page.Master.FindControl("UpPane");

                    UpPane.ContentUrl = "EditCategory.aspx?id=" + clickedNode.Attributes["GUID"].ToString();

                    UpdatePanelupdatePanel1 = (UpdatePanel)this.Page.Master.FindControl("bu");

                    updatePanel1.Update();

                    //Response.Redirect("EditCategory.aspx?id="+ clickedNode.Attributes["GUID"].ToString());

                    break;

                    RadPaneUpPane = (RadPane)this.Page.Master.FindControl("UpPane");

                    UpPane.ContentUrl = "EditCategory.aspx?id=" + clickedNode.Attributes["GUID"].ToString();

Thank you.

Yana
Telerik team
 answered on 09 Nov 2009
1 answer
121 views
I have a grid. It has a 'GridClientSelectColumn' and another grid template column.
On grid load the radcombobox should be made visible false. when i select the row the label should be invisible & combobox should be bound from database & made visible. All these should be done at client side. Is it possible?
 <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Progress" UniqueName="RadComboBox_ScoreName" 
                                                            Visible="true"
                                                            <ItemTemplate> 
                                                                <telerik:RadComboBox ID="RadComboBox_ScoreName" runat="server" MarkFirstMatch="True" 
                                                                    Font-Names="Arial" Skin="Web20" Width="80px"
                                                                    <Items> 
                                                                        <telerik:RadComboBoxItem runat="server" Text="--Select--" Value="--Select--" /> 
                                                                    </Items> 
                                                                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                                                </telerik:RadComboBox> 
                                                               
                                       
                                                                <asp:Label ID="lblScoreID" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "ScoreID")%>'></asp:Label> 
                                                            </ItemTemplate> 
                                                            <ItemStyle VerticalAlign="Top" /> 
                                                            <HeaderStyle ForeColor="#192666" Font-Bold="True" /> 
                                                        </telerik:GridTemplateColumn> 

Shinu
Top achievements
Rank 2
 answered on 09 Nov 2009
1 answer
106 views
G'Day,

We have set our calendars to PresentationType="Preview" as the example  http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/readonlycalendar/defaultcs.aspx

However the calendars are still interactive. i.e. when the user clicks on a date the selected date is highlighted by a black dotted boarder. This give the impression that something should happen.

As this behaviour occurs on the Telerik example I know we do not have any incorrect code, just need to know if there is a workaround for it and also see if the guys at Telerik are aware of this issue.

Thanks

Andrew
Dimo
Telerik team
 answered on 09 Nov 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?