Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
We have telerik license of version 2009.3.1314.35.

At one page, we have used radcombobox with ondemand rendering as below,

<telerik:RadComboBox ID="ddlEmployee" runat="server" Width="250px" Height="100px"
 EmptyMessage="Select employee " EnableLoadOnDemand="True" EnableVirtualScrolling="true"
OnItemsRequested="RadComboBox1_ItemsRequested" DataTextField="Name" DataValueField="EmpNo"
Skin="WindowsXP" OffsetX="2" AllowCustomText="True" EnableEmbeddedSkins="False"
EnableAjaxSkinRendering="False" EnableEmbeddedBaseStylesheet="False" EnableItemCaching="True"
ShowMoreResultsBox="True">
</telerik:RadComboBox>


My requirement is to enable on demand functionality for employee list. The objective is, at page load I should be able to set selectedvalue item to employee combbox and also to achieve on demand functionality in it

The above scenario works fine if I dont set selectedvalue item to combobox in page load.

My observation while debugging.
The problem with RadCombobox  is that if we bind the RadCombobox on page load, and try to click in combobox text area RadComboBox1_ItemsRequested is not get fired. However, if start writing something in RadCombobox text area RadComboBox1_ItemsRequested is get fired.

Please help us to achieve this functionality in combobox.

Thanks in advance.
Ivana
Telerik team
 answered on 01 Mar 2012
2 answers
101 views
I need to perform a postback on drag selection.  I currently use

OnMouseUp="GridMouseUp(this, event)" on the RadGrid element to call

function GridMouseUp(sender, e) {
    setTimeout(function () {
        var grid = $find(window.gridId);
        if (grid != null && grid.get_masterTableView().get_selectedItems().length > 0) {
            __doPostBack(window.gridUniqueId);
        }
    }, 0);
}

This works for the drag select case but also does postbacks when clicking on the filter textboxes which I do not want.  Is there any way in client code to detect OnMouseUp of a Drag select action?
David Cowan
Top achievements
Rank 1
 answered on 01 Mar 2012
0 answers
125 views
We want to use all the great AJAX features on the grid for sorting, paging, grouping, etc.  Let's assume a user opens a page in our application with an AJAX-enabled grid and sorts on several columns and pages within the dataset several pages.  Now the user double clicks a record which results in a navigation to a different page for more detail.  Now, the user wants to go back to the grid so they click the Back button in the browser.  I want to make sure my user returns back to page 2 with the appropriate sorting criteria applied.  Does the Telerik grid place entries in the browser history that record the sequence of events (sorting and paging) prior to drilling down to the different page?    Is this sort of functionality built-in to the grid so we don't have to worry about maintaining some session state on the server?
David
Top achievements
Rank 2
 asked on 01 Mar 2012
3 answers
183 views
Hello,

I'm trying to use the OrgChart for a tournament table layout. This means that you go from many items to fewer items. I know it is (for now) not yet supported to set the orientation from left to right but i can work around this and use top to bottom. To allow 2 items to melt into 1, i use grouping. This only works for one level though. as soon as the top level is halved, i need the second level to group 2 items together.
So i go from 8 items to 4items to 2 items to 1. This is in my opinion not possible with the current OrgChart.

multiple parents would be a great feature and would solve my problem.

Do you have any idea on when this feature might be introduced? Or do you have a workaround using another control or multiple groupings?

Thank you,

Phill
Peter Filipov
Telerik team
 answered on 01 Mar 2012
1 answer
153 views
Hi,

I am trying to solve a very simple thing but somehow not able to get it working. 

I have a RadComboBox and radtreeview as one of its items. Now, I want to enable user to select only the leaf node. I have marked "Postback" attribute to false if the node is not leaf. so it solves the purpose of firing an event. 

Now , what is happening is, when user clicks parent node, it expands the node but then disappears. so user again have to click the combo box to select. 

Is there anyway i can disable the disappearing of radtreeview in combo box ? 

I have attached some screenshot and my code. I want my dropdown list to look like Pic-2 when i click the parent node. Currently it looks like Pic-1 after i click the parent node. 

Code : OnClientNodeClicking

 var node = eventArgs.get_node();
    if (node.get_level() != 2) {
        node.expand();
return; }

Please help.
Plamen
Telerik team
 answered on 01 Mar 2012
1 answer
201 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
128 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
108 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
161 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
197 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?