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

In my website, I am planning to have one outer shell, TabStrip in the inner shell for the links and side panes. Pretty much like how outlook is.
An example of what I'm looking for is: http://tinyurl.com/6le5hv2

Apart from TreeView & Tab Strip, could somebody please post a list of other controls which I would be using to create this web application? 
If this has already been created, then I would highly appreciate if you could post some demo links.

Thanks
Raj  ext Menu
Raj
Top achievements
Rank 1
 answered on 12 Jan 2011
6 answers
293 views
i am using version 7.1.2.0 of the editor

i am trying to set the default font dropdown, right now it always shows new times roman even when i don't have that selection in the dropdown.

I've tried the code i foudn in other threads:

var tool = editor.GetToolByName("FontName");
if (tool)
{
    tool.set_value("Arial");
}

but i get a "Object does not support this proeprty or method" error.

I've tried Set_value(), setValue(), SetValue(), even UpdateValue() and its variation i saw somewhere. Some doesn't throw an error, but does not set the default value.
Jon Shipman
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
189 views

Hello Group,

We are using RADGrid (RadControls for ASP.NET AJAX Q1 2010) . We have some static columns defined in .ascx file and also adding columns (GridBoundColumn) dynamically in code behind.
We are binding data for  dynamic columns using RadGrid_ItemDataBound event. When we try to enable paging on the grid, it behaves ackwardly. My doubt it is happening because of dynamic column.
Can you let us know for dynamic columns , paging needs to be handled in a custom manner  or RadGrid supports that? 

Appreciate your help. 

Thanks,
Vikas Baid

Pavlina
Telerik team
 answered on 12 Jan 2011
14 answers
603 views
I am having one heck of a time with versions of Telerik.Web.UI.  I had installed versions from 1 on and auto updated to 2010.3.  My page complains that it can not locate version 2010.2.929.35  yet 2010.03.1215.35 is installed.  I've had to add a bindingredirect to my web.config.  Is this normal?

  <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

      <dependentAssembly>

        <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />

        <bindingRedirect oldVersion="2010.2.929.35" newVersion="2010.03.1215.35" xmlns="urn:schemas-microsoft-com:asm.v1" />

Ed
Top achievements
Rank 1
 answered on 12 Jan 2011
0 answers
89 views
Hi,
 in my front page i have one textbox value (month number) i need to get that value in my aspx.cs page.. how can i do that..
Brown
Top achievements
Rank 1
 asked on 12 Jan 2011
5 answers
270 views
I am trying to change point size, color, and the shape.

Here is my code.

ChartSeries s = RadChart2.GetSeries(0);
s.Appearance.ShowLabels =
false;
s.Appearance.PointMark.Dimensions.AutoSize =
false;
s.Appearance.PointMark.FillStyle.MainColor =
Color.Red;
s.Appearance.PointMark.FillStyle.SecondColor =
Color.White;
s.Appearance.PointMark.Dimensions.Height = 2;
s.Appearance.PointMark.Dimensions.Width = 2;
s.Appearance.PointMark.Visible =
true;
s.Appearance.PointDimentions.Height = 2;
s.Appearance.PointDimentions.Width = 2;
s.Appearance.PointDimentions.AutoSize =
false;
s.Appearance.FillStyle.MainColor =
Color.Red;
s.Appearance.FillStyle.SecondColor =
Color.White;
s.Appearance.PointShape =
"Diamond";
s.Appearance.PointMark.Figure =
"Diamond";

Size is changed but the color and shape of points will not change.
As you can see, I am setting everything I can think of to see if it will work.
Any help would be greatly appreciated.

BTW, why would you ask us to set the figure property as string?
What happened to enum?

Thanks.

- MK
Giuseppe
Telerik team
 answered on 12 Jan 2011
1 answer
65 views
We create new TreeView node via client script. This node we create in edit mode. Everything works fine. We have only one issue:
If User press "Esc" key or loss focus without pressing "Enter" key  then we should remove this node from TreeView.
How we should implement it? What event we can use?
Nikolay Tsenkov
Telerik team
 answered on 12 Jan 2011
1 answer
93 views
hi guys
i want to use RadChart with sharepoint 2010 , i add a application page to sharepoint 2010 and i want to use this control in this page , can you give me a good example ? i dont know how i can use datatable with chart control
Ves
Telerik team
 answered on 12 Jan 2011
5 answers
150 views
I am a newbie using telerik in my visual estudio 2008  C# and i am trying to make a dropdownlist that update a column in my radgrid, it looks like all the texbox can update the columns.

what is weird is that it is updated on the database but in the column it doesnt so i have to stop debugging in order and then debug again so i can see the column updated.

i know there is an easy way to solve this but in the meantime while trying to solve this i wanted to use the forum to check or get solution faster.

here is the part of the radgrid that doesnt update
<telerik:GridBoundColumn ItemStyle-CssClass="UM_usertype"  UniqueName="UserType" HeaderText="User Type" DataField="Type">
                <HeaderStyle Width="60px"></HeaderStyle>
                </telerik:GridBoundColumn>

and the web user control that has the dropdownlist
<td>Usertype:</td>
                    <td><asp:dropdownlist id="ddlUT" runat="server" tabindex="2" Width="127px"></asp:dropdownlist>
                    </td>

thanks in adv.


Santos
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
375 views
Hi,

I have a page with a Rad Toolbar on it.  This page is also using a master page.  I am trying to call a java script from code behind on the Toolbar OnButtonClick event.  The toolbar is inside a UpdatePanel.

When I click the toolbar button the javascript isn't called. 

To test my page, I added a regular asp:button to the page and put it inside the update panel and called the function, it didn't work. 
I did some research and found that I needed to trigger a postback on the button, so added the following code to the Load event and then when I clicked the asp button the javascript was executed.

 

 

 

Private Sub WebForm4_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
Dim scriptManager As ScriptManager = scriptManager.GetCurrent(Me.Page)
    
scriptManager.RegisterPostBackControl(Button1)
End Sub

 


Thinking that I should do the same for the toolbar button, I then added the following to the Load event.  But, the javascript still did not run.

Dim

 

rtb As RadToolBarButton = DirectCast(rtbPDFInvoices.FindButtonByCommandName("tbtExportPDF"), RadToolBarButton)
scriptManager.RegisterPostBackControl(rtb)

 

I read on the forums about the client events being unattached after ajax update, but I don't think this is my problem.  I am using the OnButtonClick not the OnButtonClientClick.

Below is a simplified version of what I am trying to do.  In the real world I need to call the java script from code behind because it only gets called if certain conditions exist.

Thank you for your help.

ASPX PAGE
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/IPSMaster.Master" CodeBehind="WebForm4.aspx.vb" Inherits="IPS_Gateway.WebForm4" %>
<%@ Register assembly="Telerik.Web.UI"      namespace="Telerik.Web.UI"      tagprefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit"  namespace="AjaxControlToolkit"  tagprefix="act" %>
  
  
<asp:Content ID="Content2" ContentPlaceHolderID="cphMainContent" runat="server">
  <script type="text/javascript" language="javascript">
      function ShowMessage(strMsg) {
           alert(strMsg);
       }
         
</script>
  
    <asp:Panel ID="pnlPageContent"         runat="server"    cssClass="css_GPC01_Panel_PageContent" >
  
    <asp:panel ID="pnlPageHeader"                runat="server"     cssClass="css_GPC01_Panel_PageHeading" >    
        <asp:UpdatePanel ID="pnlToolbar"         runat="server" >
            <ContentTemplate>
                <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"  />
                <telerik:RadToolBar ID="rtbPDFInvoices" runat="server"  AutoPostBack="true"          EnableEmbeddedSkins="True" Skin="Black" OnButtonClick="rtbPDFInvoices_ButtonClick"   >
                    <Items>
                        <telerik:RadToolBarButton runat="server" CommandName="tbtExportPDF"          ImageUrl="~/App_Themes/Images/Applications/Export PDF 16.png"    Text="Export To PDF"   />
                    </Items>
                </telerik:RadToolBar>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:panel>
</asp:Panel>
</asp:Content>

CODE BEHIND
Imports Telerik.Web.UI
Partial Public Class WebForm4
    Inherits System.Web.UI.Page
    Protected Sub rtbPDFInvoices_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles rtbPDFInvoices.ButtonClick
  
        Dim btn As RadToolBarButton = TryCast(e.Item, RadToolBarButton)
  
        Select Case btn.CommandName
            Case "tbtExportPDF"
                ExportPDF()
                Exit Select
        End Select
  
    End Sub
    Protected Sub ExportPDF()
  
        Dim strBuilder As New StringBuilder()
        strBuilder.Append("<script laungauge='javascript'>")
        strBuilder.Append("ShowMessage('Hi')")
        strBuilder.Append("</script>")
        Page.ClientScript.RegisterStartupScript([GetType](), "ToPDF", strBuilder.ToString)
  
    End Sub
  
  
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        ExportPDF()
    End Sub
  
    Private Sub WebForm4_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim scriptManager As ScriptManager = scriptManager.GetCurrent(Me.Page)
        Dim rtb As RadToolBarButton = DirectCast(rtbPDFInvoices.FindButtonByCommandName("tbtExportPDF"), RadToolBarButton)
        scriptManager.RegisterPostBackControl(Button1)
        scriptManager.RegisterPostBackControl(rtb)
  
    End Sub
End Class

Dimitar Terziev
Telerik team
 answered on 12 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?