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

I am using version Q2 717 2013 of the ASP.NET for AJAX controls.

I'm using the RadDock.

I don't see a client event that I can assign a function to, for when the user clicks the expand / collapse button.  Is there one?

FYI:  I've implemented a custom close button, so I've also added the following line of code in code-behind, to add the expand / collapse button.

		dock.Commands.Add(New DockExpandCollapseCommand())

Again, my goal / question is:  I want to run some client-side code (NOT do a postback) after the user has expanded or collapsed a dock.  How can I do that?

Thanks,
Brent
Brent Hetland
Top achievements
Rank 1
 answered on 24 Sep 2013
2 answers
95 views
Hi,

I'm using 2013.2.717 of the ASP.NET for AJAX controls.

I'm using the RadDock control and I have implemented a custom DockCommand for Closing a Dock.

Q.  In my javascript function that runs when the user closes a Dock, how can I get the dock's UniqueName property?

The only thing I see that gets it is:  sender._uniqueName

While that works for now, it seems like since that is a "private field", Telerik could change it without notice and break my application...  So, using that line of code seems dangerous.

Isn't there a way "more supported way" to get the Dock object's UniqueName property from javascript?

Thanks,
Brent
Brent Hetland
Top achievements
Rank 1
 answered on 24 Sep 2013
1 answer
95 views
We are under telerik upgradation to the latest version available. On the way we faced an issue saying Radgrid.AsyncRedirect() is not in the new dll (getting "missing any reference" error). Does anyone know what would be the replacement for Radgrid.AsyncRedirect() method to achieve the same functionality in the latest telerik dll (telerik.web.ui)? kindly help. Thank you in advance.
Maria Ilieva
Telerik team
 answered on 24 Sep 2013
2 answers
135 views
Hi,
using combobox and want to stay at default text like select user type after page refresh and data save completed
 <telerik:RadComboBox ID="cmbusertype" runat="server" Width="280px" ExpandAnimation-Type="OutBounce"
                            Skin="WebBlue">
                            <DefaultItem Text="Please Select User Type" Value="-1" />
                        </telerik:RadComboBox>

Thanks
Swapnil
Top achievements
Rank 1
 answered on 24 Sep 2013
2 answers
66 views
I need to display the RadLoadingPanel for the Radgrid however I have a timer that every 3 seconds rebinds the grid. Is it possible to exclude the loading panel on certain events.
Maria Ilieva
Telerik team
 answered on 24 Sep 2013
6 answers
491 views
Hi,
I am using RadGrid which has 4 columns. column2 = GridTemplateColumn with ItemTemplate as textbox and column4 = GridTemplateColumn with ItemTemplate as checkbox.

I need to get the value of the textbox and do some calculation and assign the calculated value to column3 for that row.
I am trying to do it on client side and this is my .ascx code for onblur of the textbox :
function ConvertToUSD(index) {               
               var grid = $find("<%=AntiXss.JavaScriptEncode(rgdPOTypes.ClientID).Trim('\'')%>");
               var MasterTable = grid.get_masterTableView();
               var Row = MasterTable.get_dataItems()[index];                                
               var cell = MasterTable.getCellByColumnUniqueName(Row, "TextboxCurreny");              
               if (!cell) {
                       var nextcell = MasterTable.getCellByColumnUniqueName(Row, "InUSD");              
                       nextcell .InnerHTML = cell.InnerHTML * 50;
               }
           }

In the above code, the value of 'cell' is always coming as null.
file.ascx.cs
protected void rgdPOTypes_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;
                TextBox txtBox = (TextBox)item.FindControl("TextboxCurreny");
 
                txtBox.Attributes.Add("onblur", "ConvertToUSD('" + item.ItemIndex + "')");
             }
        }

Please help me understand what is going wrong in the code.

Thanks,
Preeti
Maria Ilieva
Telerik team
 answered on 24 Sep 2013
1 answer
205 views
Hi,

i have upgraded the teleric control library with the latest version.
Earlier i was using get_value() property to get the value from the rad numeric text box and it was working fine, now when i updated it this property(get_value) is not supporting to get the value from rad numeric textbox. 

i have written my code which i have used below.

function OnBlur() 

    var Input1 = $find("<%= RadNumericTextBox1.ClientID %>"); 

    var value1= Input1.get_value(); 

    var result = value1*2; 

    var Input3 = $find("<%= RadTextBox1.ClientID %>"); 

    Input3.set_value(result);    

function OnBlur1() 

    var Input2 = $find("<%= RadNumericTextBox2.ClientID %>"); 

    var value2= Input2.get_value(); 

    var result = value2*2; 

    var Input3 = $find("<%= RadTextBox1.ClientID %>"); 

    Input3.set_value(result); 



<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server"

        <ClientEvents OnBlur="OnBlur" /> 

</telerik:RadNumericTextBox> 

<telerik:RadNumericTextBox ID="RadNumericTextBox2" Runat="server"

        <ClientEvents OnBlur="OnBlur1" /> 

</telerik:RadNumericTextBox> 

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

</telerik:RadTextBox>


Can you please tell me which property will work with this so that i can get only value from the rad numeric textbox?

Kostadin
Telerik team
 answered on 24 Sep 2013
3 answers
127 views

Is it possible to set EmptyMessage in RadGrid1_ItemDataBound Edit Mode for a telerik:GridBoundColumn or GridDateTimeColumn?

Princy
Top achievements
Rank 2
 answered on 24 Sep 2013
1 answer
156 views
Hello,

I have RadCaptcha on my page with enabled "Refresh Captcha Image Functionality" but there is one thing if I type wrong captcha I receive error message that's correct then I click on 'Generate new image' and error message still visible but should not be visible because I generate new captcha Image. How can I hide error message when I click on Generate new image link?

Regards.
Princy
Top achievements
Rank 2
 answered on 24 Sep 2013
1 answer
103 views
I am using a raddatetimepicker. On clicking the time picker button, can I display all the time values in a horizontal fashion?
Thanks
Robert
Shinu
Top achievements
Rank 2
 answered on 24 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?