Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
39 views
I want to edit the series of appointment on drag drop....

I want if i want to drag the one appoint then automatically edit the series of whole that appointment ( automatically update the recurrence rule)


AppointmentsBL objAppointmentNew = new AppointmentsBL();
                            objAppointmentNew.ClinicId = -1;
                            objAppointmentNew.InstructorId = intInstructorId;
                            objAppointmentNew.Start = e.ModifiedAppointment.Start;
                            objAppointmentNew.End = e.ModifiedAppointment.End;
                            objAppointmentNew.RecurrenceParentID = Convert.ToInt32(e.Appointment.RecurrenceParentID);
                            objAppointmentNew.RecurrenceRule = e.ModifiedAppointment.RecurrenceRule;
 
                            objAppointmentNew.Annotations = string.Empty;
                            objAppointmentNew.Reminder = string.Empty;
                            objAppointmentNew.Subject = e.ModifiedAppointment.Subject;
                            objAppointmentNew.Description = e.ModifiedAppointment.Description;
                            objAppointmentNew.UserId = intInstructorId;
                            objAppointmentNew.Save();


the above code is used. It's updated start date and end date proper but not update recurrence rule.. ?

how to do this. Please help it's urgent. Please reply me within 24 hour





thanks
Rahul
Top achievements
Rank 1
 asked on 16 Mar 2011
5 answers
208 views
So I followed the instructions from this forum to remove the borders from the window. 
.rwCorner,
.rwTopResize,
.rwFooterCenter,
.rwTitebar
{
display: none !important;
}
.rwTitlebar
{
background-attachment:fixed;
background-position: 0 -6px !important;
}

In the I set the opacity property for the window to 90
<telerik:RadWindow ID="xxx" runat="server" NavigateUrl="xxx" Opacity="90" Behaviors="Close" Modal="true" Height="200px" Width="245px" OnClientClose="pBakc"/>
 

Everything works fine in firefox and Chrome. The window displays with no borders and it's background is see-through. In ie, the borders are gone, but the background is white.

What am I doing wrong? Why is the background white for ie?

Help please.


Marin Bratanov
Telerik team
 answered on 16 Mar 2011
3 answers
123 views
I have a tool tip that I want to show after a form submit to say record inserted. I created the tool tip and then tried to show it in the server code but it's not working what am I missing. Here is the tool tip code

        <telerik:RadToolTip runat="server" ID="success" Height="60px" Width="250px"
                                    Position="Center" RelativeTo="BrowserWindow" AutoCloseDelay="5000">
                                </telerik:RadToolTip>

Here is what i tried in my vb code behind
        success.Text = "The customer was added"
        success.Visible = True
Marin Bratanov
Telerik team
 answered on 16 Mar 2011
4 answers
116 views
I am working on a project whereby we need keyboard command accessibility with the RadGrid for a rapid data review process. Unfortunately I appear to be running into an unexplained variation between row selection behaviours on the client side. I have currently extended the default behaviour of the RadGrid using external classes and supporting javascript to perform the following features (all using AJAX where necessary):

  1. To ensure the RadGrid retains the keyboard focus after a postback that performs an insert/update, so that the user may continue to navigate along the rows using the cursor keys
  2. To ensure that the last edited row index is added to the server side grid instance's SelectedIndexes property before prerender, so that the user can continue to navigate along the rows using the cursor keys from the last row that they edited
  3. To ensure the first editor control contained within a cell of an edited row acquires the keyboard focus on an initinsert / edit, initiated by pressing the enter key
  4. To ensure that the editor control within a cell captures the keyboard focus when that cell is double clicked on by the user

Implementing all of this has been thus far pretty painless. I would first of all like to express that I couldn't be happier with the server-side documentation and examples for the control, however the the client side API documentation is severely lacking and I see that in some circumstances other users are left with little choice other than to come to the forums for help (although I can sympathise with the documentation challenges that Javascript development represents). Hence why I am here. Sad face.

I would like to draw your attention to your following RadGrid keyboard support example, where the problem I am about to describe manifests itself: http://demos.telerik.com/aspnet-ajax/grid/examples/client/keyboardnavigation/defaultcs.aspx

I would recommend switching to the Office2007 skin which makes the unexplained variation in selection behaviour more apparent.

The problem is thus:

  1. Select a row using the mouse. The selected row turns orange.
  2. Select another row using the mouse. The previous row is deselected, the newly selected row now turns orange. Lets call this behaviour "A".
  3. Using the up or down cursor arrow on the keyboard, the selection behaviour changes. The appearance of the selected row is now light blue.
  4. Navigate across as many rows as you like with the cursor keys, the selected row remains light blue. Lets call this behaviour "B".
  5. Now using the mouse, repeat steps 1 and 2. The selection behaviour has transitioned permanently from behaviour "A" to behaviour "B".

On the pre-render behaviour described for 2nd implemented feature, I perform the following:

_grid.SelectedIndexes.Add(_editedItem.ItemIndex) 

When the grid appears in the browser, the row is selected with the appearance of selection behaviour "A". When the grid is in this mode, the Enter key does not initiate editing as I would expect. However, transitioning to behaviour "B" as described above, and Enter will initiate editing.

What is the difference between behaviours "A" and "B"? Why is the selection behaviour transition permanent? How would I initialise the grid after an AJAX response into behaviour "B" by default?


Many thanks

TLK
Daniel
Telerik team
 answered on 16 Mar 2011
1 answer
82 views
I am currently displaying a derived column to show true/false if one date field in my data source is greater than the other using rad grid control. Is it possible to sort that field? If yes, what should be given in the sort expression?

Thanks in advance,
Karthi.
Iana Tsolova
Telerik team
 answered on 16 Mar 2011
3 answers
60 views
Hello there,
i was viewing the demos for the Scheduler control. There is a visual glitch when it is in Monthly mode, double click on an empty cell and the popup is cut by the column border. Have a look at the attachment for a screen shot.
Veronica
Telerik team
 answered on 16 Mar 2011
2 answers
128 views
Hello!
I'm trying to customize RadTabStrip tab's appearance using the TabTemplate property. But it looks like this property doesn't work at all. I implemented a class to be used as a template:
public class TestTabTpl : ITemplate
{
    public void InstantiateIn(Control container)
    {
        // TODO: Implement this method
        Label lblCtrl = new Label();
  
        lblCtrl.Text = "Text message";
  
        container.Controls.Add(lblCtrl);
    }
}

Then when I'm trying to use it as a TabTemplate
protected void Page_Load(object sender, EventArgs e)
{
    foreach (RadTab tab in RadTabStrip1.Tabs)
    {
        tab.TabTemplate = new TestTabTpl();
    }
}
it doesn't work.

I've tried to test if the TestTabTpl class works using RadGrid:
protected void Page_Load(object sender, EventArgs e)
{
    foreach (GridBoundColumn col in RadGrid1.Columns)
    {
        col.FilterTemplate = new TestTabTpl();
    }
}

And it works like a charm!

Could you please verify if I'm using this property correctly or confirm that it can not be used from code?
Thank you!
Foenix
Top achievements
Rank 1
 answered on 16 Mar 2011
5 answers
441 views
Hello

I hv some problem when give the pagesize = 100 that time when i post back the  page the 100 zero is come on next line why this problem occure

<telerik:RadGrid ID="dgProposals" runat="server" GridLines="None" AutoGenerateColumns="False"
                                                                        Skin="Black" AllowMultiRowSelection="True" AllowPaging="True" PageSize="100  "
                                                                        AllowSorting="True" ShowStatusBar="true" Height="446px" Width="988px">

the drop down list is display page numbering like this
10
20
50
100

when select 100 ok
when i select 50 that time the dropdown list is diplay like this
10
20
50
10


the zero come next line

any property set the width of dropdownlist ?

urgent
Randall
Top achievements
Rank 2
 answered on 16 Mar 2011
2 answers
162 views
<td class="rightCell" style="width: 130px;">
                                        <telerik:RadComboBox ID="cmboSize1" Width="240px" Height="300px" runat="server" AutoPostBack="false"
                                            DataTextField="SIZE_1_DESC" DataValueField="SIZ_1_CDE" EnableLoadOnDemand="true"
                                            HighlightTemplatedItems="true" AllowCustomText="true" OnClientKeyPressing="HandleKeyPress">
                                            <ItemTemplate>
                                                <div onclick="StopPropagation(event)">
                                                    <asp:CheckBox runat="server" ID="chk1" Checked="false" />
                                                    <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1" Text='<%# Eval("SIZE_1_DESC") %>'>                        
                                                    </asp:Label>
                                                </div>
                                            </ItemTemplate>
                                            <Items>
                                                <telerik:RadComboBoxItem Text='<%# Eval("SIZE_1_DESC") %>' />
                                            </Items>
                                        </telerik:RadComboBox>
                                    </td>
                                    <td class="leftCell" style="width: 18px;">
                                        <asp:ImageButton ID="btnSize1Add" runat="server" ToolTip="Add" ImageUrl="~/App_Themes/BlueBT2009/Images/Add.gif" />
                                    </td>

The above code is the definitionof a RadComboBox that uses the OnClientKeyPressing event.  The drop down list consists of checkbox selectable items.  I'm experiencing that users are selecting items in the drop down by clicking on the checkboxes and while the drop down list is open they are hitting the Enter Key in order to make the JS function HandleKeyPress() fire off.  The real problem is that a postback for the image button is getting sent instead of the HandleKeyPress() JS function deciding the postback event.  I noticed that if the cursor has focus in the text area of the combobox, I get the HandleKeyPress() function to execute when the Enter Key is typed, but otherwise it seems to do a form level postback.  So my questions to you are:

1)  Can the Combobox control capture the Enter keystroke if the user is making checkbox selections in the drop down list while the list is open and does not have the focus of the cursor in the text area of the combobox?  If so, how to make this happen?

2) If question #1 is not possible then how to cancel the "form level" or button postback that happens when hitting the Enter Key and without cursor focus being in the combbox textarea?

Thanks!
Rob
Top achievements
Rank 1
 answered on 16 Mar 2011
3 answers
68 views
Hi!

I'm evaluating the Telerik Grid and I can´t run "Virtual scrolling client binding" with the example.

I tried several ways and can´t do work! I searched in the forum but with no success!

Can you send me a simple example, if possible in VB.NET so I can apply?

Thanks!
Tsvetina
Telerik team
 answered on 16 Mar 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?