Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
Hi,

By default in the week view the time is aligned vertically and the days are aligned horizontally.

Is there any way I can get the time to align horizontally and the days vertically? (please look at the attachment for an example)


Ivana
Telerik team
 answered on 11 Nov 2011
7 answers
120 views
Hi,

I am experiencing a problem in my scheduler. When I drag resize an appointment in week og day mode, the Recorrencerule is not updated, although I check the "resize the series" radio. This results in the appointment Start and End times being updated, but not the RecurrenceRule.

I am taking the RecurrenceRule from the "appointmentToUpdate" parameter and putting that into the appointment I want to update.

public override void Update( RadScheduler owner, Appointment appointmentToUpdate ) { 
      HL_Appointment app = GetDBAppointment( appointmentToUpdate ); 
      if( app != null ) { 
        app.End = appointmentToUpdate.End; 
        int redParID = 0; 
        if( appointmentToUpdate.RecurrenceParentID != null && int.TryParse( appointmentToUpdate.RecurrenceParentID.ToString(), out redParID ) ) 
          app.RecurrenceParentID = redParID; 
        app.RecurrenceRule = appointmentToUpdate.RecurrenceRule; 
        app.Start = appointmentToUpdate.Start; 
        app.Subject = appointmentToUpdate.Subject; 
        ReadyUpdateAppointmenRessources( appointmentToUpdate ); 
        db.SubmitChanges(); 
      } 
    } 


Am I forgetting some small setting somewhere?



Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
66 views
Hey Telerik,

Just a quick question. I experienced a pretty curious bug under Internet Explorer.

The web application I'm building upon has a Master Page which defines some a horizontal navigation bar at the top of the page.

After opening a RadWindow with Content Template, then closing the RadWindow, the horizontal navigation bar becomes invisible. This only occurs on Internet Explorer, only with Content Template RadWindows, and only if they are Modal.

I was especially careful to go through all of my code and make sure there were no early terminations of HTML mark-up controls. That is, something like 
<div id="foo" />

would not be acceptable due to the parsing standards of IE. As such, I am confident in saying that I am properly terminating my HTML mark-up.

That being said, I was able to resolve the issue like so:

OnClientBeforeShow = "AddModal";
OnClientBeforeClose = "RemoveModal";

//Bug -- IE removes 'TopBar' when closing a modal, content template RadWindow. Circumvent by removing the property right before close.
function AddModal(radWindow) {
    radWindow.set_modal(true);
}
 
function RemoveModal(radWindow) {
    radWindow.set_modal(false);
}

Which is awesome -- I am happy to have fixed the bug. Nevertheless, I am left very curious. What's going on here? Why would this implementation have better results than setting the Modal property explicitly?

Thanks,

Sean
Marin Bratanov
Telerik team
 answered on 11 Nov 2011
1 answer
263 views

Good day;

It seems that the postback texchanged event of a radinput(textbox) control interferes with opening a radwindow as a popup. The net effect is that the window (dialog) will open and close automatically.

Unfortunatley; copyright laws prevent me from posting the source but I will do my best to explain it correctly.

I'm working on a user control composed of:
        - RADINPUT(TEXTBOX) (autopostback off)
        - ASP IMAGE BUTTON
        - RAD WINDOW object, set to modal, with the navigateurl set to "dialog.aspx", linked to the ASPIMAGEBUTTON via OpenerElementID

 
The Popup page, say dialog.aspx is composed mainly of:
    - Textbox to enter search value
    - asp image button - triggers off the search
    - radgrid to display the results

The objective of the control is to provide a text thats tied to a search dialog. If the user doesnt know the value they can search for it via the dialog, select the value they want and bring it back to the text box.

    Everything works well and is awesome. Except, a new requirement came in. God wants whatever text that users type in the textbox of the user control come across to the search dialog window and be defaulted into the textbox for the search. Perfectly reasonable.

In order to achieve this I added a querystring value to carry the value from the textbox into the dialog.aspx. In order to modify the navigateurl of the radwindow I added codebehind to the textchanged event of the user control textbox and turned on its autopostback. Mostly it works....however.....there is one scenario where I believe the postback from the textbox control is interfering with the rad windows opening.

The scenario is:
    Enter text into the textbox; without tabing out or hitting enter; click on the image button.

The action above should cause the following in order:

1. Run textbox.textchanged event and Update the navigateurl of the radwindow.
2. Open the rad window dialog.

What actually happens is that the radwindow opens and closes. If I click on the image to open it again, it seems the navigateurl did not get updated by the textbox event. In other words, it seems that clicking on the button while the focus is still on the textbox causes the postback from the textbox to get shorted and the opening of the dialog to be aborted.

I have managed to work around this by turning off the textbox's autopostback and adding some client side code. However, if in the future we need to activate the autopostback for the textcontrol in order to manage the textchanged event on any asp that implements it the problem will resurface.

Thanks in advance for the help;
David

Marin Bratanov
Telerik team
 answered on 11 Nov 2011
1 answer
39 views
Hi Telerik stuff, 

while looking the demo client-side Grid / Declarative Binding I found out that when filtering is set, no paging is possible. The 
table always returns to the first page.

No such behaviour occurs on Programatic Binding Demo.

Regards, 
Kristijan
Pavlina
Telerik team
 answered on 11 Nov 2011
2 answers
68 views
Hi

I have a rad grid which has a delete column at the end which is GridTemplateColumn.

The user can add to the form using EditMode="InPlace". When this insert row appears I want the delete button for this row to be invisible (because you can't delete a record that hasn't been inputted yet).

Does anyone know how to do this please?

Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Nov 2011
7 answers
60 views
Please have a look at the attached screen shot.

The image includes a RadTextBox and a RadEditor. The Textbox is rendered with an image as a background so it shows up dark. The edirot doesn't.

I assume that this was a concious decision on the part of someone at Telerik Towers, I just can't figure out why.

The problem I have is it looks dreadful on a page that has a lot of skinned TextBoes and a RadEditor.

Do I have an option for fixing this? By fixing it, I mean, obviously, getting it to look like the rest of the controls on a page.

--
Stuart
Rumen
Telerik team
 answered on 11 Nov 2011
2 answers
95 views
I would like to show on a table a schedule. As columns I would like to use the hours of the day, from 0h to 23h, and as columns I would like to use the month days, from 1 to 31 (or 30 depending on the month). You have an example attached as sample2.jpg.

The attached file sample1.jpg is the most similar sample I've found, trying to explain which is my goal.

I was unable to achieve it, so I'll be very grateful if you help to do it.
Ricard Bertran Vall
Top achievements
Rank 1
 answered on 11 Nov 2011
4 answers
68 views
Specifically, I need to hide the Insert Image button and associated controls on the Cell Properties tab of the Table Wizard.

I can do it with a simple bit of CSS (I believe), but I need to know how to inject CSS in to that dialog.

Any/all help will be appreciated.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
112 views
In a previous verion of Telerik controls, the following code worked, but it no longer does.  Can anyone help?  Both CustC and CustAN now return a blank value

Private Sub RadGrid2_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid2.InsertCommand
    Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
    Dim isCustCode As Boolean = False
    'Dim intAutoNumber As Integer = CType(editedItem.FindControl("AutoNumber"), TextBox).Text
    'Dim strActivity As String = CType(editedItem.FindControl("Activity"), TextBox).Text
    Dim MyUserControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)
    Dim CustC As String = CType(MyUserControl.FindControl("rcCustomer"), RadComboBox).Text
    Dim CustAN As String = CType(MyUserControl.FindControl("rcCustomer"), RadComboBox).SelectedValue

The code for the ascx page is as follows:


Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
    dsCustomers.Clear()        
  
Dim strSPName1 As String = ""
          
  
  
        If (Session("SalesPersonID") = "0" And Session("CSRID") <> "0") Or Session("SalesPersonID") = "999" Or Session("EstimatorID") <> "0" Then
            strSPName1 = "GetCustomersActivity"
        ElseIf Session("SalesPersonID") <> "0" Then
            strSPName1 = "GetCustomersActivitySales"
        End If
  
        If strSPName1 = "" Then
            strSPName1 = "GetCustomersActivity"
        End If
  
  Dim cmd1 As New SqlCommand(strSPName1, myConnection2)
        cmd1.CommandType = CommandType.StoredProcedure
  
         
  
        If (Session("SalesPersonID") = "0" And Session("CSRID") <> "0") Or Session("SalesPersonID") = "999" Or Session("EstimatorID") <> "0" Then
        ElseIf Session("SalesPersonID") <> "0" Then
            cmd1.Parameters.Add(New SqlParameter("@SalesPersonID", Session("SalesPersonID")))
        End If
  
  
  
  
  
  
        dtAdapter2.SelectCommand = cmd1
        dtAdapter2.Fill(dsCustomers)
  
        dvCustomers = New DataView(dsCustomers.Tables(0))
  
  
        Me.dvCustomers.AddNew.Item("CustName") = " "
        Me.dvCustomers.AddNew.Item("CustName") = "  "
        Me.dvCustomers.Sort = "CustName"
        Me.dsCustomers.AcceptChanges()
  
        rcCustomer.ClearSelection()
  
        rcCustomer.DataTextField = "CustName"
        rcCustomer.DataValueField = "CustName"
        rcCustomer.DataSource = dvCustomers
        rcCustomer.DataBind()
  
    End Sub
Dimitar Terziev
Telerik team
 answered on 11 Nov 2011
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
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
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?