Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
157 views
1) I'm succeeded to show Radchart as a template column in Radgrid and Series Orientation="Horizontal". here  I want to display time interval (half hour difference (0,0:30,1:00)) in X axis, for this, I followed your code snippet  chart.Series(0).Add Item(Date Time.Now.Hour Mod 30) and it is displaying from 0 to current time with interval 2 hours.
2)I dont want to display Y axis values.
The above one is stacked rad chart.

3) Based on the time value from database I need to change color on stacked bar at particular place with exact time value in X axis.

Could you please suggest me how to achieve it and would be appreciate if you provide some example

Evgenia
Telerik team
 answered on 18 Jan 2011
3 answers
276 views
Hello All,
I am using radscheduler to set the appointments. All functionality has been done and working fine for simple appointments. As I tried to set up the recurring appointment appointments are generated and gets displayed on the radscheduler but when the page is refreshed on the currents date occurence gets displayed. While all this functinality was going good in my demo project but in the live application its not working? I am unable to understand the problem. Here I am giving my database structure and rad scheduler description.

<
telerik:radscheduler id="RadScheduler1" runat="server" datadescriptionfield="Description"
    dataendfield="End" datakeyfield="AppointmentId" datarecurrencefield="RecurrenceRule"
    datarecurrenceparentkeyfield="RecurenceParentId" datasourceid="SDSAppointments"
    datastartfield="Start" datasubjectfield="Subject" enabledescriptionfield="True"
    customattributenames="FlightHours,GroundHours,Comments,IsInactive,IsDelivered,IsEdited,IsDeleted"
    enablecustomattributeediting="True" allowdelete="False" onclientformcreated="OnClientFormCreated"
    onappointmentinsert="RadScheduler1_AppointmentInsert" onappointmentupdate="RadScheduler1_AppointmentUpdate">
<ResourceTypes>
 <telerik:ResourceType DataSourceID="SDSStudents" ForeignKeyField="CustomerId" 
 KeyField="CustomerID" Name="Students" TextField="StudentName" />
 <telerik:ResourceType DataSourceID="SDSLessons" ForeignKeyField="LessonTypeId" 
  KeyField="CategoryID" Name="Lessons" TextField="Name" />
 </ResourceTypes>
 </telerik:radscheduler>
Appointment Table
AppointmentId int
Subject nvarchar(50)
Start datetime
[End] datetime
LessonTypeId int
InstructorId int
CustomerId int
RecurrenceRule nvarchar(1024)
RecurenceParentId int
Description nvarchar(MAX)
IsInactive tinyint
IsDelivered tinyint
IsEdited tinyint
IsDeleted tinyint
FlightHours decimal(18, 0)
GroundHours decimal(18, 0)
Comments nvarchar(MAX)
 I am unable to understand the error.

Please reply as soon as possible.

Thanks,
Roshani
Peter
Telerik team
 answered on 18 Jan 2011
1 answer
92 views

Hello, I am migrating a control from GridView to RadGrid. With GridView, I was able to extend the GridViewRow class:

Public Class GridViewSearchRow
Inherits GridViewRow
          
    ReadOnly Property SearchValueEntry As ISearchValueEntry
        Get
            Return FirstChildControl(Of ISearchValueEntry)()
        End Get
    End Property
  
    Public Sub New(…)
        MyBase.New(…)
    End Sub
  
End Class

In its containing grid (an extension of GridView), I was able to instantiate my custom row by overriding GridView’s CreateRow function:

Protected Overrides Function CreateRow(…)As GridViewRow
  
    If rowType = DataControlRowType.DataRow Then
        Return New GridViewSearchRow(…)
    Else
        Return MyBase.CreateRow(…)
    End If
  
End Function


In Telerik, I am able to extend the GridDataItem class:

Public Class RadSearchRow
Inherits GridDataItem
  
    ReadOnly Property SearchValueEntry As ISearchValueEntry 
        Get
            Return FirstChildControl(Of ISearchValueEntry)()
        End Get
    End Property
  
    Public Sub New(…)
        MyBase.New(…)
    End Sub
  
End Class

 

 

Is there a similar way to ensure that all objects in the .Items() collection are added as RadSearchRow? I’ve noticed that the RadGrid’s GridDataItems are created within the CreateChildControl() sub, but since CreateChildControl() isn’t a function (like GridView’s CreateRow) I’m not sure how to mimic it.

Thank you very much.

Maria Ilieva
Telerik team
 answered on 18 Jan 2011
5 answers
499 views
I am looking to change style for treeview which has office 2007, the matter is that I wanna change the expand/collapse button (the small + or - sign) to something triangle shape (as windows 7 skin), so how to do that?

and I want when I click to child root, the parent root should be highlighted in same effect as child...

he is how the changing should be (I have drawn then in photoshop):
Yana
Telerik team
 answered on 18 Jan 2011
1 answer
40 views
Hello all,

I am using IE8.

I have the following lyperlink in the editor:


I want to modify it using the LinkManager so the result will be as follows:


To do so, I selected the link and loaded the LinkManager. Then, I simply changed the URL to [http://www.someotherwebsite.com] and clicked OK (linkmanager1.jpg). Surprisingly, the markup still points to http://www.yahoo.com (linkmanager2.jpg).

This is working as I expect in IE7. Do you have any idea how can I fix this in IE8?  I am using Telerik version 2009.3.1314.35.

Thanks,
Rez

Rumen
Telerik team
 answered on 18 Jan 2011
1 answer
90 views
Hi,

I am planing to use RadEditor control for my project use, So initially I am evaluating online Rad-editor app from here:

http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

My basic requirement is make working app in all the browsers (IE, Firefox, Opera, Chrome, Safari) and dealing with adding custom controls to Editor, Image Manager, adding large range of tables, much more formatting, etc..

I found some of interesting thing while evaluating Rad-editor under FireFox v3.6.12 browser. Here are the few of issues I found in Firefox browser which are working great in IE8.
  1. I can't able to delete the table using 'delete' key from keyboard, but I can delete by right-click on table->table delete
  2. I am not able to set the absolute position to the Image/table/(any custom control) to change location of it.
  3. When I move mouse over the Image, mouse pointer image is not changing in Firefox as like IE.
  4. When I insert any Form Element in firefox, it is not selectable like in IE.
Please let me know about of your support on these issues once I use the Rad-editor?

Thanks,
Srinu Dhulipalla
Dobromir
Telerik team
 answered on 18 Jan 2011
3 answers
70 views
Can someone please direct me to extensive code example for RadTreeView with RadTabStrip.
I am using the RADControls version: v.2010.3.1215.40

thanks
A Iqbal
Yana
Telerik team
 answered on 18 Jan 2011
2 answers
81 views
I have noticed an issue with the Telerik editor in Google Chrome.  When I add an image, I can't select it to apply a CSS class.  Is this a known bug?  Are there any work-arounds?

Thanks,

Neil
Rumen
Telerik team
 answered on 18 Jan 2011
1 answer
78 views

Hi in my application i am using drag and drop in listview...
i need to edit the rlvI class because my fieldset size changed after adding the drag and drop...
i need to know where i can edit the rlvi class...
please update me with a solution
Tsvetina
Telerik team
 answered on 18 Jan 2011
2 answers
66 views
Hi,

   We are facing unique issue. We have a grid which has delete image in delete column. This image is red in color. It turns gray sometimes. I cannot figure out the reson behind it.


 

 

 

 

 

 

<

 

telerik:RadGrid ID="grdDailyOvertime" runat="server" AutoGenerateColumns="False"

 

 

 

 

 

 

Enabled="false" AutoGenerateEditColumn="false" EnableTheming="true" OnDeleteCommand="grdDailyOvertime_DeleteCommand"

 

 

 

 

 

 

OnInsertCommand="grdDailyOvertime_InsertCommand" OnNeedDataSource="grdDailyOvertime_NeedDataSource"

 

 

 

 

 

 

OnUpdateCommand="grdDailyOvertime_UpdateCommand" OnItemCommand="grdDailyOvertime_ItemCommand"

 

 

 

 

 

 

HeaderStyle-HorizontalAlign="Center">

 

 

 

 

 

 

<MasterTableView Width="100%" CommandItemSettings-ShowRefreshButton="false" CommandItemStyle-HorizontalAlign="Right"

 

 

 

 

 

 

CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="<%$ Resources:PDICulture, GridAddNewRow %>"

 

 

 

 

 

 

EditMode="InPlace">

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

<telerik:GridTemplateColumn Visible="false" UniqueName="Key" DataField="Key">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="lblDailyOvertimeID" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Key") %>'>

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<asp:HiddenField ID="hdnDailyOvertimeID" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"Key") %>' />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridEditCommandColumn HeaderText="<%$ Resources:PDICulture, grdEditColumnHeaderText %>"

 

 

 

 

 

 

HeaderStyle-Width="20%" ButtonType="ImageButton" UniqueName="EditColumn">

 

 

 

 

 

 

<ItemStyle CssClass="MyImageButton" />

 

 

 

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="<%$ Resources:PDICulture, grdDailyOvertimeHours %>"

 

 

 

 

 

 

UniqueName="DailyHoursExceeding" DataField="DailyHoursExceeding">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="lblDailyHours" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyHoursExceeding") %>'>

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<telerik:RadTextBox ID="txtDailyHours" MaxLength="5" Width="53%" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyHoursExceeding") %>'>

 

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

 

 

 

<asp:HiddenField ID="hdnDailyHour" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"DailyHoursExceeding") %>' />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="<%$ Resources:PDICulture, grdDailyOvertimeRate %>"

 

 

 

 

 

 

UniqueName="DailyRate" DataField="DailyRate">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="lblDailyRate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyRate") %>'>

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<telerik:RadTextBox ID="txtDailyRate" MaxLength="3" Width="65%" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"DailyRate") %>'>

 

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

 

 

 

<asp:HiddenField ID="hdnDailyRate" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"DailyRate") %>' />

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridButtonColumn HeaderText="<%$ Resources:PDICulture, grdDeleteColumnHeaderText %>"

 

 

 

 

 

 

ConfirmText="<%$ Resources:PDICulture, grdDailyDeleteConfirmText %>" ConfirmDialogType="RadWindow"

 

 

 

 

 

 

ConfirmTitle="<%$ Resources:PDICulture, grdDeleteColumnHeaderText %>" ButtonType="ImageButton"

 

 

 

 

 

 

CommandName="Delete" UniqueName="DeleteColumn">

 

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

 

</telerik:GridButtonColumn>

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

<NoRecordsTemplate>

 

 

 

 

 

 

<asp:Label runat="server" ID="lblDOTGrdNoRecord" Text="<%$ Resources:PDICulture, GridEmptyMessage %>">

 

 

 

 

 

 

</asp:Label>

 

 

 

 

 

 

</NoRecordsTemplate>

 

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

 

<HeaderStyle Font-Bold="true" CssClass="contentArea" />

 

 

 

 

 

 

<ItemStyle CssClass="contentArea" />

 

 

 

 

 

 

<AlternatingItemStyle CssClass="contentArea" />

 

 

 

 

 

 

</telerik:RadGrid>



Thanks
Rajesh

 

Tsvetina
Telerik team
 answered on 18 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?