Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views

I got this RadCalendar in my aspx page with three calendars stacked up vertically.  I am binding some scheduling data to these three mini calendars and would like to limit the data to only the date’s show on the mini calendar.   I wonder if there is a property of the RadCalendar that gives me the show date min and show date max.  When user uses the fast navigation button to forward and backward the months, these properties should change accordingly.  Do these properties exist?   Thanks.

Kevin
Top achievements
Rank 2
 answered on 09 Jul 2012
1 answer
80 views
Hi

I'm new to using Telerik controls, so please be gentle.

I am working against Exchange which returns a body attribute in HTML and location in plain text. Could you please explain in simple terms how I can make these attributes available on insert and edit of an appointment?

Many thanks,

Lee
Plamen
Telerik team
 answered on 09 Jul 2012
1 answer
173 views
Hi,

Is there any possible way to show a built-in checkbox control along with raddatepicker to enable/disable the control.Is it possible to add any control like calendar templates.

Help me
Kevin
Top achievements
Rank 2
 answered on 09 Jul 2012
2 answers
155 views
Hi

I am using Radgrid which has about 10 columns and 2 group levels . As per requirement i have to place complete grid in Editmode ( Infact 3 columns will be in editmode). I have edit button in CommandItem template.  When I click  Editbutton it places complete Radgrid in Edimode . basically I am running the server code  RadGrid1.EditIndexes.Add(i) for all the rows.

Performance is very slow and if the rows are more its taking too long to put complete grid in edit mode.

Are there anyways  to improve the performance of this.

Thanks

NVB
Top achievements
Rank 1
 answered on 09 Jul 2012
1 answer
73 views
So I'm creating a custom separator template for a siteMap.

Each Node will have a custom separator template. 

When I create the nodes, with a basic separator template, the separator correctly shows after the Node.
However, when I used a more complex separator template the separator shows BEFORE the node.

Any ideas why??

<telerik:RadSiteMap ID="RadSiteMap1" runat="server" DataNavigateUrlField="NavigateUrl"
                        DataTextField="Text" Skin="Forest" Width="100%" DefaultLevelSettings-Layout="Flow">
                        <Nodes>
                            <telerik:RadSiteMapNode >
                                <NodeTemplate>NONA</NodeTemplate>
                                <SeparatorTemplate>
                                    <telerik:RadMenu ID="RadMenu4" runat="server" EnableEmbeddedBaseStylesheet="False"
                                        Flow="Horizontal" CssClass="SeperatorMenu" ClickToOpen="true">
                                        <CollapseAnimation Type="InCubic" />
                                        <Items>
                                            <telerik:RadMenuItem runat="server" ImageUrl="~/Images/Triangle_Left.png" CssClass="SeperatorMenuImg"
                                                HoveredImageUrl="~/Images/Triangle_LeftH.png">
                                                <GroupSettings OffsetX="-5" OffsetY="-10" ExpandDirection="Left" />
                                                <Items>
                                                    <telerik:RadMenuItem runat="server" Text="ChildRadMenuItem1">
                                                        <ItemTemplate>
                                                            <div>
                                                                content Header NONA</div>
                                                            <div>
                                                                Body Information here...</div>
                                                        </ItemTemplate>
                                                    </telerik:RadMenuItem>
                                                </Items>
                                                <GroupSettings ExpandDirection="Right" Flow="Horizontal" RepeatDirection="Horizontal" />
                                            </telerik:RadMenuItem>
                                        </Items>
                                    </telerik:RadMenu>
                                </SeparatorTemplate>
                            </telerik:RadSiteMapNode>
</Nodes>

</telerik:RadSiteMap>

Kate
Telerik team
 answered on 09 Jul 2012
2 answers
104 views
Hi

I have two pages.
1. One for entering schedule details of doctors
2. Second one for entering patient appointment.

Will detail below

Master page where I am giving schedules to doctors.In this page, suppose am scheduling a doctor from 10.00 am to 12.00 noon and from 2.00pm to 4.00pm from 01 July 2012 to 06 July 2012

In the second page , I am giving appointment to patients.
Here the user must see remaining time slots disabled and time available as empty ,enabled.
In enabled portion the user can enter the patient details and save.Saving patient details is not the problem.
Problem is with , showing the schedules in disabled and enabled manner and empty.

ie,

In the patient appoinment page , if the user is selecting 01 july 2012

then he/she must be able to see as below
01 July 2012 12.00am to 09.59 am - disabled and empty (means no app slot visible.the region should be empty and disabled)
01 July 2012 10.00 am to 12.00 noon  - enabled and empty (here the user can click and enter the patient details)
01 July 2012 12.01 pm to 1.59 pm - disabled and empty (means no app slot visible.the region should be empty and disabled)
01 July 2012 2.00pm to 4.00pm - enabled and empty (here the user can click and enter the patient details)
01 July 2012 4.01 pm to 11.59 pm - disabled and empty (means no app slot visible.the region should be empty and disabled)

and for the remaining days also , this would work in this manner....

I have a user control as insert template where am entering the patient details and save.
That portion is perfectly perfect.
The problem is with the display region.Because according to this display , the end user must know the doctor schedule for the day.


Please help me.I am in deep trouble.
Thanks
Plamen
Telerik team
 answered on 09 Jul 2012
7 answers
148 views
Hi.

I'm creating a custom control to handle complex relations between 3 resources.
I will consist of 2 Combos and a CheckBoxList.
At what point can I populate these controls with their selectable values in a clientside event?
I'm quite sure I know where to handle the loading, selection and saving of the chosen values to the appointment.

/Jesper
Peter
Telerik team
 answered on 09 Jul 2012
1 answer
89 views
Hi,

How would I go about using jquery to add a click event to an orgchart?  I want to be able to click on a person then display that person in a popup window so would need the ID.

Am I better adding a click event from teh code behind or is it easy to do with jquery - examples much appreciated!

Regards,

Jon
Plamen
Telerik team
 answered on 09 Jul 2012
1 answer
91 views
I have been given a design for a menu in CSS-HTML which I am attempting to develop using RadMenu.   The design includes border images for the submenu as well as two background images (upper left and lower right) to create a gradient.   To accomplish this, I need to add a number of DIV tags to the top and bottom of the <li> for the submenu.  I have been able to add controls to the individual menu items, but I can't find a way to them to the submenu as a whole.  Is this possible?  Is there some other approach that would work?  I have had a quick look at skins, but as far as I can tell that will only allow me to add a single background image to a submenu, which is not exactly what I need to do.

Thank you!
Peter
Telerik team
 answered on 09 Jul 2012
2 answers
157 views
Hi,

in the following test project I'm trying to set 2 filters one after the other. But as soon as one is set the other doesnt apply anymore!
Is there a way to have them both apply?

Thanks in advance.
Christian

Public Class MyCustomBoundColumn
    Inherits GridBoundColumn
 
    Public dsDataSource As DataTable
 
    Public Function GetDataTable(ByVal strColumnName As String) As DataTable
        Dim disctinctValues As DataTable = Nothing
        If TypeOf (dsDataSource) Is DataTable Then
            Dim View As New DataView(dsDataSource)
            disctinctValues = View.ToTable(True, strColumnName)
        End If
 
        Return disctinctValues
    End Function
 
    Protected Overrides Sub SetupFilterControls(ByVal cell As TableCell)
        Dim rcBox As New RadComboBox()
        rcBox.ID = "cboFilter" & Me.DataField
        rcBox.DataTextField = Me.DataField
        rcBox.DataValueField = Me.DataField
        rcBox.AutoPostBack = False
        AddHandler rcBox.SelectedIndexChanged, AddressOf rcBox_SelectedIndexChanged
        Dim table As DataTable = GetDataTable(Me.DataField)
        Dim row As DataRow = table.NewRow()
        row(Me.DataField) = ""
        table.Rows.InsertAt(row, 0)
        rcBox.DataSource = table
        cell.Controls.Add(rcBox)
    End Sub
 
    Protected Overrides Sub SetCurrentFilterValueToControl(ByVal cell As TableCell)
        If Not (Me.CurrentFilterValue = "") Then
            DirectCast(cell.Controls(0), RadComboBox).Items.FindItemByText(Me.CurrentFilterValue).Selected = True
        End If
    End Sub
 
    Protected Overrides Function GetCurrentFilterValueFromControl(ByVal cell As TableCell) As String
        Dim currentValue As String = DirectCast(cell.Controls(0), RadComboBox).SelectedItem.Value
        Me.CurrentFilterFunction = If((currentValue <> ""), GridKnownFunction.EqualTo, GridKnownFunction.NoFilter)
        Return currentValue
    End Function
 
    Private Sub rcBox_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
        DirectCast(DirectCast(sender, RadComboBox).Parent.Parent, GridFilteringItem).FireCommandEvent("Filter", New Pair())
    End Sub
End Class

Imports Telerik.Web.UI
Imports System.Data
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Data.SqlClient
Imports System.Configuration
 
Public Class _Default
    Inherits System.Web.UI.Page
 
    Public myDataTable As DataTable
 
    Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        GetDataTable()
 
        Dim myColumn As MyCustomBoundColumn
 
        myColumn = New MyCustomBoundColumn
        myColumn.DataField = "name"
        myColumn.HeaderText = "name"
        myColumn.dsDataSource = myDataTable
        gvDataTable.MasterTableView.Columns.Add(myColumn)
 
        myColumn = New MyCustomBoundColumn
        myColumn.DataField = "mandant_name"
        myColumn.HeaderText = "mandant_name"
        myColumn.dsDataSource = myDataTable
        gvDataTable.MasterTableView.Columns.Add(myColumn)
    End Sub
 
    Private Sub GetDataTable()
        Dim ConnString As String = ConfigurationManager.ConnectionStrings("MyConnectionString").ConnectionString
        Dim MySqlConnection As New SqlConnection(ConnString)
        Dim MySqlDataAdapter As New SqlDataAdapter()
        MySqlDataAdapter.SelectCommand = New SqlCommand("SELECT * FROM getUser", MySqlConnection)
        MySqlConnection.Open()
        Try
            myDataTable = New DataTable
            MySqlDataAdapter.Fill(myDataTable)
        Finally
            MySqlConnection.Close()
        End Try
 
    End Sub
 
    Private Sub gvDataTable_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gvDataTable.NeedDataSource
            gvDataTable.DataSource = myDataTable
    End Sub
 
End Class

<form id="form1" runat="server" style="height:100%; width:100%;margin: 0px;padding: 0px;">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" ScriptMode="Release" EnableScriptLocalization="true" EnableScriptGlobalization="true"
     CombineScripts="false" runat="server" EnablePartialRendering="true">
    </asp:ToolkitScriptManager>
 
    <asp:UpdatePanel runat="server" ID="upaDT" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
            <telerik:RadButton ID="RadButton1" runat="server" Text="set filter" AutoPostBack="true">
            </telerik:RadButton>
        <telerik:RadGrid ID="gvDataTable" runat="server" AutoGenerateColumns="false" Height="600px" AllowSorting="true" AllowFilteringByColumn="true"
        EnableLinqExpressions="false">
        <MasterTableView DataKeyNames="guid" ClientDataKeyNames="guid" AllowFilteringByColumn="true" EnableColumnsViewState="false">
        </MasterTableView>
        <ClientSettings EnableRowHoverStyle="true" >
            <ClientEvents/>
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        </ClientSettings>
        </telerik:RadGrid>
        </ContentTemplate>
    </asp:UpdatePanel>
</form>

Maria Ilieva
Telerik team
 answered on 09 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?