Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
Hi!

From server side how can i detect if the user select all items from the "UseClientSelectColumnOnly" ?
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Jun 2011
2 answers
214 views

Are there any none issues with EditMode="PopUp" and InsertItemPageIndexAction="ShowItemOnFirstPage"

If I set EditMode="PopUp" the page index does not cahnge to the first page, or any page for that matter and newly inserted records aren't on page one.

This only seems to occur when EditMode="PopUp"

 

<MasterTableView EditMode="PopUp" Caption="Caption" CommandItemDisplay="Top"
                        NoMasterRecordsText="No Rows Returned!" DataKeyNames="ID" RetrieveNullAsDBNull="False"
                        HorizontalAlign="Center" BorderWidth="1" BorderColor="Gray" BorderStyle="Solid" 
                        InsertItemPageIndexAction="ShowItemOnFirstPage">

Roger Barnes
Top achievements
Rank 1
 answered on 06 Jun 2011
3 answers
148 views
Hi,

I have develop web application using dotnetnuke
I have rad scheduler control with two time slot context menu Item
1)New Busy Slot
2)Schedule Lesson

I have two dropdownlist, calender control on the same page also.
The expected functionaliy is open modal popup on context menu clicked.
but problem is OnTimeSlotContextMenuItemClicked event is not fired 1st time ,even it doesnt fire on calender selection changed event or dropdown selection change. I found error in mozillas erro consol screen
" Error: Sys.InvalidOperationException: A control is already associated with the element.
Source File: http://localhost:54484/dotnetnuke/ScriptResource.axd?d=PHma0e-2otry_Ysyy9H2h977jLIeN8DaDTF6ErzwLL_L9Iy1W5rT2cg3BU4MorllD3c_4X0PSAs9XJKkkZku0nl5qDgzkvAliCRsP9dmNilzj8c1cMwntVYsWHdvDmjhMhE3oBeiGlN9xjWr6ZBeJ8QnEcxU3irWPFm4JQ2&t=5c2f384e
Line: 6580"

But if click on any navigate button of scheduler control and then try to clik on context menu then it works fine.
In IE work fine.


pls do reply its very urgent


Thanks
Plamen
Telerik team
 answered on 06 Jun 2011
2 answers
102 views

I searched the entire forum and I could't find one single explanation on what happens internally to the SQL table that stores the appointments, specifically the field 'RecurranceStorage' when a 'recurring exception' occurs. Please provide me with a link that can help me to understand the magic. I want to know how recurrence series keep track of exceptions like 'moving' one instance of the series to another resource or date/time. Your sample code 'ResouceGrouping' has zero code-behind.Thanks in advance.

Dan Lehmann
Top achievements
Rank 1
 answered on 06 Jun 2011
1 answer
37 views
Is there a way to carry the skin on the gridview down to the detailtables.  I set a main skin but it does not come down to the detailtable, how can this be fixed.


  <telerik:RadGrid ID="myRadGrid" runat="server" Width="95%" BorderWidth="1px" CellPadding="6" GridLines="Horizontal" BorderColor="#404040" Skin="Web20" ExportSettings-Excel-Format="Html"
                ExportSettings-FileName="DeployReport" ExportSettings-ExportOnlyData="true"
                ExportSettings-Pdf-AllowPrinting="true"><ExportSettings><Pdf FontType="Subset" PaperSize="Letter" PageTitle="No Show Report" /><Excel Format="html" FileExtension="xls" /></ExportSettings>
                <MasterTableView AutoGenerateColumns="false" HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind" BorderColor="#404040" Font-Size="10" Font-Names="Veranda,arial,sans-serif"
                HeaderStyle-HorizontalAlign="Center" ExpandCollapseColumn-ButtonType="ImageButton" ExpandCollapseColumn-CollapseImageUrl="../Images/30.png" ExpandCollapseColumn-ExpandImageUrl="../Images/29.png"
                CommandItemSettings-ShowExportToPdfButton="true" CommandItemDisplay="Top" CommandItemSettings-ShowExportToExcelButton="true" CommandItemSettings-ShowAddNewRecordButton="false"
                CommandItemSettings-ShowRefreshButton="false" CommandItemSettings-ShowExportToWordButton="true" DataKeyNames="strSSN"><AlternatingItemStyle BackColor="#B0C4DE" />
                <HeaderStyle ForeColor="White" Font-Bold="true" BorderColor="#404040" BorderWidth="1px" />
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="UIC" DataField="strUIC"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Att UIC" DataField="AttUIC"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Rank" DataField="strRank"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Name" DataField="strFullName"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="SRPType" DataField="strSrpname"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="IN" DataField="TimeIn"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Out" DataField="TimeOut"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Process Time" DataField="ProcessTime"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Deployable" DataField="deployable"></telerik:GridBoundColumn>
                    </Columns>
                    <DetailTables>
                        <telerik:GridTableView Name="mySubReport" runat="server" DataKeyNames="strSSN" TableLayout="Fixed" BorderWidth="1px" CellPadding="6" Font-Size="10" AutoGenerateColumns="false"
                            HeaderStyle-HorizontalAlign="Center" BorderColor="#404040" Font-Names="Veranda,arial,sans-serif" GridLines="Both">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="strSSN" MasterKeyField="strSSN" />
                            </ParentTableRelation>
                            <HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
                                <Columns>
                                    <telerik:GridBoundColumn DataField="strTaskName" HeaderText="Task"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="strNotes" HeaderText="Notes"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="dtFound" HeaderText="Created"></telerik:GridBoundColumn>
                                </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                 </MasterTableView>
                </telerik:RadGrid>

Princy
Top achievements
Rank 2
 answered on 06 Jun 2011
1 answer
80 views

Hi,

I am trying to implement the automatic onloaddemand mechanism of the RAD combo box. But getting following error when click on dropdown:-


"The result of query can not be enumerated more than once"

Following is the source html for location combo box. Combobox is bind to objectdata source. Highlighted portion is use for  onload demand functionality.

<telerik:RadComboBox ID="comboLocation" runat="server" Width="250px" DataTextField="Location_DisplayName"

                     DataValueField="Location_ID" DataSourceID="LocationDataSource"

                     AppendDataBoundItems="true" EnableAutomaticLoadOnDemand="true"

                     onitemsrequested="comboLocation_ItemsRequested" ShowMoreResultsBox="true"                 
                     itemsperrequest
="5" enablevirtualscrolling="true">

                    <Items>

                       <telerik:RadComboBoxItem Text="" />

                    </Items>
</telerik:RadComboBox>

 

Not able to find what is happening wrong to cause above error. Have anyone got the same issue while developoing combobox on load demand functionality.

Dimitar Terziev
Telerik team
 answered on 06 Jun 2011
4 answers
411 views
Hello, I have the following RadGrid issue:

Multiple row selection is turned on.
Client side selection is turned on.
ASP.NET AJAX RadGrid version 2009.01.0402.35.

All of this is OK:
When I select a row and then postback, SelectedIndexChanged fires correctly.
When I select a 2nd row and then postback, SelectedIndexChanged fires correctly.
When I select a 3rd row and then postback, SelectedIndexChanged fires correctly.
When I deselect a row and then postback, there are two rows selected, and SelectedIndexChanged fires correctly.
When I deselect another row and then postback, there is one row selected, and SelectedIndexChanged fires correctly.

This is the problem:  When I deselect the final selected row, so there are now no selected rows, and then post back, SelectedIndexChanged does NOT fire.  It happens every time I deselect the final selected row, regardless of how much selecting/deselecting I do.

Here is my ASPX code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddressTypes.aspx.cs" Inherits="foo.AddressTypes" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<html>
    <head runat="server">
        <title>Test Page</title>
    </head>
    <body>
        <form runat="server">
            <asp:ScriptManager ID="sm" runat="server" />
            <asp:ObjectDataSource ID="gridDS" runat="server" TypeName="foo.AddressTypes" SelectMethod="GetRecords" />
            <telerik:RadGrid ID="grid" runat="server" DataSourceID="gridDS" OnSelectedIndexChanged="Grid_SelectedIndexChanged"
                    AllowMultiRowSelection="true">
                <ClientSettings>
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>
            </telerik:RadGrid>
            <asp:Button ID="button" runat="server" Text="Postback" />
        </form>
    </body>
</html>


Here is my code-behind:
using System;
using System.Collections.Generic;
using System.Web.UI;
 
namespace foo
{
    public partial class AddressTypes : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
 
        public static Dictionary<string, string> GetRecords()
        {
            Dictionary<string, string> dict = new Dictionary<string, string>();
            dict.Add("Test 1", "Test record number 1");
            dict.Add("Test 2", "Test record number 2");
            dict.Add("Test 3", "Test record number 3");
            dict.Add("Test 4", "Test record number 4");
            dict.Add("Test 5", "Test record number 5");
            return dict;
        }
 
        protected void Grid_SelectedIndexChanged(object sender, EventArgs e)
        {
            Response.Write("SELECTED INDEXES: " + grid.SelectedIndexes.Count);
        }
    }
}


Everything works fine until that last selected row is deselected.  All of the row deselection is done using CTRL-Click, and adding a selection column to the grid is not an option.  Can you help me determine why SelectedIndexChanged does not fire when the last selected row is deselected?  Thank you.

Rich
Tsvetina
Telerik team
 answered on 06 Jun 2011
1 answer
219 views
I have followed a lot of the things online but my export filename seems to work but not the extension of the excel file.  It always ends up being aspx and it gives me the trusted file error.  I think I am getting this because it does not like the aspx extension.

 <telerik:RadGrid ID="myRadGrid" runat="server" Width="95%" BorderWidth="1px" CellPadding="6" GridLines="Horizontal" BorderColor="#404040" Skin="Web20" ExportSettings-Excel-Format="Html"
                ExportSettings-FileName="DeployReport" ExportSettings-ExportOnlyData="true"
                ExportSettings-Pdf-AllowPrinting="true"><ExportSettings><Pdf FontType="Subset" PaperSize="Letter" PageTitle="No Show Report" /><Excel Format="html" FileExtension="xls" /></ExportSettings>
                <MasterTableView AutoGenerateColumns="false" HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind" BorderColor="#404040" Font-Size="10" Font-Names="Veranda,arial,sans-serif"
                HeaderStyle-HorizontalAlign="Center" GridLines="Horizontal" CommandItemSettings-ShowExportToPdfButton="true" CommandItemDisplay="Top" CommandItemSettings-ShowExportToExcelButton="true"
                CommandItemSettings-ShowAddNewRecordButton="false" CommandItemSettings-ShowRefreshButton="false" CommandItemSettings-ShowExportToWordButton="true">
                <AlternatingItemStyle BackColor="#B0C4DE" />
                <HeaderStyle ForeColor="White" Font-Bold="true" BorderColor="#404040" BorderWidth="1px" />
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="UIC" DataField="strUIC"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Att UIC" DataField="AttUIC"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Rank" DataField="strRank"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Name" DataField="strFullName"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="SRPType" DataField="strSrpname"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="IN" DataField="TimeIn"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Out" DataField="TimeOut"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Process Time" DataField="ProcessTime"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Deployable" DataField="deployable"></telerik:GridBoundColumn>
                    </Columns>
                 </MasterTableView>
                </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 06 Jun 2011
2 answers
135 views
Hello Every One,

I'm using GridEditCommandColumn  for modify
how bind radlistbox in the GridEditCommandColumn  modify mode

i'm using assigned value for this EditFormSettings ...
Reply As soon as possible

<EditFormSettings CaptionFormatString="Create" EditFormType="Template">
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                    <FormTemplate>
                        <div style="margin-left: 10px;">
                            <table>
                                <tr>
                                    <td style="height: 100px; width: 470px;">
                                        <table style="float: right;">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                    <asp:Label ID="Label2" Text="Mandatory Field(s)" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                        <fieldset>
                                            <legend style="margin-bottom: 10px">Layout</legend>
                                            <table cellspacing="2" cellpadding="1" width="470px" border="0">
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:TextBox Width="200px" ID="LayoutId" AutoCompleteType="Disabled" runat="server"
                                                            Text='<%# Bind("LayoutId") %>' Visible="false"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        Layout Name :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox Width="200px" ID="LayoutName" AutoCompleteType="Disabled" runat="server"
                                                            Text='<%# Bind("LayoutName") %>'></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <fieldset>
                                                            <legend>Layout List</legend>
                                                            <table style="width: 450px;">
                                                                <tr>
                                                                    <td width="50%">
                                                                        <asp:Label ID="Label15" runat="server">         Selected</asp:Label>
                                                                        <telerik:RadListBox runat="server" DataTextField="Text" DataValueField="Value" ID="RadListBoxDestinationGroup"
                                                                            AutoPostBackOnReorder="true" EnableDragAndDrop="true" AllowReorder="true" Height="140px"
                                                                            Width="160px" ButtonSettings-Position="Left">
                                                                        </telerik:RadListBox>
                                                                    </td>
                                                                    <td width="50%">
                                                                        <asp:Label ID="GroupAvailable" runat="server">         Available</asp:Label>
                                                                        <telerik:RadListBox runat="server" DataSourceID="SqlDataSource1" DataValueField="COLUMN_NAME"
                                                                            DataTextField="COLUMN_NAME" ID="RadListBoxSourceGroup" AllowTransfer="true" TransferToID="RadListBoxDestinationGroup"
                                                                            SelectionMode="Multiple" AllowReorder="false" AllowDelete="false" TransferMode="Move"
                                                                            AutoPostBackOnTransfer="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true"
                                                                            Height="140px" Width="160px" ButtonSettings-Position="Left" OnTransferred="RadListBoxSourceGroup_Transferred">
                                                                        </telerik:RadListBox>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </fieldset>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        Layout UserId :
                                                    </td>
                                                    <td>
                                                        <asp:CheckBox ID="LayoutUserId" runat="server" Checked='<%# 2.Equals(Eval("LayoutUserId")) ? true : false %>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        Sort Column :
                                                    </td>
                                                    <td>
                                                        <telerik:RadComboBox ID="ComboBox_SortColumn" runat="server" Width="175px" DataValueField="ID"
                                                            DataTextField="Name">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        Sort Order :
                                                    </td>
                                                    <td>
                                                        <telerik:RadComboBox ID="ComboBox_SortOrder" runat="server" Width="175px" SelectedValue='<%# Bind("SortOrder") %>'>
                                                            <Items>
                                                                <telerik:RadComboBoxItem Text="Ascending" Value="Asc" Selected="true" />
                                                                <telerik:RadComboBoxItem Text="Descending" Value="Desc" />
                                                            </Items>
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="right">
                                                        Group Column :
                                                    </td>
                                                    <td>
                                                        <telerik:RadComboBox ID="ComboBox_GroupByColumn" runat="server" Width="175px" DataValueField="ID"
                                                            DataTextField="Name">
                                                        </telerik:RadComboBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="Button3" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                            CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                        </asp:Button>
                                        <asp:Button ID="Button4" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel">
                                        </asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </FormTemplate>
                    <PopUpSettings Modal="True"></PopUpSettings>
                </EditFormSettings>


Thanks,
Mohamed
mohamed
Top achievements
Rank 1
 answered on 06 Jun 2011
6 answers
207 views
Is there a way to disable the Image Properties (right click on image) within the Editor?  In our app, images are resized and formatted on upload so there's no need for users to use it.
Rumen
Telerik team
 answered on 06 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?