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

Inside my grid CommandItemTemplate i am using radtextbox.

In my radtextbox OnBlur even i am checking whether my textbox value is null or not if null i am assign the hidden field value as null using jquery but checking null value is not working. below is my code can anyone he me on this.


 function validateprodno(sender, args) {
            var grid = $find("<%=grdInbound.ClientID %>");
            var txt = $telerik.findControl(grid.get_element(), "txtOrdNumGrid");
            if (txt.get_value() == "") {
                document.getElementById("<%= hidd_prodcode.ClientID %>").value = "";       
            }
        }


Regards,
Nithya
Nithya Rani
Top achievements
Rank 1
 answered on 05 Apr 2013
2 answers
193 views
Hi Telerik,

Please help me how to add (different) image with all the X-axis labels in RAD HTML5 chart.

Thanks in Advance!
-Alex
Alex
Top achievements
Rank 1
 answered on 05 Apr 2013
1 answer
268 views
Hi,

My shopping cart check out page contains a RadCombobox with few items and there is a RadTextBox with a label given declaratively. For one particular item selected from the RadCombobox, I want to change the textbox label to another Text. How can I do this in JavaScript?

Karl
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
1 answer
102 views
Hi,

There is a RadMenu on top of my page. Based on the selected menu, I want to populate another RadMenu. Please help.

Thanks in advance
Joseph.
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
0 answers
60 views
Hi,

I am using two RadComboBox in SharePoint environment inside update panel. The control is inside a user control web part. The problem is when we switch to ie 7, these combo boxes disappear randomly. I tried to apply position:relative to its parent div but this does not solve the issue. Please help.

Thanks and regards.
Rujoota
Top achievements
Rank 1
 asked on 05 Apr 2013
1 answer
219 views
I have a set of RadListBox es used to select categories. I want to validate that the transfer destination has items. I can get this to work but not when the control to validate is the RadListBox. Seems like I have to validate a text box to get  the Validator to fire client side. If the text box is not changed or is valid then the RadListBox does not get validated until the server side (which is better than never). Is it possible to get the Validator to fire another time even if it is just on the submit button? Here is the code:

Available Sub Categories<br />
<telerik:RadListBox ID="rlbAvailableSubcategories" runat="server" Height="200px"
    Width="200px" AllowTransfer="true" TransferToID="rlbMappedSubcategories" TransferMode="Copy"
    ButtonSettings-ShowTransferAll="false" SelectionMode="Multiple" AllowDelete="false" AllowTransferOnDoubleClick="True" ButtonSettings-TransferButtons="TransferFrom">
</telerik:RadListBox>
Mapped<br />
<telerik:RadListBox ID="rlbMappedSubcategories" runat="server" AllowTransferDuplicates="false"
    Height="200px" Width="200px" AllowDelete="true">
</telerik:RadListBox>
<asp:CustomValidator ID="ValidateMappedSubcategories" EnableClientScript="True" runat="server" ErrorMessage="You must add at least 1 category"
    ClientValidationFunction="rlbMappedSubcategoriesHasItems" ControlToValidate="txtAddLongDesc" ValidateEmptyText="True" OnServerValidate="rlbMappedSubcategoriesHasItems_Validate" Display="Dynamic"></asp:CustomValidator>
 
<script type="text/javascript">
    function rlbMappedSubcategoriesHasItems(source, args) {
        var list = $find("<%= rlbMappedSubcategories.ClientID %>");
        args.IsValid = list.get_items().get_count() > 0;
    }
</script>
Bozhidar
Telerik team
 answered on 05 Apr 2013
1 answer
111 views
Hi,

In certain websites I have seen the Menu is rendered in two or three columns. How to do the same with RadMenu? I want to make the RadMenu displayed in two columns so as to save space.

Thanks in advance
Joseph
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
1 answer
168 views
Hi

Please check the attachment. I believe its a text box with two arrows to increase and decrease the content value. How to create such a text box?

Thank you,
Saravanan KS
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
6 answers
136 views
H, guys

I have this nice piece of code that ensures that when the grid is paged it will jump back to the top of the grid. Useful for when the user is at the bottom of the grid.

<script type="text/javascript" language="javascript">
    // Catches events fired by the RadGrid (paging) and jumps page to the top  
    var postbackElement;
    Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
    Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded);
    function beginRequest(sender, args) {
        postbackElement = args.get_postBackElement();
    }
    function pageLoaded(sender, args) {
        if (typeof (postbackElement) === "undefined") {
            return;
        }
        // Uses the MasterTable ClientID 
        if ((postbackElement.id) === "ctl00_CphJam_ctl00_RadGrid1_ctl00") {
            window.scrollTo(0, 160);
        }
    
</script>

However, it only works when a page 'number' is clicked - it does not work when any of the next, previous, first or last image buttons are clicked.

Does anybody know please?

Cheers,
Jon
Jon
Top achievements
Rank 1
 answered on 05 Apr 2013
1 answer
82 views
Hi!

I have fowlling insert command

   void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
        {
........
 var result = blala.ValidateAndSave(...);
 
 if (result.ResultCode == ValidationResultCode.Ok)
                {
                    AddMessage("The data were successfully validated and Saved!");
                    NewAllEntriesToAccount();
                }
                else
                {
                    AddMessage("Please check the data. The following errors were found: ");
                            AddErrorList(RadGrid1.Columns[meldung.SpaltenIndex].UniqueName);
                }

If the valditaion with errors, i want to change the border color of the field in the Grid Editor red. In which fields the errors are known to me.
I have tried to do this in the RadGrid1_ItemCreated event, but the event fires before the InsetCommand:

GridEditableItem item = (GridEditableItem)e.Item;
                      TextBox combo = (TextBox)item[itemm.ItemArray[0].ToString().Replace(" ", "")].Controls[0];
                      combo.BackColor = GetColor((ClArt)itemm.ItemArray[2]);
 
                      if (IsInErrorList(itemm.ItemArray[0].ToString().Replace(" ", "")))
                      {
                          combo.BorderStyle = BorderStyle.Solid;
                          combo.BorderWidth = 2;
                          combo.BorderColor = System.Drawing.Color.Red;
                      }


Have anyone a idea, how i can do this ?

Thank you very much

Eyup
Telerik team
 answered on 05 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?