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

Combobox customize showmore results

2 Answers 118 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Robert Koerse
Top achievements
Rank 1
Robert Koerse asked on 22 Mar 2010, 02:03 PM

how can i customize (language) the Showmore results
e.g. Items 1-10 out of 6783
this should be customized for other languages or through a template

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 22 Mar 2010, 05:18 PM
Hello Robert Koerse,

Manually you need to change the Message property of RadComboBox when using Load on Demand and ShowMoreResultsBox property is set to true.

Please take a look at this demo about Load On Demand Modes.

For RadComboBox2 is used a method in code-behind called GetStatusMessage:

private static string GetStatusMessage(int offset, int total)
      {
          if (total <= 0)
              return "No matches";
            
          return String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", offset, total);
      }
 
You see that the message is absolutely custom and you may change it as you like e.g. to whatever language you like.

Please let me know if this was helpful.

Sincerely yours,
Veronica Milcheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Robert Koerse
Top achievements
Rank 1
answered on 23 Mar 2010, 08:49 AM
Telerik,

Thank you for the quick response.

Sorry for the question. I didn't look very good.
I used combobox2 from the demo and the code was already in my project.
So the problem is solved.

Tags
ComboBox
Asked by
Robert Koerse
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Robert Koerse
Top achievements
Rank 1
Share this question
or