Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hi,

On Telerik RadScheduler Timeline, resource is arranged in vertical and date in horizontal.
Can I reverse their position ?

For example,
view at http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx
this gives :

-----------------+-------------------------------------------+-------------------------------
                      |   Margaret Morrison Main Room    |    Black Auditorium
-----------------+--+-------------------------------+-------|--------------------------------
2007-06-04    |   |                                         |         |
-----------------+--|         History 201               |-------|---+---------------------+----
2007-06-05    |   |                                         |         |    |   Piano Recital    |
-----------------+--+--------------------------------+-------|---+---------------------+---
2007-06-06    |
-----------------+---------------------------------------------------------------------------

Regards,
Fabien Vorillion

Peter
Telerik team
 answered on 25 Jun 2010
6 answers
356 views
I am using a radcalender. When I click a button, I would like it (via server-side) to refresh and go through the OnDayRender sequence again. How can I do this?

Ron
Daniel
Telerik team
 answered on 25 Jun 2010
2 answers
185 views
Good Day

i have only a week to Prove that Telerik is Good for our need for schedular. i am must say i struggle to get a reply from the forum.

i followed the Demo , but my time-line View does not show my DY as it is shown in that Demo example, But Defination of the Radschedule is like this

        <telerik:RadScheduler ID="RadScheduler1" ColumnWidth="200px" RowHeaderWidth="200px" DayView-GroupingDirection="Vertical" RowHeaderHeight="400px"  runat="server" DataSourceID="SqlDataSource2" 
            DataEndField="ENDDATE" DataKeyField="ID"  Skin="Sunset" Height="300px" Width="1600px" DataSubjectField="SUBJECTS"  DataStartField="STARTDATE" AllowDelete="False" AllowEdit="False" AllowInsert="False"   DayEndTime="20:00:00" DisplayRecurrenceActionDialogOnMove="True" OverflowBehavior="Expand" SelectedView="MonthView"  OnDataBound="RadScheduler1_DataBound" OnAppointmentCreated="RadScheduler1_AppointmentCreated" CssClass="ConfigurationPanel1" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" GroupingDirection="Vertical"
            <MultiDayView UserSelectable="True"    ReadOnly="True" GroupBy="DY" GroupingDirection="Vertical" /> 
             <ResourceTypes> 
            <telerik:ResourceType KeyField="DY" AllowMultipleValues="True" Name="DY" TextField="DY" ForeignKeyField="ID" 
            DataSourceID="SQlDataSource_Grouping" /> 
            </ResourceTypes> 
        </telerik:RadScheduler> 

and the Definition of my SQDatasource Control is
 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="Data Source=(local);Initial Catalog=oDirectv3;Persist Security Info=True;User ID=o;Password=abacus" 
            SelectCommand="sp_Timetable_View" DeleteCommand="sp_Timetable_View" ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure" OnSelecting="SqlDataSource2_Selecting"
            <SelectParameters> 
                <asp:SessionParameter DefaultValue="" Name="selectionType" SessionField="viewOptions" 
                    Type="String" /> 
                <asp:SessionParameter DefaultValue="" Name="selectedItems" SessionField="selectedItems" 
                    Type="String" /> 
                <asp:SessionParameter DefaultValue="" Name="selectedTerms" SessionField="selectedTerms" 
                    Type="String" /> 
            </SelectParameters> 
            <DeleteParameters> 
                <asp:Parameter Name="selectionType" Type="String" /> 
                <asp:Parameter Name="selectedItems" Type="String" /> 
                <asp:Parameter Name="selectedTerms" Type="String" /> 
            </DeleteParameters> 
        </asp:SqlDataSource> 
        <asp:SqlDataSource ID="SQlDataSource_Grouping" runat="server" ConnectionString="<%$ ConnectionStrings:ViewerTestConnectionString %>" 
            SelectCommand="select ID,DY from final_Timetable"  ProviderName="<%$ ConnectionStrings:ViewerTestConnectionString.ProviderName %>" OnSelecting="SqlDataSource2_Selecting"
            <DeleteParameters> 
                <asp:Parameter Name="selectionType" Type="String" /> 
                <asp:Parameter Name="selectedItems" Type="String" /> 
                <asp:Parameter Name="selectedTerms" Type="String" /> 
            </DeleteParameters> 
        </asp:SqlDataSource> 

and my page load event on the server side looks like this

    protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!Page.IsPostBack) 
        { 
            BLL.BLL obj = new BLL.BLL(); 
            try 
            { 
                int Day = obj.Get_Max_Day_Viewer(Convert.ToString(Session["ActiveDatabase"])); 
 
                //RadScheduler1.WeekView. = Day; 
 
                RadScheduler1.TimelineView.NumberOfSlots = Day; 
                //it makes sure that the Viewer is showing the date of the timetable  
                RadScheduler1.SelectedDate = obj.Get_Selected_Date_Viewer(Convert.ToString(Session["ActiveDatabase"])); 
                RadScheduler1.TimelineView.GroupingDirection = Telerik.Web.UI.GroupingDirection.Vertical; 
 
            } 
            catch (SqlException ex) 
            { 
                lblMessage.Visible = true
 
                lblMessage.Text = ex.InnerException.Message; 
 
            } 
            finally 
            { 
                obj = null
            } 
        } 
      
    } 

and i have attached the TimelineView image, on the Left hand side does not Contain the "DY" Fields , as Periods.






Thanks




Vuyiswa
Top achievements
Rank 2
 answered on 25 Jun 2010
1 answer
156 views
Hello ,

I would like to add a textbox to rad grid.the way i would like to do it is that
When I click on add new record I would like to add a textbox to grid and enter a value to the text box and depending on the value that i entered in the textbox i would like to pull the data and populate the grid.


Princy
Top achievements
Rank 2
 answered on 25 Jun 2010
1 answer
140 views
Hi all,

I am binding the grid with dynamic columns ie the column names changes everytime.
I am showing date picker, links, checkboxes, dropdownlist, text columns in my grid
everything is fine as far as displaying the grid is concerned.
the only problem is during inline editing of rows, i will need to create editors for the column types. I have successfully created datetime picker, textbox editor through code, but unable to create editor for dropdown columns as the items from dropdown are fetched from database and is dependent on the column id.

can anyone out there help me create dropdown editor for my dynamic dropdown column(s)?

thanks in advance

Shinu
Top achievements
Rank 2
 answered on 25 Jun 2010
2 answers
91 views
Hello

I have a page with 2 RadUploads and one submit button. There is also a RadProgressManager and RadProgressesArea.

The files that are going to be uploaded will be large. At the moment, I have server code that checks/validates to see if the user has selected two files. The problem is that, the files gets uploaded first, before the validating function is called.

So if the user uploads a big file in only one RadUpload, only when its finished uploading, does code get called to validate.. in which cases it'll throw up some validating error message. So the user will have to upload the one file again.

Is it possible to somehow do some client validation to check if the user has selected two files.. or even server check before file starts to upload?

Any help would be greatly appreciated..Thank you.
Imran
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
72 views
Hi,
I am using Rad Calendar. 2.2.8 .o version.  I am using it as a pick the data from calendar.
It works fine. But when i select data & hit  the Submit Button Javascript errors are firing. I am using simple code only.
My Javascript error shows Object Expected.
When i remove Rad Calendar i am not getting Java script error. Why ?

I am copying my code below. Please respond to my post.

 

<rad:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Default"

 

 

SkinsPath="~/RadControls/Calendar/Skins/" ToolTip="Select Date"

 

 

MinDate="01/01/1900" MaxDate="12/31/2100" DateInput-EmptyMessage = "- Select Date -" >

 

 

<Calendar runat="server" Skin="Default" SkinsPath="~/RadControls/Calendar/Skins/" >

 

 

<ClientEvents />

 

 

</Calendar>

 

 

 

</rad:RadDatePicker>

 

Dimo
Telerik team
 answered on 25 Jun 2010
2 answers
104 views
can a client event be added to a control in a EditItemTemplate at design time?
                    <EditItemTemplate>
                        <telerik:RadNumericTextBox ID="rntbNetCost" Text='<%# Bind("NetCost") %>' runat="server">
                            <ClientEvents OnValueChanged="UpdateCostSource" />
                            <NumberFormat DecimalDigits="2" />
                        </telerik:RadNumericTextBox>
                        <asp:RequiredFieldValidator ID="rfNetCost" ControlToValidate="rntbNetCost" ErrorMessage="Net Cost Required" runat="server">
                        </asp:RequiredFieldValidator>
                    </EditItemTemplate>

the function hasn't been implemented (yet)
            function UpdateCostSource(sender,args) {
                    alert('me');
            }

or do I have to add it as an attribute on the ItemCreated event handler in code
I'm working in VS2010 .NET 4.0

UPDATE - the event triggers, it just doesn't allow me to break

Marianne
Tsvetoslav
Telerik team
 answered on 25 Jun 2010
1 answer
118 views
I tried to set
string x = "<input/>";
Page.Title = x ;

when the window is opened, the page title displays an input box.

I also tried this
string x = "<input/>";
Page.Title = Server.HtmlEncode(x);

the title is still the same.

i want the title to display the string "<input/>" at the title of the rad window.
Georgi Tunev
Telerik team
 answered on 25 Jun 2010
1 answer
185 views
When the RadlistView page changed, it tend to call NeedDatasource and reload data, but when i say .datasouce = something; .databind(); when page change, it still go for needdatasource and try to reload data.
Is there anyway that the radlistview/grid not going round the trip and fetching data again? 

following code working but will fetch data again
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="AListingsGrid"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="AListingsGrid" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadListView ID="AListingsGrid" runat="server" AllowPaging="True" ItemPlaceholderID="PropertiesContianer" 
        PageSize="1"
        <LayoutTemplate> 
            <fieldset id="RadListView1"
                <telerik:RadDataPager ID="RadDataPager2" PageSize="1" runat="server" Style="border: none;" 
                    PagedControlID="AListingsGrid"
                    <Fields> 
                        <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                    </Fields> 
                </telerik:RadDataPager> 
                <asp:PlaceHolder ID="PropertiesContianer" runat="server" /> 
            </fieldset> 
        </LayoutTemplate> 
        <ItemTemplate> 
            <div> 
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
            </div> 
        </ItemTemplate> 
    </telerik:RadListView> 

  Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load 
        If Not Me.IsPostBack Then 
            
        End If 
    End Sub 
 
 
 
    Private Sub RadListView1_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadListViewItemEventArgs) Handles AListingsGrid.ItemDataBound 
        If (TypeOf (e.Item) Is RadListViewDataItem) Then 
            Dim dataBoundItem = DirectCast(e.Item, RadListViewDataItem) 
            Dim astr = DirectCast(dataBoundItem.DataItem, String
            DirectCast(dataBoundItem.FindControl("Label1"), Label).Text = astr 
        End If 
    End Sub 
 
    Private Sub AListingsGrid_NeedDataSource(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs) Handles AListingsGrid.NeedDataSource 
        Dim alst As New List(Of String
        Dim i As Integer 
        For i = 0 To 10 
            alst.Add(String.Format("item {0}", i.ToString)) 
        Next 
        AListingsGrid.DataSource = alst 
    End Sub 

BaiH
Top achievements
Rank 1
 answered on 25 Jun 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?