Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
82 views

I am trying to only show 5 min intervals but no matter what I do in code its only showing ie 10:10 ,10:20

Here is what I have tried so far I am using the demo to evulate it for our company.

 

                <telerik:RadScheduler runat="server" Skin="Bootstrap" ID="apertureAppointments" Width="100%" DataKeyField="ID" DataSubjectField="Subject"
                    DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule"
                    DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True"
                     RowHeight="30px" RenderMode="Auto" EnableDescriptionField="True" EnableExactTimeRendering="True"
                    DayStartTime="10:00:00"  DayView-DayStartTime="10:00:00" FirstDayOfWeek="Monday"  HoursPanelTimeFormat="H:mm:ss" LastDayOfWeek="Friday"     MinutesPerRow="5"
                        
                    >
                         
                    <ExportSettings OpenInNewWindow="True">
                        <Pdf PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" PageTopMargin="1in" />
                    </ExportSettings>
                    <AdvancedForm Modal="True" />
 
                     
 
 
                    <TimeSlotContextMenus>
                        <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server">
                            <Items>
                                <telerik:RadMenuItem Text="New Appointment" Value="CommandAddAppointment" />
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem Text="New Recurring Appointment" Value="CommandAddRecurringAppointment" />
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" />
                                <telerik:RadMenuItem Text="Show 24 hours..." Value="CommandShow24Hours" />
                            </Items>
                        </telerik:RadSchedulerContextMenu>
                    </TimeSlotContextMenus>
 
                    <AppointmentContextMenus>
                        <telerik:RadSchedulerContextMenu runat="server" ID="ContextMenu1">
                            <Items>
                                <telerik:RadMenuItem Text="Open" Value="CommandEdit" />
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem Text="Categorize">
                                    <Items>
                                        <telerik:RadMenuItem Text="Development" Value="1" />
                                        <telerik:RadMenuItem Text="Marketing" Value="2" />
                                        <telerik:RadMenuItem Text="Personal" Value="3" />
                                        <telerik:RadMenuItem Text="Work" Value="4" />
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem IsSeparator="True" />
                                <telerik:RadMenuItem Text="Delete" Value="CommandDelete" />
                            </Items>
                        </telerik:RadSchedulerContextMenu>
                    </AppointmentContextMenus>
                      <ResourceTypes>
    <telerik:ResourceType KeyField="ID" Name="Room" TextField="RoomName" ForeignKeyField="RoomID"
        DataSourceID="RoomsDataSource"></telerik:ResourceType>
    
</ResourceTypes>
                       <ResourceStyles>
                            
    <telerik:ResourceStyleMapping Type="User" Text="Alex" ApplyCssClass="rsCategoryBlue"></telerik:ResourceStyleMapping>
    <telerik:ResourceStyleMapping Type="User" Text="Bob" ApplyCssClass="rsCategoryOrange"></telerik:ResourceStyleMapping>
    <telerik:ResourceStyleMapping Type="User" Text="Charlie" ApplyCssClass="rsCategoryGreen"></telerik:ResourceStyleMapping>
</ResourceStyles>
                </telerik:RadScheduler>

 

Bozhidar
Telerik team
 answered on 07 Mar 2016
15 answers
255 views
Hello, I recently had to upgrade Telerik.Web.UI.dll on a client's server (DNN 06.01.05) to 2013.2.717.35 (previous version installed was 2011.*.*.35). I had to do this because I installed some customizations where I use the latest Telerik.dll version that is suitable for IE10 and all that stuff. Then I set up an assembly binding on web.config forcing old functionallity to use new version of the library.

Everything went fine until we discovered a problem trying to upload a file using FileExplorer on a DNN built in feature (not my customization)

[MissingMethodException: Method not found: 'Int32 Telerik.Web.UI.UploadedFile.get_ContentLength()'.]
   DotNetNuke.Providers.RadEditorProvider.TelerikFileBrowserProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) +0
   Telerik.Web.UI.RadFileExplorer.ProcessUploadedFiles() +1134
   Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +248
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064

It seems that the signature of get_ContentLength() has changed in latest builds from returning an Int32 to an Int64.

The horror!

I'm in DNN 6. I tried to set an assembly binding on web.config to use both versions of the dll (previous DNN functionality using telerik version 2011 and my assemblies using Telerik version 2013). This seems to be working but now I'm getting an internal DNN error:

The base class includes the field '<componentName>', but its type (Telerik.Web.UI.RadWindowManager) is not compatible with the type of control (Telerik.Web.UI.RadWindowManager).

Since DNN is a very popular CMS I thought may be someone faced the same scenario and could give me a hand.

Any ideas on how to solve this problem?

Thanks in advance.

Juan
Ianko
Telerik team
 answered on 07 Mar 2016
1 answer
185 views

Hi,

Please let me know how to add RadclientDatasource in toolbox

I refer the following link : http://docs.telerik.com/devtools/aspnet-ajax/controls/clientdatasource/connecting-to-web-service

But there is no RadClientDataSource in toolbox.

While copying the code from the sample application , I got the error " Unknown server tag 'telerik:RadClientDataSource'.

Kindly advise.


Daniel
Telerik team
 answered on 04 Mar 2016
3 answers
309 views
Hi All,

I am using Radgrid into User Control. that user control defined into RadWindow in aspx page. when i am clicking the link button that window will popup and i want to assign datasource like. radgrid.get_masterTableView().set_dataSource(new Array()). but radgrid.get_masterTableView() return null values. i want to assign datasource only in client side. please let me know how to solve this issue.

Here i have attached code.

in aspx page

<asp:LinkButton ID="lnkSymptoms" runat="server" Text="Symptoms : " OnClientClick="return lnkSymptom_clientClick()"></asp:LinkButton>
<telerik:RadWindow runat="server" ID="rwSymptoms" Title="Symptoms" VisibleStatusbar="false"
                    Width="600px" Height="430px" Modal="true" EnableShadow="true" Skin="Web20" Opacity="100">
                    <ContentTemplate>
                        <div id="divSymptoms" runat="server">
                            <ucSymptom:ucSymptom ID="ucSymptomsCtrl" runat="server" />
                        </div>
                    </ContentTemplate>
                </telerik:RadWindow>

javascript

 function lnkSymptom_clientClick(sender, args) {
var rgSymptoms = $find("ctl00_ContentPlaceHolder1_rwSymptoms_C_ucSymptomsCtrl_rgSymptoms").get_masterTableView();             
                    rgSymptoms.set_dataSource(new Array());
                    rgSymptoms.dataBind();
}

ascx page

<telerik:RadGrid ID="rgSymptoms" runat="server" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"
                Width="370px" EnableViewState="false" PagerStyle-Visible="false" >
                <ClientSettings ClientEvents-OnCommand="function() {}" >                  
                </ClientSettings>
                <MasterTableView CommandItemDisplay="None" AutoGenerateColumns="false" AllowSorting="true"
                    AllowPaging="true" DataKeyNames="sys_con_id" ClientDataKeyNames="sys_con_id">
                    <NoRecordsTemplate>
                        <center>
                            No records to be displayed</center>
                    </NoRecordsTemplate>
                    <Columns>
                        <telerik:GridTemplateColumn UniqueName="Description" HeaderText="Condition">
                            <ItemStyle VerticalAlign="Top" Wrap="false" HorizontalAlign="Left" />
                            <HeaderStyle Width="220px" />
                            <ItemTemplate>
                                <asp:Label ID="Description" runat="server" SkinID="NoBold"></asp:Label>
                                <asp:TextBox runat="server" ID="txtDesc" Style="display: none;" onchange="javascript:return UpdateOtherValue(this)"></asp:TextBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>                    
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

Thanks in Advance,
Dhamodharan.S


Eyup
Telerik team
 answered on 04 Mar 2016
1 answer
1.0K+ views
Hi, I am looking for the old version of Kendo UI (2014.1.624). Can you please let me know from where I can download it?
Peter Filipov
Telerik team
 answered on 04 Mar 2016
1 answer
106 views

Hello,

I need to change the text inside the ContextHeaderMenu in  a radgrid.

I have the following code on my Page_Load:

AddHandler RadGridTransmission.HeaderContextMenu.ItemCreated, AddressOf Me.ContextHeaderMenu_ItemCreated

And the following code to change text in the context menu:

Protected Sub ContextHeaderMenu_ItemCreated(ByVal sender As Object, _
ByVal e As RadMenuEventArgs)

If (e.Item.Value = "ColumnsContainer") Then
e.Item.Text = "Show/Hide columns"

ElseIf (e.Item.Level = 2) AndAlso (TryCast(e.Item.Parent, RadMenuItem).Value = "ColumnsContainer") Then
If (e.Item.Value.EndsWith("ReceiverID")) Then
  e.Item.Text = "Source Receiver ID"
End If

End Sub

 

The part that changes the text to "Show/Hide columns" works but the one to change the text for items in "ColumnsContainer" doesn't.

It finds the item, sets the text but does not change when I run the code.

Any idea?

Thanks!

Eyup
Telerik team
 answered on 04 Mar 2016
1 answer
607 views

Hi,
I am using version 2015.1.401.40 of the ASP.NET controls for AJAX.

I am hiding the expand / collapse icon for mastertable rows where the detailed table has no rows.  I am also setting the detail table to visible false. I'm doing both of these in the DetailTableDataBind like so:

e.DetailTableView.Visible = False

parentItem("ExpandColumn").Controls(0).Visible = False

I want the users to be able to expand and collapse all rows that have child data, so I added this property to the RadGrid:  EnableHierarchyExpandAll="true"

However, that expands EVERY SINGLE ROW, even the rows where I've removed the expand / collapse button and set the detail table to invisible.

Question:  Is there any way I can expand ONLY the rows that have an expand / collapse icon (only the rows that actually have detail data)?

I've looked a bit at the javascript you all use _expandAll, but don't think I can implement what I want to do...

Thanks,

Brent

 

Eyup
Telerik team
 answered on 04 Mar 2016
1 answer
148 views

Hi,

i m giving the Telerik Spreadsheet a try, because i used the WPF and Silverlight one. But as far as i can see, there s still some features missing.

 

I see that the only way to "customize" and "interact" with the spreadsheet is via provider. So, if i want to get data from DB i overwrite the GetSheets() method, and if i want to Save i override the SaveToWorkbook method.

 

1) But, what if i want to interact with the spreadsheet without postback?

2) Is there any way from listening to the Cell OnChange event ? (even on the client side would be fine)

3) In the CellContextMenu there is a OnClientItemClicked event. Are there any more events runnable from the client side?

 

 

Thanks for your support

 

Peter Filipov
Telerik team
 answered on 04 Mar 2016
2 answers
373 views
I've been having a long and frustrating weekend of trying to get my RadControls to work on User Controls (ascx) files.  For instance, the RadAsyncUpload control works just fine Client Side on a regular aspx page, but I'm having issues making it work on ascx files.  I have yet to make a Server Side event work on the AsyncUpload events and thinking of just scrapping it for the regular Asp.net Upload control.  Any way I can get some help within the next 24 hours on this?  I'm already behind struggling with these controls?  What is it that I'm missing to get them to work?
Ali
Top achievements
Rank 1
 answered on 04 Mar 2016
4 answers
288 views
Hi ,
I am using radrotator in my application , i just want to change the border color or color of the rotator selected item from asp.net c# code behind , can i expect some help on this

Thanks,
Mahesh
Bhavya
Top achievements
Rank 1
 answered on 04 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?