Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 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
161 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
195 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
130 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
109 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
1 answer
130 views
Below is my code.  I know that I cannot set the RadGrid to 100% height since
my table row does not have a value.  I have been unable to resize on the
client using .get_element.style.height = xxxx.  Does anyone know why this
would not be working or another way I can expand the grid to fill the height?
Currently, the grid is only about 30px tall.  Thank you in advance.

Joshua

<body> 
 <form id="form1" runat="server">  
  <rad:RadScriptManager ID="RadScriptManager1" runat="server" /> 
  <table cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed;width:100%;height:100%;">  
   <tr style="height:60px;">  
    <td valign="top" style="position:relative;background-color:steelblue;">  
      
    </td> 
   </tr> 
   <tr style="height:100%;">  
    <td style="position:relative;">  
     <rad:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" Width="100%" style="border:0;">  
      <MasterTableView TableLayout="Fixed" /> 
      <ClientSettings> 
       <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
      </ClientSettings> 
     </rad:RadGrid> 
    </td> 
   </tr> 
  </table> 
 </form> 
</body> 
Dimo
Telerik team
 answered on 09 Nov 2009
3 answers
117 views
How does the top div in the default page swith its background color based on the skin a user selects.  Is this the form decorator or skin mamanger doing it??

Thx
Dimo
Telerik team
 answered on 09 Nov 2009
1 answer
147 views
I am using the code which follows to insert a summation row at the bottom of the Data Table which is the result of a triple stacked bar chart.  I set the visibility of the series to false so it does not display in the graph only in the DataTable which works fine.  My only problem is that there is an unused color label associated with this new row in the Data Table, I like the color labels with the other rows because they take the place of the legend, but this one I would like to drop, is this possible?  To drop just the color portion of a series label in a Data Table?

ChartSeries totSer = new ChartSeries(); 
totSer.Name = "Total Contacts"; 
totSer.Visible = false; 
for (int i=0; i< conRunning.Series[0].Items.Count; i++){ 
    totSer.Items.Add(new ChartSeriesItem(conRunning.Series[0].Items[i].YValue 
        + conRunning.Series[1].Items[i].YValue 
        + conRunning.Series[2].Items[i].YValue)); 
} 
conRunning.Series.Add(totSer); 
Ves
Telerik team
 answered on 09 Nov 2009
1 answer
134 views
Hello,

Do you know when the VSB will support working with the new Sitefinity skin that is in the Q3 release of the AJAX controls?

Thanks!
Dimo
Telerik team
 answered on 09 Nov 2009
5 answers
278 views
hi..telerik..
is there any way to calculate the total number of hours between start time and end time. i need it to calculate when i save the appointment and display it along with the appointmnet title on schedular,..
Peter
Telerik team
 answered on 09 Nov 2009
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?