Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
215 views
I am using the advanced template for inserting and editing an appointment.  I have created all my custom attributes where some the fields are populated from the appointment record and the others are populated only when inserting/editing an appointment such as default point of contact information.

Everything works correctly except for one condition when I edit the series of an existing recurring appointment.  All other cases (create a new appointment, edit a non-recurring appointment and edit a single occurrence of a recurring appointment) function as expected.  The problem I am having is that when I choose to edit series of an appointment, all my custom attributes that are not part of the appointment during the AppointmentDataBound event are blank.  I have verified through the debugger that they are getting set in the OnFormCreating event just like in all the other scheduler appointment edit conditions.  Also, when I look at the value being passed to the custom attribute property of the advanced form, it is blank.

Now, what is also very perplexing is that I can get it to work under a unique circumstance.  For example, if I am in month view and I click on the appointment of the very first day of the recurring event and choose to edit the series, my expected data for the custom attributes are set correctly.  Then when I click on any of the other days in which that recurring event is happening, the custom attributes are still correct.  But when I refresh the page and click on any of the recurring event days other than the very first one, it will not work and my custom attributes are blank.  But, then, click on the very first day and all the custom attributes will be correct again.

Ed Lamprecht
Veronica
Telerik team
 answered on 22 Jun 2011
10 answers
274 views
I would like to dynamically set the labelstep value based on how many Yaxis and Xaxis values might be on the chart.  The number of X and Y labels can vary depending on user inputs.  On the x-axis we might be looking at monthly values across a year (12 labels) or hourly vlaues across 3 days (72 labels).  There are many other possibilites.  The Y Laebls can also vary in range.

I am using the DataBind method, so I am not adding the X and Y values manually.

I need a way of find out out how many labels are present on each axis so I can dymanically set the labelstep value.  For Example, if there are 12 x-axis labels then I want the labelstep for the X axis to be 1.  If there are 300 then I want it to be 300/30 (or whatever).

It seems like this must be easy, but I am missing something.

Thanks,

Mike
Ves
Telerik team
 answered on 22 Jun 2011
1 answer
124 views
I have a RadMenu being populated from a database, and the menu items are variable based on user security.  I'd like each menu to have a "Home" item that is aligned to the left, and I'd like the remaining databound items to be aligned to the right.  Is there any way to accomplish this?
Princy
Top achievements
Rank 2
 answered on 22 Jun 2011
1 answer
62 views
Hello ,Telerik
   In my project, Some kinds of Images are made through computing,such bar chart ,pie chart ,etc.
 And I write a silverlight application that plays these images one by one.
  How to save the chart image  automatically or every some time?
hope your reply.
Ves
Telerik team
 answered on 22 Jun 2011
1 answer
271 views
Hi,

Does anyone know of an option for integating google calendar with RadScheduler. For instance, have a rad schedular displaying Google Calendar feed automatically or being able to writes events back to Google Calendar by using Google Calendar API?

Thanks,
OM
Plamen
Telerik team
 answered on 22 Jun 2011
2 answers
139 views
Hi,
Why performance of rad grid goes down dramatically when it has to display more than 50 rows. Scroll bar gets stuck.
Please suggest solution to improve performance as this has been acritical issue for this project.

Also i had requirement of having "All" as PageSize ComboBox item to display all items at one time in grid. So i customized the "

PageSizeComboBox" as follows:

 Protected Sub grid_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grid.ItemCreated

        If TypeOf (e.Item) Is GridPagerItem Then
            Dim pageBoundItem As GridPagerItem = DirectCast(e.Item, GridPagerItem)
            Dim PageSizeComboBox As RadComboBox = TryCast(pageBoundItem.FindControl("PageSizeComboBox"), RadComboBox)

            If PageSizeComboBox IsNot Nothing Then

        'Start **Page Size initialization
        Dim itemIndex As Integer = 0
        Dim minPageSize As Integer
        Dim maxPageSize As Integer
        Dim pageSizeStep As Integer
        Integer.TryParse(ConfigurationManager.AppSettings("MinPageSize").ToString(), minPageSize)
        Integer.TryParse(ConfigurationManager.AppSettings("MaxPageSize").ToString(), maxPageSize)
        Integer.TryParse(ConfigurationManager.AppSettings("PageSizeStep").ToString(), pageSizeStep)
        'End **Page Size initialization

        Dim ComboItem As RadComboBoxItem
        For iCount As Integer = minPageSize To maxPageSize Step pageSizeStep
            Dim newComboItem As RadComboBoxItem = PageSizeComboBox.Items.FindItemByValue(iCount)
            If newComboItem Is Nothing Then
                ComboItem = New RadComboBoxItem(iCount.ToString(), iCount.ToString())
                ComboItem.Attributes.Add("ownerTableViewId", gridClientId)
                PageSizeComboBox.Items.Insert(itemIndex, ComboItem)
            End If
            itemIndex += 1
        Next

        Dim newItem As RadComboBoxItem = PageSizeComboBox.Items.FindItemByValue(gridDataItemCount.ToString())
        If newItem Is Nothing Then
            ComboItem = New RadComboBoxItem("All", gridDataItemCount.ToString())
            ComboItem.Attributes.Add("ownerTableViewId", gridClientId)
            PageSizeComboBox.Items.Insert(PageSizeComboBox.Items.Count, ComboItem)
        Else
            newItem.Text = "All"
        End If

                AddHandler PageSizeComboBox.SelectedIndexChanged, AddressOf Me.PageSizeComboBox_SelectedIndexChanged
                PageSizeComboBox.AutoPostBack = True
            End If
          
        End If

    End Sub


Public Sub PageSizeComboBox_SelectedIndexChanged(ByVal sender As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)

        Dim intPageSize As Integer

        Integer.TryParse(e.Value, intPageSize)
        ViewState("intPageSize") = intPageSize.ToString()

        grid.PageSize = ViewState("intPageSize")
        grid.Rebind()

    End Sub



 Protected Sub grid_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles grid.NeedDataSource
        If ViewState("gridData") IsNot Nothing Then
            grid.VirtualItemCount = CType(ViewState("gridData"), DataTable).Rows.Count
            grid.DataSource = CType(ViewState("gridData"), DataTable)
        Else
            grid.VirtualItemCount = 0
            grid.DataSource = Nothing
        End If
    End Sub
Abhishek
Top achievements
Rank 1
 answered on 22 Jun 2011
1 answer
37 views

Hi,

We have recently upgraded the latest telerik version (2011.1.413.40) and it seems we are having some issue. PagerTemplate is getting disappear and comes back when we change the pagesize. I am not sure why it is getting disappear for a short while, it doesn't happen in the older version (2010.2.826.35). I can able to see the same issue in demo page which is mentioned below.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/pagertemplate/defaultcs.aspx

Please could you let me know whether it is a bug or any code change required to fix this issue.

Thanks
Vasil
Telerik team
 answered on 22 Jun 2011
2 answers
174 views
Hi,

Is it possible to detect (or if there is an event that I am missing) the final OnRowSelected/OnRowDeselected?

I have a grid of 100 items and I am turning toolbar icons on/off depending if there are any items in the grid selected or not i.e. if one or more items selected then turn on the Delete/Move buttons, if not, disable the Delete/Move buttons.

As the events (OnRowSelected and/or OnRowDeselected) fire for each row selection change, I don't really want to call the enable/disable methods 100 times (if the user selects ALL rows) and again 100 times if they deselect all rows.

Is there an event that fires when the final select/deselect event fires so you can then process the actuall selected rows?

The work around I am using is to have a timer created on the OnRowSelected and in the OnRowDeselected - this timer has an interval of 50ms which when fires does the toolbar options. Each time the OnRowSelected/OnRowDeselected  events fire they cancel the timer and create a new timer. So, if there is no events fired for 50ms I am "assuming" the events have completed and therefore perform the toolbar methods.

But this seems a bit of a hack.

Anyone got any ideas?

Thanks,

Ro
Rohan
Top achievements
Rank 1
 answered on 22 Jun 2011
2 answers
161 views
Hi there, 

Where can I find the Javascript API for the treeview?

The following no longer works in the new telerik control:

Treeview.Nodes[0] 
TreeVies.AllNodes[0] 
TreeView.UnSelectAllNodes();


Thanks in Advance

K
Kevin Cauchi
Top achievements
Rank 1
 answered on 22 Jun 2011
1 answer
212 views
I am working with a RadGrid to which I have applied a custom skin.  I am experiencing an issue trying to create a continuous border when an edit form template is present.

<td colspan="10" style="vertical-align:top;">
    <div class="rgEditForm">
    </div>
</td

In the code above, created when the grid renders the edit template, I have access to the CSS for rgEditForm, but the div created is 2px shorter both width and height than the td.  Thus, applying a border to the right results in a border that is 1px inset from the rest of the grid.

My question is, can I change the style declaration that sits on the td?  If I could append something after the vertical-align declaration, it would solve my problem.  Is this possible?
Galin
Telerik team
 answered on 22 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?