Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
Hi,

I want to fire select index change event on selection of value from combo box but i want to fire that event when i am selecting same value from dropdown. Like i have 4 value in drop down and i select 2 value from drop down than the select index change fires but i want to fire select index change again on selection of 2.


Please reply as soon as possible.


Thanks
Manish
Ivana
Telerik team
 answered on 01 Mar 2012
1 answer
98 views
I'm using customValidator to validate the selected item of the ComboBox. This ComboBox has LoadonDemand enabled.  'validateCombo' code works fine when the selectedIndex is changed. After selecting an item, when a button on the same page is clicked validation doesnt work since there are no items in the ComboBox. How do I make it to work on button click event.

Appreciate your help!!

<telerik:RadComboBox runat="server" ID="rcbClients" Height="100px" EnableLoadOnDemand="true"
                                    ShowMoreResultsBox="true" EnableVirtualScrolling="true" AllowCustomText="false"
                                    EmptyMessage="Type lastname ...">
                                    <WebServiceSettings Path="Service1.svc" Method="LoadClients" />
                                </telerik:RadComboBox>
                                 
                                <asp:CustomValidator ID="cvClients" runat="server" ClientValidationFunction="validateCombo" SetFocusOnError="true"
                                    ErrorMessage="Please select a client from Dropdown" ControlToValidate = "rcbClients" >*
                                </asp:CustomValidator>

function validateCombo(source, args) {
    args.IsValid = false;
    var combo = $find(source.controltovalidate);
    var text = combo.get_text();
    var value = combo.get_value();
    if (text.length < 1) {
        args.IsValid = false;
    }
    else
    { var node = combo.findItemByText(text);
        if (node) {
             value = node.get_value();
 
 
            if (value.length > 0) {
                args.IsValid = true;
            }
        }
 
        else {
            args.IsValid = false;
        }
    }
}
 
Neelima
Top achievements
Rank 1
 answered on 01 Mar 2012
7 answers
84 views
I'm stumped. I have a vertical radmenu that expands out to the right. All works fine in most browsers, but when I try to view in ie7, the slide doesn't seem to have any colour applied to it. I've tried adding background-color:#fff !important to just about any where I can think but it still stays transparent.

The site in question is www.researchtopolicy.org.
 
Any assistance would be greatly appreciated.
Kate
Telerik team
 answered on 01 Mar 2012
5 answers
125 views
Hello,

I Want to change the back-image of the selectbutton
I searched for it on your forum but I can not fix it

I have radasynxupload on a dialog form

this is the style i use in the form

.ruBrowse

{

background-image: url(/Images/newbutton.gif);

background-position: 0 -46px !important;

width: 150px !important;

}

The width i working correct but the backgroundimage newbutton is not loaded

this is the Radasyncupload on my form:

 

<

 

telerik:RadAsyncUpload ID="AsyncUpload1" runat="server"

 

 

AllowedFileExtensions="jpeg,jpg,gif,png,bmp" MaxFileInputsCount="1"

 

 

OnClientFileUploaded="fileUploaded" OnClientValidationFailed="validationFailed"

 

 

OnFileUploaded="AsyncUpload1_FileUploaded" Width="273px" Height="16px">

 

 

 

<Localization Select="Kies diploma /certificaat" />

 

 

 

</telerik:RadAsyncUpload>

Please can anyone help me?

Mart

 

Peter Filipov
Telerik team
 answered on 01 Mar 2012
1 answer
169 views
I have a page with multiple controls. The first time the page loads, each control has to get data from different sources. Some of them will take some time to load. So, I want to show the page with placeholders and a busy icon that will be filled when the data is loaded in each control.

I found an example on the net: http://www.codeproject.com/Articles/23768/Load-and-Display-Page-Contents-Asynchronously-with 

However, I am wondering if telerik already has it in their library. I think I might have seen a demo somewhere. Please note that I am not looking for an update panel which loads everything on the server side and then updates the part on the client that has changed.

Any help or a sample will be appreciated.

Thanks
SK
Maria Ilieva
Telerik team
 answered on 01 Mar 2012
5 answers
288 views
Is is possible to specifiy a different skin for the radalert window than the others? I'd really like my radalert windows to stand out with a different color scheme that the rest of my radwindows.
M. R.
Top achievements
Rank 1
 answered on 01 Mar 2012
1 answer
64 views
Hi gurus,

I have a Master/Content project with an empty RadScriptManager and RadAjaxManager in the Master page.  I'm using the RadAjaxManagerProxy in the content.

On my content page I have 2 almost identical sets of controls (a search text box and a place to display the results).  You type something into one of the RadTextBoxes and when you hit Enter it runs off to our search engine, fetches some results and plops them nicely under the appropriate RadTextBox in a Label cotrol.  As I mentioned, I have 2 sets of these.  They both work but at the same time, i.e. they both get fired together.  So when I do a search for a Person, the Category event gets fired too.

I am setting the RadAjaxManager up programatically on the Content page (see below).

protected void Page_Load(object sender, EventArgs e)
        {
              
            // Ajax set up
            var manager = RadAjaxManager.GetCurrent(this);
              
            // Add Person
            manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager_SearchPerson);
            manager.AjaxSettings.AddAjaxSetting(manager, lblResultsPerson, RadAjaxLoadingPanel1);
  
            // Add Category
            manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager_SearchCategory);
            manager.AjaxSettings.AddAjaxSetting(manager, lblResultsCategory, RadAjaxLoadingPanel1);
  
        }

Here is the ASPX:

<tk:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"></tk:RadAjaxManagerProxy>
<tk:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Windows7" InitialDelayTime="200" />
  
<tk:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
  
        function SearchPerson(sender, eventArgs) {
            var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
            ajaxManager.ajaxRequest(sender.get_value());
        }
  
        function SearchCategory(sender, eventArgs) {
            var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
            ajaxManager.ajaxRequest(sender.get_value());
        }
    </script>
</tk:RadCodeBlock>
  
Current time: <asp:Label ID="lblTime" runat="server"></asp:Label>
<br /><br />
<h2>Person search</h2>
  
<tk:RadTextBox ID="txtSearchPerson" runat="server" width="250px" EmptyMessage="Search for a person..." ClientEvents-OnValueChanging="SearchPerson"></tk:RadTextBox>
      
<div class="searchResults">
    <asp:Label ID="lblResultsPerson" runat="server"></asp:Label>
    <asp:Label ID="lblTotalPerson" runat="server" CssClass="searchTotal"></asp:Label>
</div>
  
  
<br /><br />
<h2>Category search</h2>
  
<tk:RadTextBox ID="txtSearchCategory" runat="server" width="250px" EmptyMessage="Search for a category..." ClientEvents-OnValueChanging="SearchCategory"></tk:RadTextBox>
     
<div class="searchResults">
    <asp:Label ID="lblResultsCategory" runat="server"></asp:Label>
    <asp:Label ID="lblTotalCategory" runat="server" CssClass="searchTotal"></asp:Label>
</div>

I know it's probably doing what I'm telling it to do - i.e. run them both!  But that's not what I want - I only want e.g the Category search to fire when I fire off the SearchCategory function - and for that to leave the SearchPerson alone.  What am I missing here?

Many thanks in advance!
Maria Ilieva
Telerik team
 answered on 01 Mar 2012
1 answer
40 views

I'm a bit behind the curve on this. I've just stumbled across an archaic user who is still using IE7 and the sub menus are not visible for them.  I've read some posts which make me think it may be the IE7 stacking issue, but I can't seem to do anything with z-index to help.  My RadMenu already has a high z-index.  How do I set the z-index of the sub menus. 


CSS isn't my strong suit, so any assistance is appreciated.

Thanks.
Dave
Kate
Telerik team
 answered on 01 Mar 2012
2 answers
291 views
Hello,

I have a page that includes a RadFormDecorator set to "Vista" skin. However, when I open a RadAlert window the skin is not applied...
Please advise.

Regards,
M.R.
M. R.
Top achievements
Rank 1
 answered on 01 Mar 2012
1 answer
61 views
Hi,

I would like to  set the Http Handler as a datasource for RadScheduler, it it even possible.
If yes, what will be my settings?

 <telerik:RadScheduler ID="RadScheduler1" runat="server"   SelectedView="WeekView"
          OnClientAppointmentDoubleClick="OnAppointmentClick"
         OnClientAppointmentWebServiceInserting="OnClientAppointmentWebServiceInserting" >
         <WebServiceSettings Path="Scheduler.ashx" ResourcePopulationMode="ServerSide"   />
              <timelineview columnheaderdateformat="h:mm tt"  groupingdirection="Vertical" headerdateformat="MM/dd/yyyy h:mm tt"
                         numberofslots="21" slotduration="00:30:00" starttime="08:00:00" />
            
        </telerik:RadScheduler>
Thanks,
Prava
Plamen
Telerik team
 answered on 01 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?