Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
I've had to set EnableEmbeddedBaseStylesheet to false in order to reduce the size of the rows in RadGrid, as we needed to conserve screen space.

This is my applied CSS change.

.RadGrid_Black .rgRow td,
 .RadGrid_Black .rgAltRow td,
 .RadGrid_Black .rgEditRow td,
 .RadGrid_Black .rgFooter td
 {
    border-style: solid;
    border-width: 0 0 1px 0;
    line-height: 15px;
    height: 15px ;
    font-size: 12px;
}


This page also contains a TabStrip which loads different ASCS controls and I have discovered that when I change any of these tabs the RadGrid reverts back to it's previous appearance, as if EnableEmbeddedBaseStylesheet had been set back to true.

I have so far been unable to find a work around for this bug, help would be appreciated.
Galin
Telerik team
 answered on 23 Oct 2013
5 answers
2.3K+ views
I have a grid bound to a datasource.
However, I have a settings page where the user can specify the number of characters to be displayed for any field in the grid.

I want to trim the column value based on that setting before the grid is displayed.
I was trying to do that in the ItemDataBound event.

Any suggestions how I can do that.
Princy
Top achievements
Rank 2
 answered on 23 Oct 2013
3 answers
68 views
I have the same problem as described here:
http://www.telerik.com/community/forums/aspnet-ajax/combobox/error-radcombobox-in-radwindow-with-ie8.aspx

My setup is:
IE 8.0
Telerik.web.ui.dll 2012.3.1205.35

Has the problem been fixed?




Jonas
Top achievements
Rank 1
 answered on 23 Oct 2013
1 answer
252 views
Hi Team Telerik,

Is batch editing mode compatible with a hierarchical grid? Here's why I ask:

So I was implementing Batch Edit mode throughout my application. It works fine on a single layer grid. However, when I try to apply it to a hierarchical grid, I run into problems.

First, I have a hierarchical grid with HierarchyLoadMode="Client". When I try to do any the batch CRUD operations, I get this viewstate error on the TOP level:

0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

So I set ViewStateMode="Disabled" on the Grid itself and that error goes away when I do CRUD operations on the top level. However, when I try to do CRUD operations on the second level, I get another error:

JavaScript critical error in (unknown source location)

SCRIPT1030: Conditional compilation is turned off

I've tried a couple of things to correct this error:

  1. I tried disabling the ViewStateMode on that GridTableView. Error still occurs.
  2. I tried removing HierarchyLoadMode="Client". It fixed the first error, but this "Conditional compilation is turned off" error still recurs.

My hierarchical grids are being powered by a SQLDataSource object.

I noticed that no one else complained about the error anywhere in the Grid forum, but I did find complaints about the error in the Telerik Reports forum and that was rectified with a version update. From that thread, I've inferred that the error seems to be related to jQuery somewhere inside the Telerik dll. I'm using Telerik AJAX version 2013.2.717.45

Is this a known issue?

Thanks in advance.
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 23 Oct 2013
1 answer
186 views
I have a grid . I want only when click in edit link buton the info of Item will show on textboxName. But when I click no thing happen.
 I try to add <UpdatedControls> </UpdatedControls> then when i short grid the textbox also refress.

I also try add  RadAjaxPanel1.ResponseScripts.Add(String.Format("$find('{0}').ajaxRequest();", RadAjaxPanel1.ClientID));
when showdata but it does not work

<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All"
        EnableRoundedCorners="false" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"  >
    </telerik:RadAjaxLoadingPanel>
 
  <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
       <telerik:RadTextBox ID="txtName" runat="server">
</telerik:RadTextBox>
.....
      </telerik:RadAjaxPanel>
 
 
<telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid1" AllowFilteringByColumn="True"
        AllowSorting="True" PageSize="15" ShowFooter="True" AllowPaging="True" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
        OnNeedDataSource="RadGrid1_NeedDataSource" CellSpacing="0" GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound"
        OnItemCommand="RadGrid1_ItemCommand">
        <GroupingSettings CaseSensitive="false"></GroupingSettings>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <MasterTableView AutoGenerateColumns="false" AllowFilteringByColumn="True" ShowFooter="True"
            DataKeyNames="Id">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
     <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="_edit" CommandArgument="Id"
                    Text="Edit" UniqueName="Edit">
                </telerik:GridButtonColumn>
 </Columns>
            <EditFormSettings>
                <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>


Code Behind: 
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "_edit")
        {
             int id = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Id"]);
             LoadItem(id); // Show data to textbox
        }
    }

Thanks
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2013
3 answers
144 views
Hi all how do i acess a ragrid inside a NestedViewTemplate

Best Regardas.

Princy
Top achievements
Rank 2
 answered on 23 Oct 2013
1 answer
124 views
I want to access the value of the inserted item, actually i want to create a folder by the same name programmatically after pressing insert.
Princy
Top achievements
Rank 2
 answered on 23 Oct 2013
1 answer
436 views
I'm trying to round the corners on the radtextbox and radcombobox. I used telerik visual style builder the get my style  close as possible but the tool dose not have the ability to modify border-radius . I have applied my skin using EnableEmbeddedSkins="false" Skin="My custom skin name ".  It all works as intended , but I then go and tweak the css as needed, I can get the background of the inputs the have a border radius no problem along with many other css changes but the actual 1px border will not take a border-radius, it as if there is some global ultra style that is over powering this one css property.

The base skin from the style builder is "Simple" if that helps

this dose not work totally
 .RadComboBox table td.rcbInputCell{
border-radius: 0 0 0 4px !important;
}
.rcbArrowCell{
border-radius:0 4px 4px 0 !important;
}

this works as it should

.riTextBox{
border-radius:0 4px 4px 4px !important;
}

If someone can provide stripped out RadComboBox css with rounded corners (NO SPRITES) I can make it work for my purposes or tell me how to remove the global hulksmash code that is overriding everything logical
Thanks
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2013
2 answers
58 views
Hi,

I am sure I am doing something wrong here.  

I throw Radmediaplayer onto a new web form of a new telerik website.  I set the source, files, mime types etc.  When I publish to IIS 6 it works great and video plays.  However if I open up a second browser and open the page this video instance won't play until I pause the mediaplayer from the first browser.  What am I doing wrong?


  • ASP.NET version (3.5)
  • OS (Win Server 2003)
  • exact browser version (Chrome Version 30.0.1599.101 m)
  • exact version of the Telerik product (2013.3.1015.35)
  • preferred programming language (VB.NET)

Chris-
Chris Hwa
Top achievements
Rank 2
 answered on 22 Oct 2013
4 answers
56 views
I can't get the lightbox to work.  My image is displayed but I can't click on it.  I must be missing something.  Here's the code:

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

    <asp:Image runat="server" ID="lightboxdemo" ImageUrl="~/pics/11046/main.jpg" Width="350px" />

    <telerik:RadLightBox ID="RadLightBox1" runat="server">
        <Items>
            <telerik:RadLightBoxItem ImageUrl="~/pics/11046/main.jpg" TargetControlID="lightboxdemo" Title="test" />
        </Items>
    </telerik:RadLightBox>

The links for features and overview at http://www.telerik.com/help/aspnet-ajax/lightbox-overview.html don't work.

Thanks!
Tom
Tom
Top achievements
Rank 1
 answered on 22 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?