Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
69 views
Now I got a problem that I didn't know how to change another page's control property.
I tried below, but it didn't work.

Label label = (Label)Page.FindControl("chkSpecial"); // I want to change a  label control's Enabled propety,but this control is 
lable.Enabled = true;                                                   //  in another page,I don't know how to find the control in another page.

Thank your kind help!
liu qingshui
Top achievements
Rank 1
 asked on 04 Mar 2010
5 answers
183 views
Hello,

I have a pie chart where sometimes several values it contains are so small will cause the labels to overlap.  I have tried using the IntelligentLabels, but this does not work out very well in most instances.  What I would like to do is hide the labels of those items that are below a certain percentage.  I am having problems trying to figure out how I would go about that.  Does anyone have an samples of how I can hide the label of an item when it is below 2%.  I assume this is the the ItemDataBound event of the chart, but some of the sample I have tried have not really worked yet.

Thanks,
Ron
Ron
Top achievements
Rank 2
 answered on 03 Mar 2010
1 answer
120 views
Hello,

Is there a way I can prevent the hover CSS from applying to the links in the sitemappath?

Thanks,
Ron
Ron
Top achievements
Rank 2
 answered on 03 Mar 2010
5 answers
379 views

Folks,

Environment: RadControls for ASP.NET AJAX Q3 2009 / VS 2008 SP1/IE7/WINXP SP 2. 

I have a simple grid with 3 columns. I would like to remove the vertical line after the GridEditCommandColumn  (UniqueName="EditCommandColumn") and right align that column to next column (GridBoundColumn, UniqueName="ProductName") in this example.  


Possible to make just 1 space between UniqueName="EditCommandColumn" and UniqueName="ProductName"?


Below is my RadGrid and attached is the Print screen from the browser.


Thanks

GC_0620

<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True" Skin = "Office2007" 
AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" AllowPaging="True" 
AutoGenerateColumns="False" DataSourceID="SessionDataSource1" OnItemUpdated="RadGrid1_ItemUpdated" 
OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted" OnDataBound="RadGrid1_DataBound">  
<PagerStyle Mode="NextPrevAndNumeric" /> 
<MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="ProductID" 
DataSourceID="SessionDataSource1" HorizontalAlign="NotSet" AutoGenerateColumns="False">  
<Columns> 
 
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">  
<ItemStyle CssClass="MyImageButton" /> 
</telerik:GridEditCommandColumn> 
 
<telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" 
UniqueName="ProductName" ColumnEditorID="GridTextBoxColumnEditor1">  
</telerik:GridBoundColumn> 
<telerik:GridDropDownColumn DataField="CategoryID" DataSourceID="SqlDataSource1" 
HeaderText="Category" ListTextField="CategoryName" ListValueField="CategoryID" 
UniqueName="CategoryID" ColumnEditorID="GridDropDownColumnEditor1">  
</telerik:GridDropDownColumn> 
 
</Columns> 
<EditFormSettings ColumnNumber="2" CaptionDataField="ProductName" CaptionFormatString="Edit properties of Product {0}">  
<FormTableItemStyle Wrap="False"></FormTableItemStyle> 
<FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle> 
<FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" 
Width="100%" /> 
<FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> 
<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> 
<EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record" 
UniqueName="EditCommandColumn1" CancelText="Cancel edit">  
</EditColumn> 
<FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle> 
</EditFormSettings> 
</MasterTableView> 
<ClientSettings> 
<ClientEvents OnRowDblClick="RowDblClick" /> 
</ClientSettings> 
</telerik:RadGrid> 
 

 

                

 

 

 

 

 

gc_0620
Top achievements
Rank 1
 answered on 03 Mar 2010
3 answers
113 views
Hello there,

I have a tree view with MultipleSelect set to "true". When I drop multiple nodes on to another tree, they are getting dropped in the order I selected the nodes, how can i have these dropped in the same order as they appear in the source tree instead of in the order in which they are selected?

Thank you,
Phani
Phani Alla
Top achievements
Rank 1
 answered on 03 Mar 2010
7 answers
213 views

I'm using FileExplorer control for file upload. I should perform some specific file checks on server-side and alarm user. How I can do it?

Atlas
Top achievements
Rank 1
 answered on 03 Mar 2010
1 answer
149 views
Hi,

I have a link button inside the RadAjaxPanel and a formview on my page.

On click of link button inside the RadAjaxPanel, the form view mode needs to be changed to Insert Mode, which is not happening right now.

Help me with this as i am struggling with this since last few days.

Thanks.
robertw102
Top achievements
Rank 1
 answered on 03 Mar 2010
8 answers
125 views
Hi,$0I was using RadControls 'Prometheus' for ASPNET Q3 2007. Today I installed RadControls for ASPNET AJAX Q2 2008 and when I am trying to use this in my application.It is showing errors. That is I removed the old Telerik.Web.UI dll and refer the new dll.But when I build the application, the version of dll can be seen as the old one itself.I had done the steps which is defined in KB regarding upgrading to new version.Removed all refernces caches etc. Can anyone help me to sort out this issue?$0$0$0$0$0Regards,$0$0Jincy$0
dean.carrefour
Top achievements
Rank 1
 answered on 03 Mar 2010
11 answers
730 views

Hello Telerik, 

I have problem when I try to assign GridCheckbox column with Number datatype column (real value 0 and 1 in datasource table). I have saw Exception in Internal method GridCheckBoxColumn.OnDataBindColumn. Is it possible to work with number field as boolean in GridCheckBoxColumn.

Bob Smith
Top achievements
Rank 1
 answered on 03 Mar 2010
1 answer
181 views
As an exercise to help me become more familiar with RadGrid and LINQ as well as master/detail pages, I am building an application which will help me to track a gear list for participants in a backpacking trip.  Hikers are required to obtain all of the items on the gear list.  I wish to create a page with a list of hikers in one grid and a list of gear items in another.  When the user clicks on the name of a hiker in one grid, the other grid will display a full list of gear items, each with a checkbox to indicate whether or not the item has been obtained by the selected hiker.  The user can check or uncheck items as needed.

I have created a simple DB which is depicted in the attached image.  I have also created a VS2008 web application which includes a DBML for the LINQ to SQL entities.  As this is an personal exercise, I have complete control of the DB and application code, so no options are off the table.

My particular question involves presenting the data to the user and recording their input (checking/unchecking gear items.)  As you can see from the diagram, I have tables for Person, Gear, and PersonGear.  Person contains a master list of hikers, Gear contains a master gear list, and PersonGear is a link table which holds a record for each piece of gear a person has obtained. 

How can I most efficiently present the gear records for a hiker and allow the user to check and uncheck boxes in a detail grid?  Will I have to bind the gear grid to the Gear table, include a checkbox column, then iterate through the records and set the checkbox value based on the presence or absence of a record in the PersonGear table, or is there a more straightforward approach that I'm missing?

Thanks in advance for your help.
Veli
Telerik team
 answered on 03 Mar 2010
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?