Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
I am having following markup for radCombo

<telerik:RadComboBox ID="rcbNewCategory" runat="server" Width="250px" Height="100px" Skin="Office2007"
                   AllowCustomText="true" ShowToggleImage="true" ShowMoreResultsBox="True" DataTextField="CategoryName" DataValueField="ID"
                    EnableLoadOnDemand="true"
                      EnableVirtualScrolling="true" HighlightTemplatedItems="true"  
                     Visible='<%# FillCategory(DataBinder.Eval( Container, "DataItem.ID")) %>' >
                    <ItemTemplate>
                        <div>
                        <asp:UpdatePanel ID="pnl2" runat="server">
                        <ContentTemplate>
                        <div onclick="stopPropagation(event)" >
                            <asp:CheckBox runat="server" ID="chkCat" Checked="false" OnCheckedChanged="chkCat_Changed"
                            ToolTip='<%# DataBinder.Eval(Container,"DataItem.CategoryName") %>' AutoPostBack="true"/>
                            <asp:Label runat="server" ID="Label2" Text='<%# DataBinder.Eval(Container,"DataItem.CategoryName") %>'>                                   
                            </asp:Label>
                            </div>
                            </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </ItemTemplate>
                </telerik:RadComboBox>

It works fine. Even if i click inside checkbox, I can update the combobox Text with ";" seprated values.

But if i have to use ItemRequested event to show only 10 items at a time,
//OnItemsRequested="rcbNewCategory_ItemsRequested"
It fails on checkbox selection change event.
Reason:   ItemCount for combobox is always 0 at the server side.

Please can you tell me the quick solution. Do i am missing some property.
I was thinking to bind the control again at the page load. But how i will know the items that were bound before. Do i have to maintain status for it in viewstate or hidden field?
Dimitar Terziev
Telerik team
 answered on 16 Dec 2010
3 answers
982 views
Hi,
   im using

CommandItemDisplay

="TopAndBottom"

 option to allow automatic insertion of records in the grid. When i place this property "Add New Record" link is displayed in the top and bottom of the grid.
and in the

oninsertcommand

="RadGroupsGrid_InsertCommand"

i wrote the code as follows:

protected void RadGroupsGrid_InsertCommand(object source, GridCommandEventArgs e)

{

GridEditFormInsertItem insertItem = (GridEditFormInsertItem)e.Item;

string GroupName = (insertItem["Group_Name"].Controls[0] as TextBox).Text;

string GroupDesc = (insertItem["Group_desc"].Controls[0] as TextBox).Text;

SqlCommand cmdNewGroup = new SqlCommand();

cmdNewGroup.Connection = con;

con.Open();

cmdNewGroup.CommandType =

CommandType.StoredProcedure;

cmdNewGroup.CommandText =

"Groups_Insert";

cmdNewGroup.Parameters.AddWithValue(

"@Group_Name", GroupName);

cmdNewGroup.Parameters.AddWithValue(

"@Group_desc", GroupDesc);

cmdNewGroup.Parameters.AddWithValue(

"@Case_Id", 3);

cmdNewGroup.ExecuteNonQuery();

}

But when i click the "Add New Record" link the event is not gettign fired and the pop-up for inserting new record is not getting displayed.
Do we need to create the controls for the insert pop-up or will it generate automatically like Edit pop-up?
Can u please tell me how to open a pop-up to insert new record automatically.

Thank you,
sirisha

Shinu
Top achievements
Rank 2
 answered on 16 Dec 2010
3 answers
235 views
Hi,

I am using a telerik Rad grid in a user control page and i am using that in an aspx page .I enabled sorting.
But I am not able to apply ajax loding to that.
Can anybody explain the steps for using ajax ?

Thanks in advance!
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2010
1 answer
106 views
How to Sliver Light Chart in Rad Chart
Evgenia
Telerik team
 answered on 16 Dec 2010
1 answer
159 views
The following code works fine as javascript that is behind the aspx page, however if it is called from a standalone JS file it bombs out. What is the correct code to locate a datagrid on a page.


var masterTable = $find("<%=dgServices.ClientID %>").get_masterTableView();

Princy
Top achievements
Rank 2
 answered on 16 Dec 2010
1 answer
108 views
Hi Telerik Team

I have two issues at the moment.

1. Context Menu on image
I'd like to remove the "Image Editor Map" option and leave "Properties" there, is it possible?

2. External Dialog for Image Editor
I tried to hide few sections which I didn't need it. e.g. CSS Class, Image Src and Long Description. When I set display property none on CSS class, Image Src, it does perfectly and the most important thing is the dialog automatically re-sized, but if I set this property on the row of "Long Description", the dialog suddenly lose the auto re-size function.  I don't know whether there are some hidden functions which does this trick.

 
Rumen
Telerik team
 answered on 16 Dec 2010
1 answer
121 views
Hi There,

I'm trying to implement a RadMenu (horizontal menu with level1 group that expands down), this menu is populated by a SitemapDataSource. I've tried two approaches, one using just CSS and the other I looked into was to Add a Template at run time for the Level 1 items. I've had no success with either. In the case of adding a template at run time, I attempted both options recommended here but neither work. I assume this is because of when the data is bound to the menu using SiteMapDatasource. When the foreach runs, the RadMenu1.GetAllItems() has a count of 0.  In attempting to use the CSS only approach, I enabled rounded corners as my design requirement has a very similar look/feel to rounded corners, but I'm not able to make it to work as the implementaiton doesn't quite work and I'm unable to figure out how to change things like the height of the corer. 

So I'm looking for some help if anyone has been able to successfully implement a dropdown similar to the following:
I've attached a rough mockup that has the various graphics required numbered. They are as follows:
1. Top left corner
2. Top horizontal tiling piece (right now my menu is a set width but I may want this to be flexible)
3. Top right corner
4. Vertical tiling piece (this will always need to be flexible since menu items are dynamic and I'll never have control over how many)
5. Bottom left corner
6. Bottom horizontal tiling piece
7. Bottom right corner

As always any help would be greatly appreciated. I've probably spent way more time on this than necessary but I'm just not seeing the light at the end of the tunnel for the proper way to implement this type of drop down menu. It seems all examples that do any kind of templates or different looks with the menu have static and declarative menu data and not dynamic. If it's of any help, this menu is part of a Sitefinity implementation.

Thanks again!
Phill
Kamen Bundev
Telerik team
 answered on 16 Dec 2010
1 answer
85 views
How can I set No animation for the calendar popping up in the RadDatePicker?

I only see Slide and Fade...
Pavel
Telerik team
 answered on 16 Dec 2010
1 answer
244 views
Hi,

I just downloaded RadControls for asp.net and installed them but non of the controls are turning up in the toolbar on visual web developer 2010 express.

I've seen contradictory information, some places say it is supported some say it isnt, on the bottom of this page :
http://www.telerik.com/products/aspnet-ajax/getting-started/system-requirements.aspx

it says Microsoft Visual Web Developer 2010 (i dont know if that means the express version though) is supported and it has a link to visual studio 2010 express page on microsoft's site.

Can someone please clarify.
Georgi Tunev
Telerik team
 answered on 16 Dec 2010
1 answer
124 views
Hello,

The RadComboBox has a collection of combo boxes created on the page in JavaScript accessible via: $T.RadComboBox.ComboBoxes

Is there something like this for the RadTabStrip control?  I'm using 2010 Q2, but could upgrade to Q3.

Thanks.
Yana
Telerik team
 answered on 16 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?