Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
179 views
Sir,

I am using Multiple selection Combo box (Chekcbox) in one of our page which has multiple control on the page.

Our user is using 'TAB' key to move focus on one control to other control. If the user clicked one of the checkbox in combo box then pressed 'TAB' Key, it wont go to the next control.


Is there any work around to use TAB key in  ComboBox - CheckBoxes?

Thank you


Muru
Kate
Telerik team
 answered on 21 Jan 2014
1 answer
128 views
I'm facing a strange behavior from Grid Filter Menu, it's showing in wrong position when page in rtl direction, when page direction is ltr the filter menu is showing in the correct position.
Please help.
Pavlina
Telerik team
 answered on 21 Jan 2014
9 answers
2.5K+ views
Hello All,

I have issue with Radwindow not display properly, i have attached the screen how the Radwindow look like.

I have check the fiddler and i found that there is issue with webresource.axd file is not loaded it give http 404 error.

my production server IIS version is 7.5.7600.16385 and OS window server 2008 R2 standard, I am using .net framework 4.0 with application pool integrated mode.

I have also added the web.config which i have used. this issue only arise on my production lab for my local it is working fine.

<system.web>
    <httpRuntime maxRequestLength="1048500" executionTimeout="3600"/>
    <sessionState timeout="480"/>
    <caching>
      <outputCache enableOutputCache="false"/>
      <sqlCacheDependency enabled="false"/>
      <cache disableMemoryCollection="true"/>
    </caching>
    <pages theme="Default" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
      <controls>
        <add tagPrefix="atlas" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
        <add namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" tagPrefix="telerik"/>
      </controls>
    </pages>
  <customErrors mode="Off" defaultRedirect="error.htm" />
    <compilation debug="false" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
      </assemblies>
    </compilation>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
      <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add verb="*" path="js.axd,css.axd" type="OSCCP.HttpCompress.CompressionHandler,OSCCP.HttpCompress"/>
    </httpHandlers>
    <httpModules>
      <add name="QuertStringModule" type="QuertStringModule"/>
      <!--<add name="HttpCompressModule" type="OSCCP.HttpCompress.HttpModule,OSCCP.HttpCompress"/>-->
    </httpModules>
    <trace enabled ="false"/>
  </system.web>
  <system.webServer>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00"/>
    </staticContent>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
      <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.2.821.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </handlers>
  </system.webServer>


Please let me know the solution if i am missed out anything.

Thanks in advance.
Marin Bratanov
Telerik team
 answered on 21 Jan 2014
3 answers
389 views
Hi,
   I am having a problem with RadWindow disappearing after partial postback.

1. I use a RadScheduler with AdvanceForm Mode and on AdvanceInsertTemplate I have my "USERCONTROL". This RadScheduler is linked with RadAjaxManager.
2. That "USERCONTROL" has a button that pop up RadWindow and that RadWindows has a "SEARCH BUTTON" to display a list in grid.
3. When I click the  "SEARCH BUTTON" , the radwindow disappear.
4. RadScriptManagerProxy is linked with the "SEARCH BUTTON".

I can't figure out why its not working.

In Asp.net if the controls were kept inside an update panel, then the popup wasn't suppose to disappear after partial postback.

Thanking you
Lakpa Sherpa
Lakpa
Top achievements
Rank 1
 answered on 21 Jan 2014
7 answers
370 views

Hello,

i want to export the content of my RadGrid to Excel (Format: ExcelML). I have a Grid-Footer with Aggregates (Aggregate="Sum"), but it will not be exported to EXCEL.

Can anybody help me?

Best Regards

Thomas

Shubham
Top achievements
Rank 1
 answered on 21 Jan 2014
2 answers
144 views
Hi all

I've got a RADGrid with a GridCheckBoxColumn displaying a boolean value from my database. I hooked a JavaScript to this checkbox by adding an onClick event to the it's attributes. When the onClick event raises, a modal popup window is opened.

Basically everything is working but the position of my mouse click is not determined properly: I have to click just right from the checkboxes to have the popup window opened. When clicking on the (disabled) checkbox in the grid nothing happens.

How can I force the onClick event to be triggered from the correct position on the checkbox?

Thanks for every hint.

Juerg
Jürg
Top achievements
Rank 1
 answered on 21 Jan 2014
1 answer
181 views
Hi,

I have RadCombobox with checkboxes. User checks some values then click outside the combobox, then she deletes the combobox value with backspace and click outside again. Now combobox shows empty message but originaly checked items are still checked.

Do I have to uncheck them on client side?

Thank you.
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2014
2 answers
90 views
Hi All,
          I have two detail tables in my Rad grid which renders three child grids on UI  with expand and collapse button. Now When collapse the last child grid then upper two child grid's collapse button image changes in to expand button image . I had set  HierarchyLoadMode="ServerOnDemand"  in <masterTableview>  . If set this to "Client " it works fine but the grid does not get refreshed after deleting record from the grid . Please  Let me know what am  i doing wrong 


   <telerik:RadGrid ID="RadGrid" OnPreRender="RadGrid_PreRender" OnNeedDataSource="RadGrid_NeedDataSource" OnItemCommand="RadGrid_ItemCommand1"
                                    runat="server" Width="99.4%" OnDetailTableDataBind="RadGrid_DetailTableDataBind"
                                    OnItemDataBound="RadGrid_ItemDataBound" OnItemCreated="RadGrid_ItemCreated"
                                    OnPageIndexChanged="RadGrid_PageIndexChanged" >
                                    <ClientSettings>
                                        <Resizing AllowColumnResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true"
                                            ClipCellContentOnResize="true" />
                                    </ClientSettings>
                                    <MasterTableView  HierarchyLoadMode="ServerOnDemand"
                                        HierarchyDefaultExpanded="false" TableLayout="Fixed" CommandItemDisplay="Top">
                                           <Columns>
                                            <telerik:GridBoundColumn SortExpression="Name" HeaderText="Text1" HeaderButtonType="TextButton"
                                                DataField="VendorName">
                                                <%-- Defect# 12711--%>
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                        <DetailTables>
                                            <telerik:GridTableView DataKeyNames="KeyName" GridLines="None" HierarchyLoadMode="Client" HierarchyDefaultExpanded="true">
                                                <PagerStyle Visible="false" />
                                                <ParentTableRelation>
                                                    <telerik:GridRelationFields  MasterKeyField="Name" />
                                                </ParentTableRelation>
                                                <Columns>
                                                    <telerik:GridBoundColumn  HeaderText="text"
                                                        UniqueName="FuelImportConfigurationDesc">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="Name2" HeaderText="Name2" UniqueName="FuelVendor">
                                                        <%-- Defect# 12711--%>
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="FixedColumn" HeaderText="Fixed Column" UniqueName="FixedColumn">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="Delimiter" HeaderText="Delimiter" UniqueName="Delimiter">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="Name3" HeaderText="Name3"
                                                        UniqueName="DisbursementType">
                                                    </telerik:GridBoundColumn>
                                                </Columns>
                                                <DetailTables>
                                                    <telerik:GridTableView DataKeyNames="Name4" Width="100%" GridLines="None"
                                                        HierarchyLoadMode="Client" AllowCustomPaging="true">
                                                        <ParentTableRelation>
                                                            <telerik:GridRelationFields DetailKeyField="Name5" MasterKeyField="Name5" />
                                                        </ParentTableRelation>
                                                        <Columns>
                                                            <telerik:GridTemplateColumn UniqueName="SelectItemCheckBoxColumn" Resizable="false" Reorderable="false">
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="SelectItemCheckBox" runat="server" onclick="return CheckItem(this);" />
                                                                </ItemTemplate>
                                                                <HeaderTemplate>
                                                                    <asp:CheckBox ID="SelectHeaderCheckBox" runat="server" onclick="CheckAll(this);" />
                                                                </HeaderTemplate>
                                                            </telerik:GridTemplateColumn>
                                                            <telerik:GridTemplateColumn HeaderText="Action" UniqueName="TemplateColumn" Resizable="false" Reorderable="false">
                                                                <ItemTemplate>
                                                                    <asp:HyperLink ID="EditHyperLink" runat="server" Text="Edit" SkinID="SmallHyperLink"></asp:HyperLink>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="5%" />
                                                            </telerik:GridTemplateColumn>
                                                            <telerik:GridBoundColumn DataField="Name6" HeaderText="Name5"
                                                                UniqueName="Name6" SortExpression="Name6">
                                                                <HeaderStyle Width="10%" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="Name7" HeaderText="Asset Number" UniqueName="Name7"
                                                                SortExpression="Name7">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="Name8" HeaderText="Name8" UniqueName="Name8"
                                                                SortExpression="Name8">
                                                                <HeaderStyle Width="10%" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="Name9" HeaderText="Name9" UniqueName="Name9"
                                                                SortExpression="Name9">
                                                                <HeaderStyle Width="10%" />
                                                            </telerik:GridBoundColumn>
                                                           <telerik:GridBoundColumn DataField="ErrorDescription" HeaderText="Error Description"
                                                                UniqueName="ErrorDescription" SortExpression="ErrorDescription">
                                                                <HeaderStyle Width="20%" />
                                                            </telerik:GridBoundColumn>
                                                        </Columns>
                                                    </telerik:GridTableView>
                                                </DetailTables>
                                            </telerik:GridTableView>
                                        </DetailTables>
                                    </MasterTableView>
                                </telerik:RadGrid>



here is the code behind
   protected void Page_Init(object sender, EventArgs e)
    {
       
    } 
    protected void RadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
       
    }

    protected void RadGrid_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
    {
       
    }

    protected void RadGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
       
    }
    protected void RadGrid_PreRender(object sender, EventArgs e)
    {
        Boolean hasRecords = false;
        if (RadGrid.MasterTableView.Items.Count > 0)
        {
            foreach (GridDataItem dataItem in RadGrid.MasterTableView.Items)
            {

                foreach (GridDataItem nestedDataItem in dataItem.ChildItem.NestedTableViews[0].Items)
                {

                    if (!hasRecords && nestedDataItem.ChildItem.NestedTableViews[0].Items.Count > 0)
                    {
                        hasRecords = true;
                        break;
                    }
                }
                if (hasRecords)
                    break;

            }
        }

        ClearSelectedLinkButton.Enabled = hasRecords;
    }    
    
    protected void Page_PreRender(object sender, System.EventArgs e)
    {
        GridItem commandItem = RadGrid.MasterTableView.GetItems(GridItemType.CommandItem)[0];
        ImageButton exportToExcelImageButton = commandItem.FindControl("ExportToExcelImageButton") as ImageButton;
        Boolean isGridHasData = RadGrid.Items.Count > 0;
        if (exportToExcelImageButton != null)
        {
            exportToExcelImageButton.Enabled = isGridHasData;
            if (exportToExcelImageButton.Enabled)
            {
                exportToExcelImageButton.Attributes.Add("onclick", String.Format("DisableAjax(\"{0}\", \"\"); return false;", exportToExcelImageButton.UniqueID));
                exportToExcelImageButton.Style.Add(StringResources.CssCursorKey, StringResources.CssCursorValue);
            }
        }
    }
   

    protected void RadGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            if (objFasterCache[String.Format("Vendor{0}", _guid)] != null)
            {
                if (Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Name1"]) == (Int32)objFasterCache[String.Format("Name{0}", _guid)])
                    e.Item.OwnerTableView.HierarchyDefaultExpanded = true;
                else
                    e.Item.OwnerTableView.HierarchyDefaultExpanded = false;
            }
        }
    }

Thanks

  
Shubham
Top achievements
Rank 1
 answered on 21 Jan 2014
3 answers
279 views
I'm tring to create simple RadOrgChart page. And I have to bind it by DataTable. I did, but it doesnt work.

My Telerik version is 2011.3.1115.40.

Here is my code;
<%@ Page Title="" Language="C#" MasterPageFile="~/Controls/MasterPages/User.master" Theme="Default" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Sections_OrgChart_Default" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
 
<telerik:RadOrgChart runat="server" ID="RadOrgChart1" ></telerik:RadOrgChart>
 
</asp:Content>

And my Cs codes,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Getron.AAM;
using Getron.AAM.EntityManagement;
using Getron.Core.Base.Objects;
using System.Data;
 
public partial class Sections_OrgChart_Default : EntityProtectedPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        OrgSchema osch = new OrgSchema();
        QueryEntity qent = new QueryEntity();
        qent.QueryEntityType = Getron.Core.Enums.EQueryEntityType.WhereCondition;
        qent.Query = "SupervisorId=@SupervisorId";
        Getron.DBInterface.Parameter p0 = new Getron.DBInterface.Parameter("@SupervisorId", ParameterDirection.Input, DbType.Int64, 0);
        p0.Value = 23;
        qent.Parameters.Add(p0);
 
        DataTable dt = new DataTable();
        dt = osch.GetCustomViewAll("OrgSchemaAllData", new List<string>() { "SystemUserIntCode", "SystemUserName", "SuperVisorId" }, qent);
 
        RadOrgChart1.DataTextField = "SystemUserName";
        RadOrgChart1.DataFieldID = "SystemUserIntCode";
        RadOrgChart1.DataFieldParentID = "SupervisorId";
 
        RadOrgChart1.DataSource = dt;
        RadOrgChart1.DataBind();
    }
}

And I attached my DataTable result panel picture.(dt object preview)
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2014
3 answers
153 views
I have a grid on a page that displays some basic information about an item, such as item # and description.  I need to be able to allow my users to enter detail information about any item they choose then update a database with those values.  Presently I'm doing this by entering all of my detail fields as textboxes in an ItemTemplate.  Once the user is done entering information they hit a submit button that goes through every row in the table and checks for updates and the updates the database.  While this works, it is very inefficient and actually does fail to work when my server has lots of traffic.  It simply times out.  

For my scenario, what is the proper way to do this?

Thanks.
Viktor Tachev
Telerik team
 answered on 21 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?