Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
210 views
Hello,

I am trying to validate a valid item is typed into one of my combo's with load on demand enabled and I am having a hard time with the javascript. I want to re-use a function for multiple combobox's.
        function ValidateComboUser(source, args)    
        {            
            var combo = $find(source.ControlToValidate.ClientID);   
            args.IsValid = ValidateCombo(combo);  
        }            
         
        function ValidateCombo(combo)  
        {  
           var isValid = false;    
           var text = combo.get_text();    
           var item = combo.findItemByText(text);    
             
           if (item)    
           {    
               isValid = true;    
           }   
             
           return isValid;  
        }  

Can someone please help me with a way to get the combo box being validated through the function params?

Thanks
Eyup
Telerik team
 answered on 17 Aug 2015
2 answers
230 views

we have two radgrid on one page
both the grids are having GridEditCommandColumn insert,Cancel,Update functionality
we have required field validators in both grids
but when we tried to insert in one field
it shows validators for both grid
how to make it different so that impact will not be there of one grid to another.

 

Eyup
Telerik team
 answered on 17 Aug 2015
1 answer
71 views

I'm using this http://www.telerik.com/forums/custom-advanced-form

 I copied the RadAjaxManager and Loading panel per the post. I have a JS refreshScheduler, I have a code behind ajaxrequest handler

when the advanced form closes the JS refreshScheduler fails: 
0x800a138f - JavaScript runtime error: Unable to get property 'ajaxRequest' of undefined or null reference

on    ajaxManager.ajaxRequest('RebindScheduler');

 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "RebindScheduler")
    {
        RadScheduler1.Rebind();
    }
}

 

 

    function refreshScheduler() {
        var ajaxManager = $find("RadAjaxManager1");
        ajaxManager.ajaxRequest('RebindScheduler');
    }
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>    
        <telerik:AjaxSetting AjaxControlID="RadScheduler1">
            <UpdatedControls>    
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1"
                    LoadingPanelID="RadAjaxLoadingPanel1" />    
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings>    
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
    Loading...
</telerik:RadAjaxLoadingPanel>

david
Top achievements
Rank 1
 answered on 15 Aug 2015
4 answers
171 views

Hi,

I'm new with Telerik.  I took a demo and modified it for my own use, as I was going along, the filters were working, now they are not.  I have custom and standard filters.  They do nothing but generate an error.  When running I get an error in VS2013, when I try to access one of the filters:

Error: Sys.WebForms.PageRequestManagerServerErrorException: ORA-00936: missing expression

 Obviously this is an oracle error.

 None of my filters are working and they all return a similar error

 Can someone provide some guidance on what to check for?

Thanks

​

Pavlina
Telerik team
 answered on 14 Aug 2015
2 answers
201 views

Hi everyone, I have a context menu that opens with Replace, Edit, and Delete Options. What I want to do is on the Delete click to delete that row and rebind the grid.

This seems insanely simple, but can't find the set up I have. Can anyone help?

Thank you!

Elena
Top achievements
Rank 1
 answered on 14 Aug 2015
3 answers
263 views
Hi:

How can I parametrize the radmenu so when I click an option, the menu closes after it immediatly?

At this moment when I click an option, and the mouse remains over the menu, the menu continues open, but I want it closes after it has been clicked.

Thanks.
Elena
Top achievements
Rank 1
 answered on 14 Aug 2015
1 answer
154 views

i have used a RadAsyncUpload in my Aspx page. It works fine but when i upload a file and then remove the file, the browse button also gets invisible.

below is my control being used

Please guide on the same.

Thanks in advance

 

<telerik:RadAsyncUpload Width="230px" runat="server" ID="rgEditUpload" OnClientFileUploaded="onClientFileUploaded"
MaxFileInputsCount="1"     AllowedFileExtensions="jpg,jpeg,png,gif,pdf" OnClientValidationFailed="OnClientValidationFailed"
OnClientFileUploadRemoved="onClientFileRemoved">
    <FileFilters>
        <telerik:FileFilter Description="Documents(pdf;tiff;tif)" />
    </FileFilters>
    <Localization Select="Browse" />
</telerik:RadAsyncUpload>

Dimitar
Telerik team
 answered on 14 Aug 2015
4 answers
148 views
Well, I left work last night and everything was fine. Came back and I started getting the "RadGridNamespace is not defined" error, and my data was exploded all over the screen. I didn't make any changes, and I even rolled back my code to a version we were using over a week ago, and the same thing is happening.

The grid works fine on all of our servers, and works for our other developers, just not me.

Any ideas?
Chip Johansen
Top achievements
Rank 1
 answered on 14 Aug 2015
16 answers
884 views
Hi all,

I have a control that inherits the Telerik.Web.UI.GridDropDownColumn like:

 
    [DefaultProperty("Value")] 
    [ToolboxData("<{0}:myGridDropDownColumn runat=server></{0}: myGridDropDownColumn>")] 
    public class myGridDropDownColumn : GridDropDownColumn 
    { ... }

I need to attach an event to fire up on Selected Value is changed. How can I accomplish this?

my control does not give me the OnColumnChange Event [url: http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.griddropdowncolumn_members.html] (am I missing something?)

and there is no Attribute propertie to attach a javascript call like:

myGridDropDownColumn myDrop = new myGridDropDownColumn(); 
myDrop.Attributes.Add("onchange", "alert('event fired!');");

My objective in this case is to create a dropDown that, when the selectedValue changes, it would populate the other DropDown in the same row: row[ x ].column[ 2 ], any idea is there is a tutorial about this technique... I can't find it anywhere around :(

Eyup
Telerik team
 answered on 14 Aug 2015
4 answers
111 views

I put a RadEditor inside a Formview, which is inside a RadAjaxPanel.  I use the following to load RTF:

         protected void Unnamed_DataBinding(object sender, EventArgs e)

        {
            var txt = sender as RadEditor;

            txt.LoadRtfContent(@"{\rtf1\ansi\deff0
{\colortbl;\red0\green0\blue0;\red255\green0\blue0;}
This line is the default color\line
\cf2
This line is red\line
\cf1
This line is the default color
}
");
        }

 The issue is the editor is displaying the text with HTML tags instead of formatted text.  I am wondering if this is an issue with the trial version (still waiting for my company to process the purchase) since it adds warning text to the content automatically.

Stanimir
Telerik team
 answered on 14 Aug 2015
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?