Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
79 views
Hi,

We are using the Radgrid with the standard commanditemdisplay on top.
Is there a clientside event to handle the "AddNewRecord" button click so we can add our own functionality to this button?

greetings Datamex.
Datamex
Top achievements
Rank 2
 answered on 16 Sep 2009
1 answer
125 views
Is there a way to set rowheight for the resources vs the appointments different?
Yana
Telerik team
 answered on 16 Sep 2009
1 answer
185 views
    #region CreatedRadDockFromState  
    private RadDock CreateRadDockFromState(DockState state)  
    {  
        RadDock dock = new RadDock();  
        dock.ID = string.Format(state.UniqueName);  
        dock.ApplyState(state);  
        dock.CssClass = "RadDock";          
        string strDockID = string.Format(state.UniqueName);  
}  
 private RadDock CreateRadDock()  
{  
 RadDock dock = new RadDock();  
 dock.Title = "List Summary" 
  dock.TitlebarTemplate = new DockTitleTemplate();  
}  
 
  class DockTitleTemplate : ITemplate  
    {  
        TextBox txt = new TextBox();  
        Button btn = new Button();  
        LinkButton lnk = new LinkButton();  
 
        public void InstantiateIn(Control container)  
        {  
            lnk.ID = "lnk1";  
            lnk.Text = "initial text";  
            lnk.Click+=new EventHandler(lnk_Click);  
            container.Controls.Add(lnk);  
 
            txt.ID = "txt1";  
            container.Controls.Add(txt);  
            txt.Visible = false;  
            
            btn.ID = "btn1";  
            btn.Click+=new EventHandler(btn_Click);  
            btn.Text = "ok";  
            btn.Visible = false;  
            container.Controls.Add(btn);  
        }  
        protected void lnk_Click(object sender, EventArgs e)  
        {  
            txt.Visible = true;  
            btn.Visible = true;  
        }  
        protected void btn_Click(object sender, EventArgs e)  
        {  
            txt.Visible = false;  
            btn.Visible = false;  
        }  
    } 
 private RadDock CreateRadDock()  
{  
 RadDock dock = new RadDock();  
 dock.Title = "List Summary" 
  dock.TitlebarTemplate = new DockTitleTemplate();  
}  
 
  class DockTitleTemplate : ITemplate  
    {  
        TextBox txt = new TextBox();  
        Button btn = new Button();  
        LinkButton lnk = new LinkButton();  
 
        public void InstantiateIn(Control container)  
        {  
            lnk.ID = "lnk1";  
            lnk.Text = "initial text";  
            lnk.Click+=new EventHandler(lnk_Click);  
            container.Controls.Add(lnk);  
 
            txt.ID = "txt1";  
            container.Controls.Add(txt);  
            txt.Visible = false;  
            
            btn.ID = "btn1";  
            btn.Click+=new EventHandler(btn_Click);  
            btn.Text = "ok";  
            btn.Visible = false;  
            container.Controls.Add(btn);  
        }  
        protected void lnk_Click(object sender, EventArgs e)  
        {  
            txt.Visible = true;  
            btn.Visible = true;  
        }  
        protected void btn_Click(object sender, EventArgs e)  
        {  
            txt.Visible = false;  
            btn.Visible = false;  
        }  
    } 
Hello sir,
I am creating docks dunamically and would apply title editable funcationality...
I am sending you my code, in that I am not using any update panel...

once a title is update then save in database....

Once we created dock then set dock title which is already given , then after created link on titleBar template of dock's title that shows one textbox and one button...when click on that button save and show that update title in database.

how can I apply this functioning...please reply me ASAP..

thanks with regards

Pero
Telerik team
 answered on 16 Sep 2009
1 answer
162 views
In our application we work with a panelbar on the left, splitter in the mid and a grid on the right side of the application workspace. The grid only appears when a panelbar item is clicked.Thus the grid is invisible and becomes visible as soon as a panelbar item is clicked. Is this a feasible scenario or simply not possible? Our current problem is that the grid jumps all directions as soon as it appears but do not fit well for 100% in the parent pane.
Veli
Telerik team
 answered on 16 Sep 2009
2 answers
186 views
Hi,

I've a RadGrid that is editable, here i need to copy data from one textbox control to another textbox control.

Please provide solution.

Thanks in Advance
Durga


Durga
Top achievements
Rank 1
 answered on 16 Sep 2009
2 answers
221 views
ASP.NET 2.0 application

I am creating a custom image button control that will be used for a help system within our application.  I wish to use the RadWindow to display our help text in a modal, sized window that is not pop-up-blocked.  The idea is that this custom control can be used by myself and other developers in our applications in a simple process of add the control to the page, set the properties, done.

There is no guarantee that the page that this custom control is added to will contain a RadWindowManager, but it may.  I have code to loop through the page's controls, in a recursive manner,  in order to locate the RadWindowManager if it exists.  If one does not exist, I create one and add it to the page's controls collection...oh, wait...this throws an exception about not being able to modify the controls collection during a certain event. 

I attempted to add the RadwindowManager to the controls collection of my image button and that did not cause an error, but radOpen does not work because GetRadWindowManager can't find the RadWindowManager.  When I view the source of my page, the RadWindowManager that I added to the controls collection of my image button is not there.

Is there another way to add the RadWindowManager to the page's controls collection so it can be used?  Can I create the radwindow on the client and then open it  via javascript?

Thanks,

Sean M. Severson
Sean Severson
Top achievements
Rank 1
 answered on 16 Sep 2009
5 answers
472 views
Dear all

I added the validation (on server-side) for some fields of my grid. It's working fine.

But, I'd like to add, that if the field is blank/empty the validation fails as well. I found out, that when my code is running and the field is blank it's not running through the validation. Plelase find here the code of the asp and the vb I used:

          <telerik:GridTemplateColumn HeaderText="Zip Code" UniqueName="TemplateColumn">  
          <EditItemTemplate> 
          <asp:TextBox id="TextBox1" runat="server" Text='<%# Bind("zipcode") %>' MaxLength="4"></asp:TextBox> 
            <asp:CustomValidator id="CustomValidator1" runat="server"   
            ErrorMessage="please enter a zip code" 
            ControlToValidate="TextBox1" 
            OnServerValidate= "CustomValidator1_ServerValidate">  
            </asp:CustomValidator> 
            </EditItemTemplate> 
            <ItemTemplate> 
             <asp:Label ID="label1" runat="server" Text='<%# Eval("zipcode") %>'></asp:Label> 
            </ItemTemplate> 
          </telerik:GridTemplateColumn> 

    Protected Sub CustomValidator1_ServerValidate(ByVal [source] As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs)  
        Dim i As Integer 
        Try 
            i = Convert.ToInt16(args.Value)  
        Catch ex As Exception  
            args.IsValid = False 
        End Try 
 
        If args.Value.Length <> 4 Then 
            args.IsValid = False 
        End If 
    End Sub 'CustomValidator1_ServerValidate 

As already said, it's working fine, it's just not running the CustomValidator1_ServerValidate code if the field zipcode is left blank by the user.

Does anybody has some ideas, solutions or is there anything I did wrong?

Thanks in advance for your help

Cheers

Marino


Sebastian
Telerik team
 answered on 16 Sep 2009
1 answer
90 views
Hello,

I recently updated to Q2 2009 controls.  I have a website which is hosted on a server owned by discountASP.net.  What do i need to do to get these controls to work on their server since I do not have direct access to it?  Before I just copied the bin folder with dll to the server, can I still do it that way?  Does both dlls need to be added?  (Telerik.Web.Design and Telerik.Web.UI).

Thanks.
Paul
Telerik team
 answered on 16 Sep 2009
2 answers
126 views
Hello, all,
I'm using the latest release of ASP.NET Ajax controls, and I'm facing a rather strange situation on one RadComboBox.

Actually I have a project where a particular combo box need to be loaded with one item (the default item: just setting RadCombo1.Text="something"; is not enough, for me). When an user opens it, this default value needs to be highlighted, because user has to be able of typing something into it. It has, amongst others, the following properties...

  • EnableLoadOnDemand="true"
  • MarkFirstMatch="true"
  • EnableTextSelection="true"
  • AllowCustomText="true"
... and the following client events:
  • OnClientDropDownOpening="OnClientDropDownOpening"
  • OnClientDropDownOpened="OnClientDropDownOpened"
  • OnClientDropDownClosed="OnClientDropDownClosed"
  • OnClientItemsRequesting="OnClientItemsRequesting"
  • OnClientFocus="OnClientFocus"
  • OnClientItemsRequested="OnClientItemsRequested"

Well, when I load it for the first time, "OnClientItemsRequested" fires twice; plus, and here's the strange behavior, at the first time the default value is correctly highlighted (this combo box is correctly filled with all values), but at the second time the cursor goes to the end of text. If I close it and re-open it, default value is correctly highlighted.

I already tried to set this combo box text with the item text and then selecting it on "OnClientDropDownOpened", with no success. I tried also to mimic "MarkFirstMatch" as explained here:

http://www.telerik.com/community/forums/aspnet/combobox/radcombobox-loadondemand-itemsrequested-firing-multiple-times.aspx

but, since I also need to highlight the text (so, EnableTextSelection="true"), I'd need to at least set an automatic postback on this control, what it's not ok for me, due to performance reasons.





Any hint?
Thank you!

Ciao,
Sabrina.
Sabrina Lanzoni Gonçalves
Top achievements
Rank 1
 answered on 16 Sep 2009
2 answers
169 views
Hi, i need to add a new property to each of the column types that are supported by the RadGrid.  Is there a way to do this without having to inherit from each of the column types and add the property there?
Shinu
Top achievements
Rank 2
 answered on 16 Sep 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?