Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
135 views

Hi,

I am hidding one button on server side in page load method. I want to set visibility of that button to true from client side using javascript.  any solution for this..

Thanks
Raju

Shinu
Top achievements
Rank 2
 answered on 04 Feb 2009
3 answers
353 views
how to show radtooltip on row mouse  over of radgrid control
Sebastian
Telerik team
 answered on 04 Feb 2009
2 answers
102 views
Hi,

I am using Telerik Tool Bar , i want to fire the buttons events inside the ToolBar. I have attached the Design.
<telerik:RadToolBar runat="server" ID="RadToolBar1" CssClass="RadToolBar"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    <Items> 
        <telerik:RadToolBarButton Text="Add"  ImageUrl="../App_Themes/images/Add.gif"  CommandName="Insert" > 
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton Text="Edit" ImageUrl="../App_Themes/images/Edit.gif" CommandName="Update" > 
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton Text="Delete" ImageUrl="../App_Themes/images/deletegrid.gif"  > 
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton Text="Save" ImageUrl="../App_Themes/images/Save.gif" > 
        </telerik:RadToolBarButton> 
        <telerik:RadToolBarButton Text="Cancel"
        </telerik:RadToolBarButton> 
    </Items> 
</telerik:RadToolBar> 
Plz give me an example. Can any one help me.

Thanks
Jaya
Princy
Top achievements
Rank 2
 answered on 04 Feb 2009
1 answer
163 views
Hello,

I searched for some information on how to submit a form using a specific RadToolBarButton.  I know I could probably do it using javascript, but is there a better solution?

The button will be used with a custom jquery validation plugin and for dirty checking.

Thanks,
Mike
Princy
Top achievements
Rank 2
 answered on 04 Feb 2009
2 answers
113 views
Hello!
I have the following problem.
On master page i have RadMenu (lets call it RadMenu1).
On page with its master i populate it with data (using RadMenu menu = (RadMenu)Master.FindControl("RadMenu1");) etc.
THis works fine, since all data is there.
On this page i have function (in client script) called functionHello().

What is the way for linking this function to RadMenu1? Since when i try to do:

menu.Attributes["OnClientItemClicked"] = "functionHello";

its not working at all.
Alexander
Top achievements
Rank 1
 answered on 04 Feb 2009
3 answers
324 views
I am having trouble extracting the data of a multi-row edit using the techniques described in the "Performing batch updates" article when the data is in a Detail Table, not in the main table.

To set the scene, I have two command buttons, one to Edit All Rows which loops through evey editable item of the DataTable and sets Edit=true. The other button then issues a SaveAll command to save the new data in each item.

All of my columns are GridTemplateColumns and have labels in their ItemTemplate to display the data and textbox or or other controls in their EditItemTemplate to allow for editing of the data. I am able to pull the data when the Update button is hit on the row but when I have an Update All command button, it does not work. I have the following IF statement in my ItemCommand:

if (e.CommandName == "SaveAll")  
{  
    //foreach (GridItem item in e.Item.OwnerTableView.Items)  
    foreach (Telerik.Web.UI.GridEditableItem item in rgOptions.EditItems)  
    {  
        string price = ((TextBox)e.Item.FindControl("txtPrice")).Text;  
 
        // Perform some kind of save to DB here  
 
        item.Edit = false;  
    }  
 
    e.Item.OwnerTableView.Rebind();  

The trouble is the FindControl always returns null even though I just entered data into the text box. The Item Template of the GridTemplateColumn puts the data into a label called lblPrice. This label is fully accessable via FindControl. It doesn't seem to recognize that it is in Edit Mode even though Edit = true (although IsEditMode = false, is this supposed to be the case?).

If I try the same exact code on the main table, it works great.

Any thoughts as to what I am missing?

Thank you,
Oleg Fridman
Princy
Top achievements
Rank 2
 answered on 04 Feb 2009
5 answers
152 views

Hi,

I would like to know if it is possible to update a control (status message) on each AJAX request. Setting AjaxSetting would not work because any control on any user control may trigger the postback.
I was thinking of doing this in JavaScript, something like catching the OnRequestStart event and then calling __doPostback for my control but it doesn't seem to work. Do you have any solution for this? 

Thank you
Victor
Pavlina
Telerik team
 answered on 04 Feb 2009
1 answer
269 views
I am trying to figure out how to get the name of the window on the client from the RadWindow client object?  The get_id() method gets me the client id of the window which contains the name, but I need the name by itself.  I can see that the name is part of the json serialized Telerik.Web.UI.RadWindow object.

Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadWindow, {
"behaviors":37,"clientCallBackFunction":"OnClientClose","clientStateFieldID":"ctl00_ctlWindowManager_rwClientSearch_ClientState",
"formID":"aspnetForm","height":"550px","iconUrl":"","left":"","minimizeIconUrl":"","modal":true,"name":"rwClientSearch",
"navigateUrl":"/WindowHost.aspx?Control=012345","reloadOnShow":true,"showContentDuringLoad":false,"skin":"Gray","title":"Assign to report  version ","top":"","visibleStatusbar":false,"width":"550px"}, null, null, $get("ctl00_ctlWindowManager_rwClientSearch"));
});
Georgi Tunev
Telerik team
 answered on 04 Feb 2009
1 answer
81 views
Hi,

I have this problem with my RadGrid. One of the columns contains a template and therefore a FormTemplate is defined. A strange think happened as every row that has an alternate row style is now stretching over the grid edge. Has anyone seen this issue before?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 04 Feb 2009
1 answer
91 views
I would like to know if it is possible to have a specific column set to different types (controls) per row?

IE:  kinda like a property editor, one row chould have a checkbox, another a dropdown, another textbox etc?
Princy
Top achievements
Rank 2
 answered on 04 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?