This is a migrated thread and some comments may be shown as answers.

RadComboBox, message to user

5 Answers 137 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Warnestam
Top achievements
Rank 1
Warnestam asked on 10 Jul 2008, 09:45 AM
Hi,

I would like to send a message to the user on the ItemsReqyested event. I'm using the "ShowMoreResults" functionality.
The problem is that I only want to show the text. Is it possible to disable the callback behaviour (when clicking on the "more results text")?

5 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 10 Jul 2008, 10:46 AM
Hello Warnestam,

Yes, you can subscribe to the OnClientItemsRequesting event and execute the following code:

function OnClientItemsRequesting(sender,e)
{
    if (sender.get_appendItems() == true)
    {
        e.set_cancel(true);
    }
}



Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Warnestam
Top achievements
Rank 1
answered on 10 Jul 2008, 10:57 AM
Thanks, will try it right away...
0
Warnestam
Top achievements
Rank 1
answered on 10 Jul 2008, 11:17 AM
Almost there,

My text shows up as before, and nothing happens when I click on it. But the text "select" shows up just before the message? I've tried to remove it in the css, without success. Thanks
0
Rosi
Telerik team
answered on 10 Jul 2008, 01:19 PM
Hello Warnestam,

Could you please open a support ticket and send us sample running project or a live url to test it locally? Thanks.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Warnestam
Top achievements
Rank 1
answered on 11 Jul 2008, 07:56 AM
I took another look in your sample for skinning a RadComboBox. I found that you moved the text, so I added the following code to my css;

 

.RadComboBox_CodabSearch .rcbArrowCell a  
{  
    position:relative;  
    outline:none;  
    line-height:15px;  
    overflow:hidden;  
    display:block;  
    width:15px;  
    height:15px;  
    text-decoration:none;  
    text-indent: -9999px;  
    font-size: 0;  

And it works! Thanks for the help.

Tags
ComboBox
Asked by
Warnestam
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Warnestam
Top achievements
Rank 1
Share this question
or