Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
Hello,

How can I prevent the RadMaskTextBox from overwriting the existing entry?

I fill the RadMaskedTextBox when the user hits a row from the list. The user should be able to edit this entry without deleting all the old charactes automaticly when he writes to the RadMaskedTextBox.

Thanks.
Veli
Telerik team
 answered on 10 Aug 2009
1 answer
124 views
Hi,

I'm upgrading my controls from Q3 2007 to Q2 2009 telerik conrols. I didn't find any equivalent properties for "OnResolveUpdatedControls" in the new version.

Here is my previuos code:

aspx:
    <radA:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="true" 
        OnResolveUpdatedControls="RadAjaxManager1_ResolveUpdatedControls"
        <AjaxSettings> 
            <radA:AjaxSetting AjaxControlID="btnSearch"
                  ... some code ... 
            </radA:AjaxSetting> 
        </AjaxSettings> 
    </radA:RadAjaxManager> 
 

c# code behind:
        protected void RadAjaxManager1_ResolveUpdatedControls(object sender, UpdatedControlsEventArgs e) 
        { 
            e.UpdatedControls.Add(new AjaxUpdatedControl( 
                this.divgridheader.ClientID, string.Empty)); 
        } 
 

Let me know.

Thanks
Pavlina
Telerik team
 answered on 10 Aug 2009
1 answer
76 views
Hi,

I'm in the process of upgrading the RAD Controls in our application to RAD Controls Q2 2009 release. Earlier i was using RAD Controls Q3 2007 version. While upgrading i couldn't able to apply my customized skin to the controls. How can i achieve this for the new version? Please let me know.

Thanks
Georgi Tunev
Telerik team
 answered on 10 Aug 2009
0 answers
96 views
I have a requirement where in I want to show three images horizontally, click on any one image will drop down different text values. For this i have used RadMenu, as I want to show main menu with an image on click of which sub radmenu items will be displayed.

But all menus need to work in sync., i.e. will it be possible that if i click on any sub menu item of main menu item 1 and then click sub menu item of main menu item 2 both will be used for filtering the data.
Meghna
Top achievements
Rank 1
 asked on 10 Aug 2009
1 answer
82 views
Hi peeps,

I was wondering if there was a way I could leverage some telerik "under-the-cover" features for non-telerik controls.  I'd really like to use the window hooks for modal-ness and movement without having to code that myself.  I was looking through the javascript resources for RadWindow and it seems to use the telerik framework's code that handles modal popups, as well as hooks for click-dragging the window title.

I am creating a custom window that will be used much in the way a grid edit form is used, to give you a visualization.  I have everything working as far as functionality, but the table is statically cemented to the page and adds to the clutter of the page behind it.

Any help would be appreciated!
Fiko
Telerik team
 answered on 10 Aug 2009
1 answer
113 views
Hello,

My combobox is inside a TableCell which has a 50% width, I tried to set the combobox with to 100% using the attribute and it doesn't work ? I get a smal combobox which occupy 20% of my cell ?
When I suppress the width att, I et normal default width
Am I misbehaving somewhere or is tehre a Pb?

Thanks for help.
CS
Helen
Telerik team
 answered on 10 Aug 2009
4 answers
211 views

I am trying to databind a rad tree to a table that I create from a database. I followed the video example and changed the way I populate the table, but I know I am getting the correct data back. However, I get this error

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 14:         
Line 15: ' CreateChildControls the Table and assign the datasource
Line 16: RadTreeView1.DataSource = CreateTable()
Line 17: ' Assign the data fields
Line 18: RadTreeView1.DataFieldID = "ID"

Source File: c:\websites\ClickableCommunity\ClickableCommunity.Master    Line: 16

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
ASP.clickablecommunity_master.Page_Load(Object sender, EventArgs e) in c:\websites\ClickableCommunity\ClickableCommunity.Master:16
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Here is the vb code

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        
        If Not Page.IsPostBack Then
        
            ' CreateChildControls the Table and assign the datasource
            RadTreeView1.DataSource = CreateTable()
            ' Assign the data fields
            RadTreeView1.DataFieldID = "ID"
            RadTreeView1.DataFieldParentID = "ParentID"
            RadTreeView1.DataTextField = "Text"
            ' Bind the data
            RadTreeView1.DataBind()
            
        End If
    End Sub 'page_load
    
    'this function creates a datatable for the rad
    'tree that is in the events panel
    Private Function CreateTable() As DataTable
        'set up my connection to the database
        Dim conn As New SqlConnection
        conn.ConnectionString = ConfigurationManager.ConnectionStrings("connectionString").ConnectionString

        Dim table As DataTable = New DataTable()
        table.Columns.Add("ID")
        table.Columns.Add("ParentID")
        table.Columns.Add("Text")

        'this is a counter for the id fields
        'of the data table
        Dim count As Integer = 0
        
        'this adds the parent categories to the 
        'datatable
        Dim categoryQuery As New SqlCommand
        conn.Open()
        categoryQuery.Connection = conn
        categoryQuery.CommandText = "select CategoryId, Name from categories"
        Dim cdr As SqlDataReader = categoryQuery.ExecuteReader()
        While cdr.Read()
            
            If (cdr.Item(0).ToString <> "") Then
                
                table.Rows.Add(New String() {count.ToString, count.ToString, cdr.Item(1).ToString})
                
                'we have to increment count to keep an id for the data table
                count = count + 1
                
            End If
            
        End While 'while cdr.Read()
        conn.Close()
        conn.Open()
        'this adds the events with their parent category
        'id to the datatable
        Dim eventQuery As New SqlCommand
        eventQuery.Connection = conn
        eventQuery.CommandText = "SELECT eventid, FK_CategoryID, name from events"
        Dim edr As SqlDataReader = eventQuery.ExecuteReader()
        While edr.Read()
            
            If (edr.Item(0).ToString <> "") Then
                
                table.Rows.Add(New String() {count.ToString(), edr.Item(1).ToString, edr.Item(2).ToString})
                
                'we have to increment count to keep an id for the data table
                count = count + 1
                
            End If
            
        End While 'while edr.Read()
        
        Return table

    End Function 'CreateGenreTable

What I can't understand is why it says that createtable is null. I am returning the table and I have outputted the data that I am adding to the table. Any ideas? Thanks

Veselin Vasilev
Telerik team
 answered on 10 Aug 2009
7 answers
175 views
Hi there

I'm having a little layout issue regarding the ImageUrl property on a root item in the RadMenu.
Whenever I add an image, the hover style breaks the background image, displaying a 3px space between the image and the text.

Take a look here: http://img195.imageshack.us/img195/2366/radmenuimageurl.png

I can see that the problem is because of the image tag being placed outside the span containing the text for the button. If I (using FireBug) moves the image tag inside the span element of the button, it renders correctly.

Any ideas?
Kamen Bundev
Telerik team
 answered on 10 Aug 2009
1 answer
52 views
This does not work with Opera (cookies allowed set to true). Anyone see this and know id there is a bug fix? http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/persiststateincookie/defaultcs.aspx
Helen
Telerik team
 answered on 10 Aug 2009
23 answers
479 views
Hi,

I tried surrounding the rsAvOptionsScroll div in the AdvancedForm with a UpdatePanel:

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

Then I tried dropping a standard Button and a RadTextBox on the form:

        <asp:Button ID="btnResetSearch" runat="server" Text="Reset" OnClick="AddTeamMember2" Style="text-align: center;" />

        <telerik:RadTextBox ID="RadTextBox1" runat="server">
        </telerik:RadTextBox>

After that I created the callback function:

        protected void AddTeamMember2(object sender, EventArgs e)
        {
            RadTextBox1.Text = "hhh";
            updtAdvFormControls.Update();
        }

When I clicked on the button the debugger goes into the AddTeamMember2 function
but the RadTextBox1 never gets set to "hhh" after it you hit F5 to continue. If I type in
"xxx" in the RadTextBox1 from the screen and then take the debugger back into the
AddTeamMember2 function, the value is set to "xxx" and latter gets set to "hhh" but
after hitting F5 to continue the screen always says "xxx".

 

Thanks,

Kip

Peter
Telerik team
 answered on 10 Aug 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?