Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
Using the highlightedCssClass property on a dock zone is great.  However, I can't seem to find out how to set the css class when a dock is hovered over a forbidden zone, so I can highlight to indicate that the dock cannot go in that zone.

Any help?
Petio Petkov
Telerik team
 answered on 15 Mar 2010
1 answer
77 views
Using the highlightedCssClass property on a dock zone is great.  However, I can't seem to find out how to set the css class when a dock is hovered over a forbidden zone, so I can highlight to indicate that the dock cannot go in that zone.

Any help?
Petio Petkov
Telerik team
 answered on 15 Mar 2010
3 answers
204 views
Hi,

In a page a have combobox and a rad grid.

According to the selected value of combobox,
1-) I am making GridNumericColumn (say Col1) of my radgrid visible = false. (In NeedDataSource method -server side..-)
2-) I am making that GridNumericColumn (Col1) readonly as well. (In NeedDataSource or OnItemCommand method -again on the server side..-)

When I am inserting an item to grid, everything works fine.. (Since it is readonly and hidden, I will not be entering any data to that column.. ) So that column will be updated to database as NULL, which is fine..

But when I am editing the row I just entered, I am getting 'Object reference not set to an instance of an object.' exception..

If I remove the code which makes Col1 readonly, I am not getting this exception..  But I need that Col1 readonly, because I do not want user to enter any data to that column..

What should I do??

hll
Top achievements
Rank 1
 answered on 15 Mar 2010
1 answer
149 views
Scheduler appears to be fine in Chome except for the scrolling behavior. attached is the difference, how do i make chrome act like ie.
<telerik:RadScheduler runat="server" ID="rs" HoursPanelTimeFormat="h:mmtt" ShowAllDayRow="false"   
GroupBy="R" GroupingDirection="Horizontal" NumberOfHoveredRows="1" Height="100%" Width="100%" 
DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"   
DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" MinutesPerRow="5"   
OnClientTimeSlotContextMenu="ECMShow" OnClientAppointmentContextMenu="aptCMShow" 
OnClientAppointmentDeleting="AptDelete"   
OnClientAppointmentInserting="CancelEditing"  OnClientAppointmentEditing="CancelEditing" 
OverflowBehavior="Scroll" OnClientAppointmentClick="AptClick" 
CustomAttributeNames="F,T,CK,P" 
DisplayDeleteConfirmation="false" 
> 
<AdvancedForm Modal="true" /> 
<DayView UserSelectable="true" /> 
<MultiDayView UserSelectable="false" /> 
<WeekView UserSelectable="true" /> 
<MonthView UserSelectable="true" /> 
<TimelineView UserSelectable="false" /> 
<ResourceHeaderTemplate> 
    <%#Eval("Text")%> 
</ResourceHeaderTemplate> 
</telerik:RadScheduler> 
 
Kamen Bundev
Telerik team
 answered on 15 Mar 2010
2 answers
82 views
When I check  for new versions in "Upgrade Wizard" it show me the next error:
"Error retrieving latest version information."

Thanks

Javi
Erjan Gavalji
Telerik team
 answered on 15 Mar 2010
3 answers
106 views
Hi,

I'm trying out the visual style builder and am having some problems with the "Colorize" option. Some of the standard colors (e.g. #00ff00) in the color chooser work as I would expect (leaving the "background" color as a "white/light" color, with the new color being applied to the control elements) while others (e.g. #00cc99) result in a very dark-looking control. Also, all of my custom corporate colors I am trying to use generate very dark controls when using the "colorize" option, even if I use a very light color:

100% #006A72

75% #33878f

50% #71a8ae

25% #b0ced3

10% #ddeaec


Also, the "start over" option does not appear to reset the changes I've made as it looks like any changes that are made are stacked up on top of each other regardless of whether you click on the or not.

I'm using the Web20 skin as a template.

Can you please tell me how I can easily generate a nice skin using my custom coroprate colors using the style builder? Am I doing something wrong here?

Thanks..
Alex Gyoshev
Telerik team
 answered on 15 Mar 2010
3 answers
124 views
Hi;
In a RadGrid i had 3 TemplateColumn as below... I'm setting the values of Labels in TemplateColumns at Item_Databound function. For that reason the columns don't have FieldNames. When i try to activate the GroupBy property i can't do that due to FieldName's being empty. How can i solve this problem?

 

            <telerik:RadGrid ID="ctlNitelikGrid" runat="server" AllowCustomPaging="true" AllowPaging="true" 
                AllowSorting="true" Skin="Office2007" AllowAutomaticDeletes="True" AutoGenerateDeleteColumn="True" 
                OnItemDataBound="ctlNitelikGrid_ItemDataBound" ShowGroupPanel="False">  
                <MasterTableView AutoGenerateColumns="false">  
                    <GroupByExpressions> 
                        <telerik:GridGroupByExpression> 
                            <SelectFields> 
                                <telerik:GridGroupByField HeaderText="Sektör"/>  
                            </SelectFields> 
                        </telerik:GridGroupByExpression> 
                    </GroupByExpressions> 
                    <Columns> 
                        <telerik:GridTemplateColumn HeaderText="Sektör" UniqueName="Sektor">  
                            <ItemTemplate> 
                                <asp:Label ID="lblNitelikSektor" runat="server" CssClass="itemsLabel"></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn HeaderText="Alan" UniqueName="Alan">  
                            <ItemTemplate> 
                                <asp:Label ID="lblNitelikAlan" runat="server" CssClass="itemsLabel"></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn HeaderText="Nitelik" UniqueName="Nitelik">  
                            <ItemTemplate> 
                                <asp:Label ID="lblNitelikNitelik" runat="server" CssClass="itemsLabel"></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 

 

 


and the code for bound

 

protected void ctlNitelikGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)   
{  
Control ctl = e.Item.FindControl("lblNitelikSektor");   
Control ctl2 = e.Item.FindControl("lblNitelikAlan");   
Control ctl3 = e.Item.FindControl("lblNitelikNitelik");   
if (ctl != null && ctl2 != null && ctl3 != null)   
{  
Label label = (Label)ctl;   
Label label2 = (Label)ctl2;   
Label label3 = (Label)ctl3;   
object obj1 = new object();   
object obj2 = new object();   
object obj3 = DataBinder.GetPropertyValue(e.Item.DataItem, "PRM1");   
if (obj3 != null && !Convert.IsDBNull(obj3))   
{  
label3.Text = GetParameter(Convert.ToDecimal(obj3), "VAL3").ToString();  
obj2 = (object)GetParameter(Convert.ToDecimal(obj3), "U3");   
}  
if (obj2 != null && !Convert.IsDBNull(obj2))   
{  
 
label2.Text = GetParameter(Convert.ToDecimal(obj2), "VAL2").ToString();   
obj1 = (object)GetParameter(Convert.ToDecimal(obj2), "U2");   
}  
if (obj1 != null && !Convert.IsDBNull(obj1))   
label.Text = GetParameter(Convert.ToDecimal(obj1), "U1").ToString();   
}  
}  
 
Sebastian
Telerik team
 answered on 15 Mar 2010
4 answers
114 views
Hello
I want to change the CheckChildNodes property of the treeview in the client side in multiple situations when particular nodes are clicked. How can i do that?

Regards
NLV

NLV
Top achievements
Rank 1
 answered on 15 Mar 2010
9 answers
340 views
I am using 2 RadComboBox controls (Region & Country). The Country drop-down is populated dynamically when user selects a Region in the Items_Requested event. I need to create a RadTreeView control which will have a Country Name and list locations for each country. How could this be implemented? I am getting script not registered Javascript error.

Thanks in advance.
Simon
Telerik team
 answered on 15 Mar 2010
1 answer
100 views
Hi,
How to add a specific text at the bottom of a grid in a CommandItemTemplate from codebehind? 
In CommandItemTemplate I have: 'add', 'edi't and 'refresh' buttons and I want to display a specified next to refresh.

Thanks in advance.
Pavlina
Telerik team
 answered on 15 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?