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

 I am new to RadScheduler. Currently in our project, we need to implement resize , drag and drop appointments in radscheduler 2011.1.519.35 version.
Are these features already implemented in RadScheduler 2011.1.519.35?

Regards,
Mallesh.
 
Plamen
Telerik team
 answered on 19 Nov 2012
3 answers
200 views
I have a RadGrid with 8 Columns. The last 5 columns are editable. however what I am trying  to achieve is :

On first edit all 5 editable cells are empty, but initially need the last 3 cells to remain uneditable unless something is entered into the first two cells. 

Can anyone guide me on how to do that?

Thx

Mark
Shinu
Top achievements
Rank 2
 answered on 19 Nov 2012
2 answers
170 views
hi

i am trying to use the radmenu with peritem templates as i want some specific functionality there , i saw several of your demos where you had buttons etc inside a menu item , and they had Server OnClick events attached to them.

when i set up the menu with the template , it gives me no option to access the controls on the server side , or even attach an event to it , 
this is a rough copy of the menu , but on the server side i cannot access any of the controls in it .

<telerik:RadMenu ID="RadMenu1" runat="server" Height="30px" Skin="WebBlue" Width="100%"
            ClientIDMode="AutoID">
            <Items>
                <telerik:RadMenuItem runat="server" AccessKey="M" Text="My Dashboards">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Edit">
                    <Items>
                        <telerik:RadMenuItem Text="Rename dashboard" AccessKey="S" PostBack="true" />
                        <telerik:RadMenuItem Text="Set as default dashboard" AccessKey="R" PostBack="true" />
                        <telerik:RadMenuItem Text="Delete current dashboard" AccessKey="D" PostBack="true" />
                        <telerik:RadMenuItem Text="Delete multiple dashboards" runat="server">
                            <GroupSettings Height="600px" Flow="Vertical"></GroupSettings>
                            <Items>
                                <telerik:RadMenuItem CssClass="rmItemE" runat="server">
                                    <ItemTemplate>
                                        <asp:CheckBoxList ID="DeleteDash" runat="server">
                                        </asp:CheckBoxList>
                                        <asp:Button runat="server" OnClientClick="if(!confirm('Are you certain you want to delete?')){return false;}"
                                            Text="Delete selected" ID="deleteseldbs" />
                                    </ItemTemplate>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Share dashboard" AccessKey="W" />
                        <telerik:RadMenuItem Text="Print selected charts" AccessKey="o">
                            <Items>
                                <telerik:RadMenuItem Text="1 chart on each page" Value="1">
                                    <Items>
                                        <telerik:RadMenuItem CssClass="rmItemE">
                                            <ItemTemplate>
                                                <asp:CheckBoxList runat="server" ID="pdfmentexts">
                                                    <asp:ListItem Text="Caption" Value="C"></asp:ListItem>
                                                    <asp:ListItem Text="Private note" Value="P"></asp:ListItem>
                                                    <asp:ListItem Text="Shared note" Value="S"></asp:ListItem>
                                                </asp:CheckBoxList>
                                                <asp:Button ID="Button6" runat="server" Text="Create pdf" />
                                            </ItemTemplate>
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="2 charts on each page" Value="2">
                                    <Items>
                                        <telerik:RadMenuItem CssClass="rmItemE">
                                            <ItemTemplate>
                                                <asp:CheckBoxList ID="CheckBoxList1" runat="server">
                                                    <asp:ListItem Text="Caption" Value="C"></asp:ListItem>
                                                    <asp:ListItem Text="Private note" Value="P"></asp:ListItem>
                                                    <asp:ListItem Text="Shared note" Value="S"></asp:ListItem>
                                                </asp:CheckBoxList>
                                                <asp:Button ID="Button2_pdf" runat="server" Text="Create pdf" />
                                            </ItemTemplate>
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="4 charts on each page" Value="4">
                                    <Items>
                                        <telerik:RadMenuItem CssClass="rmItemE">
                                            <ItemTemplate>
                                                <asp:CheckBoxList ID="CheckBoxList2" runat="server">
                                                    <asp:ListItem Text="Caption" Value="C"></asp:ListItem>
                                                    <asp:ListItem Text="Private note" Value="P"></asp:ListItem>
                                                    <asp:ListItem Text="Shared note" Value="S"></asp:ListItem>
                                                </asp:CheckBoxList>
                                                <telerik:RadButton ID="btnCreatePDF" runat="server" Text="Create pdf" EnableBrowserButtonStyle="True"
                                                    OnClick="btnCreatePDF_Click">
                                                </telerik:RadButton>
                                            </ItemTemplate>
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Export selected to PowerPoint" AccessKey="i">
                            <Items>
                                <telerik:RadMenuItem Text="1 chart on each page" Value="1" />
                            </Items>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Copy this dashboard" AccessKey="M" />
                        <telerik:RadMenuItem Text="MultiCopy dashboards" AccessKey="G" />
                        <telerik:RadMenuItem Text="Select all items" AccessKey="C" />
                        <telerik:RadMenuItem Text="Link to this dashboard" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Shared Dashboards">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Back to main Menu" NavigateUrl="Default.aspx">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Current Dashboard :" Width="400px">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Logged in as :">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
Princy
Top achievements
Rank 2
 answered on 19 Nov 2012
1 answer
147 views
Hi all,

I've been using the RadControls (particularly RadGrid) for about a month now and i just found a weird bug with my RadGrid app when I tried to add additional condition to the sqldatasource query string. 

in my scenario, i have a list of employees and I'd like to exempt the Resigned employees from the active duty list by using the following query:
[code]
<asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings: grabber %>"
        SelectCommand="SELECT [DriversID], [Name], [DOB], [POB], [IDNumber], [LicenseNumber], [Address1], [Address2], [Mobile],
                              [Phone], [Country]
                       FROM [Drivers] WHERE DriversID = @DriversID AND Resigned is NULL"
        runat="server">
[/code] theoretically this should work however I'm quite surprised to find that the RadGrid still displays those Resigned employees. I've tried numerous query combinations to no avail. I hope someone could shed a little light into this. thanks in advance
Bernard
Top achievements
Rank 2
 answered on 19 Nov 2012
1 answer
145 views
I am using a radtabstrip with a radmultipage. When I click a button on pageview1 I want to dynamically create and add controls to the radAjaxPanel on pageview2. When I run my application I click the button and the controls are not being displayed in the panel at all.

EDIT- If I move the AjaxPanel Outside of the Multipage PageView it works! But I need to use it inside the pageview.

Markup (I didnt include everything)
<telerik:AjaxSetting AjaxControlID="radButtonStep3Next">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radAjaxPanel" />
                <telerik:AjaxUpdatedControl ControlID="radTabStripAddAssetWizard"  />
                <telerik:AjaxUpdatedControl ControlID="radMultiPageAddAsset" />
            </UpdatedControls>
</telerik:AjaxSetting>
<telerik:RadButton ID="radButtonStep3Next" runat="server"
                Text="Next" Skin="Sunset" ValidationGroup="validationGroupStep3"
                onclick="radButtonStep3Next_Click"></telerik:RadButton>
<telerik:RadAjaxPanel ID="radAjaxPanel" runat="server">
 </telerik:RadAjaxPanel>

CodeBehind
private void GenerateCompanyControls()
      {
  
          TextBox txtbx = new TextBox() { ID = "testTextBox" };
          radAjaxPanel.Controls.Add(txtbx);
  
      }
protected void radButtonStep3Next_Click(object sender, EventArgs e)
 {
     GenerateCompanyControls();
 }
Brett
Top achievements
Rank 1
 answered on 19 Nov 2012
1 answer
97 views
When going into edit mode either by clicking the edit command button or double clicking the row, is it possible to keep the row highlighted a different color so it is obvious which row is being edited?

Also, is it possible to auto scroll the edit form into view.  For instance if I click the edit command button on the last visible row in the gridview, you then have to scroll down to find the edit form.  I would like to auto scroll to it for the user.

Thanks,
Derek
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Nov 2012
4 answers
251 views
Most of the time I can use the Debugger in VS 2008 to debug javascript.  Occasionally it seems to stop working, i.e. the processor doesn't stop at my breakpoints.

Can anyone set me straight as to why this might happen - maybe I am using it incorrectly or have placed my JS in the wrong part of the document.  I currently have it in a RadCodeBlock within the form of the doc.

  <form id="form1" runat="server"
     
     
        
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
        <script type="text/javascript"
        <!-- 
            //Custom js code section used to edit records, store changes and switch the visibility of column editors 
            //global variables for edited cell and edited rows ids 
            var editedCell; 
            var arrayIndex = 0
            var editedItemsIds = []; 
 
            function RowCreated(sender, eventArgs) { 
                var dataItem = eventArgs.get_gridDataItem(); 
 

mmbm
Top achievements
Rank 2
 answered on 17 Nov 2012
1 answer
82 views
I am doing all my Grid Building using Server-Side code (class I created) because it's dynamic.

I created a class implementing ITemplate. In this class I create a single Label control within the InstantiateIn() method and I add it to the controls array.

When the grid loads, it shows all the parent rows, and it show the ">" button on the left of each row to expand and view it's details. However, when I click the ">" button, the grid refreshes and all the ">" buttons vanish. The nested rows seem to have all dissapeared. I am assuming there is an event that runs when the ">" button is clicked, and somehow because my grid is dynamic, I lose the detail rows. Anyone know what event I might be overlooking on the click of ">" to fix me problem?

-Ben
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2012
1 answer
90 views
How to achieve validation of required fields and datatype check when AutogenerateCoulmns is set ot TRUE?
I tried looknig at the demo, most of them use templates Asample proj might help thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Nov 2012
1 answer
61 views
In my RadGrid, Autogeneratecolumns = true,
<
<Columns>
                   <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" EditImageUrl="../Images/Edit.png" ></telerik:GridEditCommandColumn>                   
                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton"  ImageUrl="../Images/Delete.png"></telerik:GridButtonColumn> 
                </Columns>
>

How do I display a message when Delete button is clicked, as 'OnClientClick' is not a valid event for GridButtonColumn ?
Ed Lance
Top achievements
Rank 1
 answered on 17 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?