Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
Hi,

I'm trying to load a page with a radgrid on it. It has around 100 rows, each time I try and load the page it freezes the browser and shows an IE dialog box with Stop running this script. A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive.  The radgrid has itemtemplates with around 1400 radtimepicker.

I've disabled clientsidescript to increase the performance , but no difference.

Please can someone help?

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 29 Jan 2014
2 answers
324 views
Hi,
Is there a way to use data source control parameters with user controls in a rad grid template?  I added the insert template code where the user control is used (textbox1) and the data source code portion where I try to use a textbox1 as a control parameter for the data source, I get the error: Could not find control 'txtbox1' in ControlParameter 'Answer1'.
<telerik:GridTemplateColumn DataField="Answer1"
            FilterControlAltText="Filter Answer1 column" HeaderText="Answer1"
            SortExpression="Answer1" UniqueName="Answer1" Visible="False">
            <InsertItemTemplate>
                <asp:TextBox ID="txtbox1"  runat="server"></asp:TextBox>
            </InsertItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>


<asp:SqlDataSource ID="QuestionIDDatasource" runat="server"
       ConnectionString="<%$ ConnectionStrings:TESTGAMEConnectionString %>"
        
       SelectCommand="SELECT Questions.QuestionID, QuestionText.QuestionsText, Language.LanguageName, QuestionType.QuestionTypeName, Scenario.ScenarioName, Badges.BadgeName, QuestionType.QuestionTypeID, Badges.BadgeID, Scenario.ScenarioID, QuestionText.QuestionTextID, Language.LanguageID FROM Badges RIGHT OUTER JOIN Questions LEFT OUTER JOIN QuestionType ON Questions.QuestionTypeID = QuestionType.QuestionTypeID ON Badges.BadgeID = Questions.BadgeID LEFT OUTER JOIN Scenario ON Questions.ScenarioID = Scenario.ScenarioID LEFT OUTER JOIN Language INNER JOIN QuestionText ON Language.LanguageID = QuestionText.LanguageID ON Questions.QuestionID = QuestionText.QuestionID WHERE (Questions.EventID = @EventID)"
       InsertCommand="sp_questions_INS"
       UpdateCommand="UPDATE Questions SET QuestionTypeID = @QuestionTypeID, BadgeID = @BadgeID, ScenarioID = @ScenarioID WHERE (QuestionID = @QuestionID)"
       InsertCommandType="StoredProcedure">
       <InsertParameters>
             <asp:ControlParameter  ControlID="CurrentEvent" Name="EventID" PropertyName="Value"
               Type="Int32"/>
               <asp:ControlParameter  ControlID="txtbox1" Name="Answer1" PropertyName= "text"
               Type="String"/>
                <asp:ControlParameter  ControlID="ddLanguage" Name="LanguageID" PropertyName= "SelectedValue"
               Type="Int32"/>
           <asp:Parameter Name="ScenarioID" />
           <asp:Parameter Name="BadgeID" />
           <asp:Parameter Name="QuestionTypeID" />
             <asp:Parameter Name="QuestionsText" Type="String" />
             <asp:Parameter Name="QuestionID" Type="Int32" />
              
       </InsertParameters>

-Tony
Top achievements
Rank 1
 answered on 29 Jan 2014
2 answers
63 views
Hello,

If you look at the product page of the Telerik ASP.NET Ajax suite (http://www.telerik.com/products/aspnet-ajax.aspx) and half way the page you can select the different themes available. There you can see a professional looking matching background images for each theme. Are those available for download as well?

Regard,
Frank Witte
Frank Witte
Top achievements
Rank 1
 answered on 29 Jan 2014
2 answers
242 views
Can someone help explain how I set the default value in teh a RadTimePicker.  By that I mean when my page loads I want to see 12:00 AM in one case and  23:59 AM in another case.  I have tried so many different things with no luck!
Jesse
Top achievements
Rank 1
 answered on 29 Jan 2014
8 answers
166 views
Hello,

I'm currently using the Editor and I am facing troubles with the bullet list. When I use the Editor in Chrome, the font gets changed to Times New Roman. I do not have this problem in IE and Firefox.

I use the following code:
<telerik:RadEditor runat="server" ID="RadEditor1" Width="800px" Height="500px" SkinID="DefaultSetOfTools"
    ToolsFile="~/Beheer/Traject/tools.xml">
    <CssFiles>
        <telerik:EditorCssFile Value="~/Beheer/Traject/radeditor.css" />
    </CssFiles>
</telerik:RadEditor>


The following code is the content of the CSS file.

.RadEWrongWord
{
    background-color: yellow;
}
.RadEDomMouseOver
{
    background-color:#ffffcc;
}
body
{
    padding:3px;
    background-image: none;
    margin: 0px;
    text-align: left;
    scrollbar-face-color: #E9E9E9;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: #E9E9E9;
    scrollbar-3dlight-color: #DBDBDB;
    scrollbar-arrow-color: #787878;
    scrollbar-track-color: #F5F5F5;
    scrollbar-darkshadow-color: #AEAEAE;
    word-wrap: break-word;
}
form
{
    background-color:#efefef;
    border:1px dashed #555555;
}
table
{
    BORDER-RIGHT: #999999 1px dashed;
    BORDER-BOTTOM: #999999 1px dashed;
}
table td
{
    PADDING: 1px;
    BORDER-TOP: #999999 1px dashed;
    BORDER-LEFT: #999999 1px dashed;
}
table th
{
    PADDING: 1px;
    BORDER-TOP: #000000 1px dashed;
    BORDER-LEFT: #000000 1px dashed;
}
OL
{
    list-style-type: decimal;
}
OL OL
{
    list-style-type: decimal;
}
UL
{
    list-style-type: disc;
}
UL UL
{
    list-style-type: circle;
}

Any help with the problem would be much appriciated.

Regards,

Corné
Ianko
Telerik team
 answered on 29 Jan 2014
3 answers
102 views
Hello, please see attached PNG that show the resize handles for a selected image. Notice that as I scroll down the handles are shown above the editor menu and outside the editor. The editor is shown within a tooltip. Everything else is working correctly. I am assuming this is a z-index issue. Note that I set the tooltip z-index to 2000 but that is the only z-index setting I set. Thank you!
Marin Bratanov
Telerik team
 answered on 29 Jan 2014
1 answer
49 views
I couldn't build the solution since i'm getting the follwing error:-

Error 1 The "OpenAccessDeploy" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory. Telerik.SalesDashboard.DAL

Hope anyone could help out to fix this issue. thanks
Maria Ilieva
Telerik team
 answered on 29 Jan 2014
1 answer
85 views
Im getting the follwoing error when i build the sales dashboard demo solution,

Error 4 The "OpenAccessDeploy" task could not be loaded from the assembly C:\Users\$$-kherath\Desktop\SalesDashBoard\ReferencesTRIAL\Telerik OpenAccess\enhancer.exe. Could not load file or assembly 'Telerik.OpenAccess, Version=2013.3.1014.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. Telerik.SalesDashboard.DAL

How can i fix this?
Maria Ilieva
Telerik team
 answered on 29 Jan 2014
9 answers
157 views
Greetings:
    I have an aspx. page that I'm using as an EditForm for a Radgrid. The Radgrid is contained on this page as a UserControl. Therefore, I have a button on this page that I'm using to direct the appropriate commandname needed in the control's code-behind. This works fine to edit/update a record from the Radgrid. However, I can't wrap my head around getting this to work for Inserting a record. The following is my button click event that creates an error when inserting ("Index was outside the bounds of the array")

protected void SaveChanges_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                RadGrid EquipInvGrid = (this.Master.FindControl("ContentPlaceHolder1").FindControl("EquipInvListControl").FindControl("rg_EquipInvList")) as RadGrid;
 
                if (rtbFormMode_Hdn.Text == "Update")
                {
                    (EquipInvGrid.SelectedItems[0] as GridDataItem).FireCommandEvent(RadGrid.UpdateCommandName, string.Empty);
                }
                else
                {
                    EquipInvGrid.MasterTableView.IsItemInserted = true;
                    (EquipInvGrid.MasterTableView.GetItems(GridItemType.CommandItem)[0] as GridCommandItem).FireCommandEvent(RadGrid.PerformInsertCommandName, string.Empty);
                }
            }
            else
            {
                rnotif_Validation.Show();
            }
        }

 

Any help is much appreciated.

Walt

 

 

 

Viktor Tachev
Telerik team
 answered on 29 Jan 2014
1 answer
86 views
Hi below is my aspx and aspx.cs file , I am trying to export all data(MasterTableView and DetailsTableView), But my excel file has an icon in excel sheet
Attached is the screenshot of the icon and excel file,
please help me out.

 <script type="text/javascript" language="javascript">
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportMasterDataButton") > 0) {
                args.set_enableAjax(false);
            }
            if (args.get_eventTarget().indexOf("ExportDetailDataButton") > 0) {
                args.set_enableAjax(false);
            }
            if (args.get_eventTarget().indexOf("ExportMasterGridButton") > 0) {
                args.set_enableAjax(false);
            }
        }
    </script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ClientEvents OnRequestStart="onRequestStart"></ClientEvents>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="GridView12">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GridView12" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel> 

<telerik:RadGrid ID="GridView12" runat="server" Width="100%" AutoGenerateColumns="false"
            PageSize="10" EnableLinqExpressions="false" AllowSorting="True" AllowFilteringByColumn="True"
            OnDetailTableDataBind="GridView12_DetailTableDataBind" enablelinqexpression="false"
            AllowPaging="True" CellSpacing="1" Style="padding: 1px;" Skin="Default" OnNeedDataSource="GridView12_OnNeedDataSource"
            OnPreRender="GridView12_PreRender" OnItemCreated="GridView12_OnItemCreated" OnItemCommand="GridView12_OnItemCommand">
            <ClientSettings>
                <Selecting AllowRowSelect="False" />
                <Scrolling AllowScroll="true" ScrollHeight="400px" UseStaticHeaders="true" />
            </ClientSettings>
            <ExportSettings Excel-Format="Html" ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
            </ExportSettings>
            <MasterTableView Name="TypeSummary" DataKeyNames="type_id" ClientDataKeyNames="type_id"
                NoMasterRecordsText="<center>No viewings are available" CommandItemDisplay="Top">
                <HeaderStyle Font-Size="14px" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True" />
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True" />
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="Type_Name" SortOrder="Ascending" />
                </SortExpressions>
                <CommandItemTemplate>
                    <asp:Button ID="ExportMasterDataButton" runat="server" CommandName="ExportMasterData"
                        ClientIDMode="Static"></asp:Button>
                    <asp:Button ID="ExportMasterGridButton" runat="server" ClientIDMode="Static" CommandName="ExportAllMasterDetailsData" />
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="Type_Name" SortExpression="Type_Name" HeaderText="Type Name"
                        HeaderButtonType="None" UniqueName="TypeName" ItemStyle-Width="100px" ShowSortIcon="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Total_Duration" SortExpression="Total_Duration"
                        HeaderText="Total Duration" UniqueName="TotalDuration" ItemStyle-Width="100px"
                        ShowSortIcon="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Num_Contacts" SortExpression="Num_Contacts" HeaderText="Num Contacts"
                        UniqueName="NumContacts" ItemStyle-Width="100px" ShowSortIcon="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Virtual_Num_contacts" SortExpression="Virtual_Num_contacts"
                        ShowSortIcon="true" HeaderText="Num Group Contacts" UniqueName="NumGroupContacts"
                        ItemStyle-Width="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Average_Duration" SortExpression="Average_Duration"
                        HeaderText="Average Duration" UniqueName="AverageDuration" ShowSortIcon="true"
                        ItemStyle-Width="100px">
                    </telerik:GridBoundColumn>
                </Columns>
                <DetailTables>
                    <telerik:GridTableView Name="TypeList" DataKeyNames="type_id" Width="100%" Height="100%"
                        NoDetailRecordsText="<center>No viewings are available</center>" AllowFilteringByColumn="true"
                        ShowHeadersWhenNoRecords="true" AllowPaging="true" AllowSorting="true" PageSize="10"
                        CommandItemDisplay="Top" HierarchyLoadMode="ServerOnDemand">
                        <HeaderStyle Font-Size="14px" />
                        <SortExpressions>
                            <telerik:GridSortExpression FieldName="Access_Date" SortOrder="Ascending" />
                        </SortExpressions>
                        <CommandItemTemplate>
                            <asp:Button ID="ExportDetailDataButton" runat="server" CommandName="ExportDetailsData"
                                ClientIDMode="Static"></asp:Button>
                        </CommandItemTemplate>
                        <Columns>
                            <telerik:GridDateTimeColumn FilterControlWidth="175px" DataField="Access_Date" HeaderText="Date of Viewing"
                                SortExpression="Access_Date" UniqueName="AccessDate" PickerType="DateTimePicker"
                                DataFormatString="{0:MM/dd/yyyy hh:mm tt}" ShowFilterIcon="True" ShowSortIcon="True"
                                DataType="System.DateTime" AllowFiltering="true">
                            </telerik:GridDateTimeColumn>
                            <telerik:GridBoundColumn DataField="First_Name" SortExpression="First_Name" HeaderText="First Name"
                                HeaderButtonType="None" UniqueName="FirstName" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Last_Name" SortExpression="Last_Name" HeaderText="Last Name"
                                HeaderButtonType="None" UniqueName="LastName" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn DataField="Email_Address" HeaderText="Email Address" ItemStyle-Width="100px" FilterControlWidth="100px"
                                SortExpression="Email_Address" UniqueName="EmailAddress" ShowSortIcon="true" AllowFiltering="true">
                                <ItemTemplate>
                                    <a onclick="viewVirtualContact(<%#Eval("contact_id")%>,<%#Eval("isvirtualcontact")%>)">
                                        <%# Eval("Email_Address") %></a>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Business_title" SortExpression="Business_title"
                                HeaderText="Title" HeaderButtonType="None" UniqueName="Title" ItemStyle-Width="100px"
                                FilterControlWidth="100px" ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="city" SortExpression="city" HeaderText="City"
                                HeaderButtonType="None" UniqueName="City" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="state" SortExpression="state" HeaderText="State"
                                HeaderButtonType="None" UniqueName="state" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="country" SortExpression="country" HeaderText="Country"
                                HeaderButtonType="None" UniqueName="country" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Video_Event_Name" SortExpression="Video_Event_Name"
                                HeaderText="Video Event Name" HeaderButtonType="None" UniqueName="VideoEventName"
                                ItemStyle-Width="100px" FilterControlWidth="100px" ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Video_Viewed" SortExpression="Video_Viewed" HeaderText="Session Viewed"
                                HeaderButtonType="None" UniqueName="VideoViewed" ItemStyle-Width="150px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Duration" SortExpression="Duration" HeaderText="Duration"
                                HeaderButtonType="None" UniqueName="Duration" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Sales_Status" SortExpression="Sales_Status" HeaderText="Sales Status"
                                HeaderButtonType="None" UniqueName="SalesStatus" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ProspectValue" SortExpression="ProspectValue"
                                HeaderText="Prospect Value" HeaderButtonType="None" UniqueName="ProspectValue"
                                ItemStyle-Width="100px" FilterControlWidth="100px" ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="iplocation" SortExpression="iplocation" HeaderText="Location"
                                HeaderButtonType="None" UniqueName="iplocation" ItemStyle-Width="100px" FilterControlWidth="100px"
                                ShowSortIcon="true" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <PagerStyle AlwaysVisible="true" PageSizeControlType="RadDropDownList" />
                    </telerik:GridTableView>
                </DetailTables>
                <PagerStyle AlwaysVisible="true" PageSizeControlType="RadDropDownList" />
            </MasterTableView>
            <FilterMenu EnableImageSprites="False" />
        </telerik:RadGrid>

Below is the code snippet in my aspx.cs file
 GridView12.ExportSettings.FileName = "AllDetails";
                GridView12.MasterTableView.UseAllDataFields = true;
                GridView12.MasterTableView.HierarchyDefaultExpanded = true;
                GridView12.MasterTableView.ExportToExcel();

HTML is the excel format of export 

 GridView12.ExportSettings.FileName = "AllDetails";
                GridView12.MasterTableView.UseAllDataFields = true;
                GridView12.MasterTableView.HierarchyDefaultExpanded = true;
                GridView12.MasterTableView.ExportToExcel();






Shinu
Top achievements
Rank 2
 answered on 29 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?