Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
I am using the LoadOnDemand Combo example you provided:

 

<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" Height="150px"

 

 

 

EmptyMessage="Select a Company" EnableLoadOnDemand="True" ShowMoreResultsBox="true"

 

 

 

EnableVirtualScrolling="true" OnItemsRequested="RadComboBox1_ItemsRequested">

 

 

 

</telerik:RadComboBox>

 

 


 

protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

 

{

 

 

DataTable data = GetData(e.Text);

 

 

 

int itemOffset = e.NumberOfItems;

 

 

 

int endOffset = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count);

 

e.EndOfItems = endOffset == data.Rows.Count;

 

 

 

for (int i = itemOffset; i < endOffset; i++)

 

{

RadComboBox1.Items.Add(

 

new RadComboBoxItem(data.Rows[i]["CompanyName"].ToString(), data.Rows[i]["CompanyName"].ToString()));

 

}

 

e.Message = GetStatusMessage(endOffset, data.Rows.Count);

}

 


This combobox is going to appear on an edit page, and I need to set the default selected value when the page loads. How do I do that?

My problem is very similar to this: http://www.telerik.com/community/forums/aspnet-ajax/combobox/selectedvalue-and-loadondemand.aspx

The control is in a FormView, but the control is attempting to bind when the page loads and the RadComboBox1_ItemsRequested event has not fired.  If I am only pulling back a subset of records, how does it no to get the item that matches the existing value?
Veselin Vasilev
Telerik team
 answered on 21 Jul 2009
1 answer
120 views
Hello

Please can you advise me how you add extra information to a pdf file and an excel file when you export a grid.

I have seen that i can add some custom information in the CommandItemTemplate but I cannot find any real information about how i populate the controls etc that I put in the template.

The best that i have been able to see is something like this in the page pre render event

 Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender  
        Dim l As Label = RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)(0).FindControl("lblSomeLabel")  
        l.Text = "some text" 
    End Sub 

However I do not know if this is the best/efficient way of doing this.

Thanks
Daniel
Telerik team
 answered on 21 Jul 2009
2 answers
66 views
Greetings,

I have been trying to solve a Telerik reference problem now too long.  Hoping to be done this once and forever.

Recently we installed the latest AJAX controls (RadControls for ASP.NET AJAX Q2 2009).  Since then, the developers sharing this project through Visual SourceSafe have not been able to get the controls to render.  This would appear to be a simple fix by adding the two references:

Telerik.Web.Design.dll
Telerik.Web.UI.dll

... but it hasn't been that simple.  Two out of three developers will have no problem and then a 3rd will not be able to get the controls to render in design mode.  Resetting the dlls works sometimes and then other times it doesn't.  We used one working instance of the project on one developers machine to clean out SourceSafe (in case that was the problem).  Then the other developers downloaded the clean version only to their dismay.

Controls may render one minute and then the next time they open VS 2008, the controls don't render in design.

Are there any known VS 2008 IDE integration issues with Telerik?

Thanks
Atanas Korchev
Telerik team
 answered on 21 Jul 2009
1 answer
189 views
Hi
I have added a radmenu to my master page and applied the Forest skin to it and all works beautifully - except, I need to make a small change to the skin file to reflect my colour scheme. Unfortunately, using visual studio 2008 and the 3.6 communty edition download, despite being able to change the radmenu skin as a property in VS2008, I cannot find the source location to then make changes to either the .skin file or the CSS that I am asuming is behind it. I have searched  and searched but can't find it. Anyone any ideas how I might be able to either
a, modify the forest skin directly
b, use the forest skin and create my own custom skin.

I'm new to sitefinity and so far having excellent production with it.
many thanks

 
Ivan Dimitrov
Telerik team
 answered on 21 Jul 2009
1 answer
80 views
Hi,

I'm hoping someone can help me out with this as I still dont have an answer -
if I had the following grid of data

Project       Time    Value    Items
Red            2          3           5 
Red            2          3           5
Orange      4          10         15
Orange      4          10         15

I would want to see this when the Project field is grouped and the Time and Items fields are summed (Value is not calculated)

Project         Time   Value   Items
+Red             4            10
+Orange       8            30

Instead of

Project       Time    Value    Items
+Red,Time:4,Items:10
+Orange,Time:8,Items:30


You can see the layout I want is alot clearer than what the grid is giving me at the moment. 

Sebastian
Telerik team
 answered on 21 Jul 2009
1 answer
84 views

I have a strange situation. I run 2009 Q1, on XP-pro dev box with VS2008. I tried to run designer DLL from bin and from GAC and have the same result. The runtime is perfect but the designers crashed if I use not auto-generated columns. If I have my custom columns then change of any grid property via designer replaces the tag:     

<telerik:GridBoundColumn>    ( works fine)

With tag:

<Telerik.Web.UI.GridBoundColumn>  ( dose not work)

With designer error message that the GridColumnsCollection can't find the items of type Telerik.Web.UI.GridBoundColumn.

Would you please advise where this comes from?

The problem began when I converted my trail version into the fully licensed version.  I did follow all instruction how to do it, in fact I did it multiple times, including a complete uninstall all Telerik components and install the new licensed package.

Thank you.

Sebastian
Telerik team
 answered on 21 Jul 2009
1 answer
85 views
Is it possible to create radchart client-side using javascript??
Giuseppe
Telerik team
 answered on 21 Jul 2009
4 answers
491 views
Dear all,

I am new to asp.net from Java. May i know how can i get the row value (CustID) when selected the row in RadGrid to pass it to the stored procedure to perform tasks (update or delete) ?

Many thanks.

Regards,
Wilmos.
 
Princy
Top achievements
Rank 2
 answered on 21 Jul 2009
1 answer
105 views
Dear sir,
Can I created RadChart at client side.?
 
if yes then how ? please send me some code

thanks with regards
Giuseppe
Telerik team
 answered on 21 Jul 2009
1 answer
131 views
Hi

We are using RadEditor 5.3.2.0 in WSS website. For one of our requirement, we need to populate the RadEditor content from the DB. Once the user submit, the same has to be updated back to the DB.

I have gone through the help, "Using RadEditor in custom MOSS solutions" and created my own webpart. But the webpart is not displaying the RadEditor UI or the content that I have assigned to the Content property. But if i click on  modify webpart, I am getting all the RadEditor Properties.

Also there is no help available to save the content back to DB

Please can somebody help me to achive the same in RadEditor?

Thanks
Stanimir
Telerik team
 answered on 21 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?