Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
611 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
91 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
273 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
66 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
99 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
153 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
382 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
1 answer
131 views
Hi,
I am using RadEditor and using the Imagemanager for uploading the images, currently the images uploaded  will be saved in the vertual folder of the application. Is there a way I can save my images in Database (SQL server 2008).
If there is a way to save the uploaded images in Database, please let me know.

Thanks,
Santosh
Rumen
Telerik team
 answered on 12 Jan 2011
1 answer
136 views
I'm using radtextbox with mode = "Password" with a radcombobox which do a postback to fill another radcombobox.. the problem is the radtextbox loses the data written in it when the radcombobox do the postback .... how can I make the radtextbox save its state

thanks for effort
Maria Ilieva
Telerik team
 answered on 12 Jan 2011
0 answers
47 views
Hi,

 i am having stored procedure has month name as a param , to get the holidays.. in my front page i am getting month number while navigating month... but i need to pass that month number to that stored procedure.. 

this is the line to display the holidays in the front page using webservice. insterad of 1 i need to pass month number. tell me how to do this..

HolidayData

 

 

[] demo = ConfigManager.TimeSheetService.GetHolidaysByMonth(1);

 

Brown
Top achievements
Rank 1
 asked on 12 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?