Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
246 views
by default in chart, yaxis are on left hand side.
what setting needs to make it on right hand side vs left hand side ?
Preet
Top achievements
Rank 1
 answered on 08 Mar 2010
3 answers
107 views
Hi all

Short VB code needed;

I have a grid with edit and add new record enabled, and by using a template for EditFormType i built my own input form.
the problem is that i need an insert / update button so:

+  when the user click edit,  the text on the button shows Update and when the user click Insert new record the button shows up as Insert.

Thanks

grand lorie
Top achievements
Rank 1
 answered on 08 Mar 2010
5 answers
139 views
When a grid contains a GridDropDownColumn to display text linked to a value of a field, the Group feature only shows the value of the field and not the related text.  The documentation says that showing the value of the field is the default and additional comments on the forum suggest using GroupByExpression to permit showing the text field.  However, I can not get this to work.  I am using two EntityDataSources, one for the grid datasource and a second to host the dropdown values.  I would like to implement a solution but if the current RadGrid can already pull the text from the second datasource to show in the grid, it should be automatically possible to show the same text when using the Group function.

Any suggestions are welcome.
Tsvetoslav
Telerik team
 answered on 08 Mar 2010
1 answer
150 views
I am using Radslider as a custom scroll bar , I have set of Items  , the number of items appear is dynamic..I used to get scroll bar when number of items > 2 . after using RadSlider to customize scroll bar, slider is appearing always , i.e. independent of items count. please help me in resolving this issue. thanks in advance.
Tsvetie
Telerik team
 answered on 08 Mar 2010
1 answer
117 views
hi,
i really love all functionality of RAD Dock but one big annoying thing is it is table based rendering, and for me and my client this is really big drawback if not deal breaker, because as you know if i have like 10 Docks how many tables this means ? beside it is seriously not following new web design pattern, tables should be for data so is there a way to get rid of tables and use Divs ?

thanks in advanced.
Pero
Telerik team
 answered on 08 Mar 2010
1 answer
102 views
Hi...

I have a RadGrid where i disable (e.Item.Enabled = false;) on ItemDataBound depending on some condition.

The grid has a client select column with a checkbox which, on databound, is disabled based on the same condition described above. 
CheckBox chkbx = (CheckBox)item["SelectCol"].Controls[0];
chkbx.Enabled = false;

All of this functionality works fine and is rendered correctly in the browser.  

However. my grid allows the user to click anywhere in the row to select the item client side.

The problem is that even the rows that are set as disabled on the ItemDataBound event are selectable and the checkboxes also get marked with a tick.

Surely setting the e.Item.Enabled = false; should not even allow selection on the client?

Any help with work arounds will be very useful.
Yavor
Telerik team
 answered on 08 Mar 2010
1 answer
156 views
Hi there.

I have a tree view where the basic heirarchy is such:

Location
    Company
        Employee

The value for each of these nodes is a numeric id. My issue is that the Node values can be the same for the nodes at different levels of the tree. For example, the node value for Location X could be 23 AND the Node value for Employee 127 could be 23.

So, my problem is that the Find methods (FindByValue in this case) doesn't always find the correct node. I did add and Attribute to each node that defines the node level as defined by my below enum:

 

public enum ReportTreeNodeType

 

 

{

Location,

Company,

Employee

}



So, what I really need do do is find by both a value and an attribute. Ideas on how to best solve this issue without iterating through each node?

Thanks, Mike

Correction - I am saving the Node type in the DataItem of the node and not the Attribute.
Peter
Telerik team
 answered on 08 Mar 2010
1 answer
175 views
I need to set the visibility of the tr from the grdProductGroup_ItemDataBound when the record is selected for editing.
Currently,
in my grdPG_ItemDataBound for Edit Item

if 
(((PG)item.DataItem).ProductGroupType == "mobile")   
{  
HtmlTableRow tr = (HtmlTableRow)item.FindControl("trMobile");   
tr.Style.Clear();  
tr.Style.Add(
HtmlTextWriterStyle.Display, "");   
} 

& in my aspx page

 

<tr> 
<td align="right">  
<asp:Label ID="Label3" runat="server" CssClass="label"   
Text=" Product Type:"></asp:Label><span   
class="requiredFieldIndicator">*</span> 
</td> 
<td align="left" colspan="3">  
<telerik:RadComboBox ID="cboPG" runat="server" Skin="Vista" MarkFirstMatch="True" 
AppendDataBoundItems="true" AutoPostBack="false"   
OnClientSelectedIndexChanged = "ShowHidetrMobile" Font-Names="Verdana" 
Font-Size="8" >   
</telerik:RadComboBox>   
</td>   
</tr> 
<tr id="trMobile" style="display:none" runat="server" > 
<td align="right">  
<asp:Label ID="Label1" runat="server" CssClass="label"   
Text="Mobile Company:"></asp:Label><span   
class="requiredFieldIndicator">*</span> 
</td> 
<td align="left" colspan="3">  
<telerik:RadComboBox ID="cboMobileCompany" runat="server" Skin="Vista" MarkFirstMatch="True" 
AppendDataBoundItems="true" AutoPostBack="false"   
Font-Names="Verdana" 
Font-Size="8" >   
</telerik:RadComboBox>   
</td>   
</tr>   
 
all fine till here...
But how do I get the client Id of the TR in the javascript
Here is my Javascript .. any cleaner way to do it ?
function ShowHidetrMobile(obj,args)  
{  
if (obj._text=="Mobile")  
    $get("ctl00_ContentPlaceHolder1_grdProductGroup_ctl00_ctl05_trMobile").style.display="";  //Although i dont like this way
else      
    $get("ctl00_ContentPlaceHolder1_grdProductGroup_ctl00_ctl05_trMobile").style.display="none";  
} 

 

all fine till here...But how do I get the client Id of the TR in the javascriptHere is my Javascript .. any cleaner way to do it ?

 

 

 

 

 

Radoslav
Telerik team
 answered on 08 Mar 2010
2 answers
122 views
Hi,

I have the following requirements:

1. Need to display the default "---Select---" item. (this is being set using the empty message property)
2. this field is required.

So in order to use the empty message property, I need to set the "Allow custom text" = true property.
But in this case, the user is allowed to type in any arbit value into the combobox and bypass the required field validation.

Please let me know how to do go about achieving this?

Thanks

Veronica
Telerik team
 answered on 08 Mar 2010
1 answer
124 views
Hello,

I want to populate RadGrid using Client-Side Binding and a WCF Service.
I saw in your example that RadGrid have GetBindingData method to generate a query from Linq DataContext.
Can I use the same method with Entity Framework?

Best regards,

Henrique
Nikolay Rusev
Telerik team
 answered on 08 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?