Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
35 views
I have a problem with Internet Explorer 8.

I have a page that in some computers the page looks rare. You can look in the link below how it looks in IE8 and Chrome and you can see like the style is completely different.

https://dl.dropboxusercontent.com/u/24664581/bug.png

Other bug in IE8, When I try to get the value of a radtextbox, the value is empty

I have a custom skin,but if I don't use the skin the problem persist.


So, Is this a problem with IE8? or I'm doing something bad.
Venelin
Telerik team
 answered on 24 Feb 2014
4 answers
293 views
Hi,

I want the calendar to be displayed in Thai language with A.D. Year, so I set the RadDatepicker's culture to "Thai-Thailand" in aspx . The problem is that it shows calendar in B.E. (Buddhist Era) first time the calendar is poped up. Only after the user click on forward or backward navigation that the calendar year will be in A.D. format.
 
Is it possible to make it show calendar year in A.D. format since the first time the calendar is poped up ?

Any help would be much appreciated.

Thankyou,

Punthip
DEV24x7
Top achievements
Rank 1
 answered on 24 Feb 2014
3 answers
82 views
The columns in my grid don't seem to be resizing the way (I think) they should. The column I'm resizing will get bigger or smaller, but instead of the other columns adjusting their widths, they just "move" according to the column being resized. For instance, if I make a column (let's say column 2) smaller (i.e. dragging right to left), all of the columns to the right (let's say columns 3 and 4) will get smaller. It's almost like there is an invisible column 5 that's being resized along with column 2, instead of columns 3 and 4 adjusting themselves. Conversely, if I make column 2 bigger it will just push the other columns "out", causing the grid to render a horizontal scroll bar. Here is a sample of some relevant code:

<telerik:RadGrid runat="server" ID="RadGrid1" EnableEmbeddedSkins="False" Skin="Default"
 Width="100%" AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource"
 AllowMultiRowSelection="True" AllowFilteringByColumn="True">
   <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
   <ItemStyle HorizontalAlign="Left"></ItemStyle>
   <AlternatingItemStyle HorizontalAlign="Left"></AlternatingItemStyle>
   <ClientSettings AllowColumnsReorder="False" EnablePostBackOnRowClick="False">
      <Scrolling UseStaticHeaders="True" AllowScroll="True" ScrollHeight="500px"/>
      <Resizing AllowColumnResize="True" EnableRealTimeResize="False"
       ClipCellContentOnResize="True" />
      <Selecting AllowRowSelect="True"/>
   </ClientSettings>
   <MasterTableView AllowPaging="True" AllowSorting="True" PageSize="500" TableLayout="Fixed"
    Width="100%"
      <Columns>
         <telerik:GridClientSelectColumn UniqueName="cbColumn" HeaderStyle-Width="3%"
          HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"/>
         <telerik:GridBoundColumn UniqueName="ID" Visible="False" DataField="ID"/>
         <telerik:GridBoundColumn UniqueName="ConfNo" HeaderText="Conf No" DataField="ConfNo"
          HeaderStyle-Width="20%" FilterControlWidth="65%"/>
         <telerik:GridBoundColumn UniqueName="Set No" HeaderText="Set No" DataField="SetNo"
          HeaderStyle-Width="20%" FilterControlWidth="65%"/>
         <telerik:GridBoundColumn UniqueName="Name" HeaderText="Name" DataField="Name"
          HeaderStyle-Width="57%" FilterControlWidth="85%"/>
      </Columns>
   </MasterTableView>
</telerik:RadGrid>

Any help appreciated!
Venelin
Telerik team
 answered on 24 Feb 2014
1 answer
44 views
Hi,

I am trying to preserve the state of a RadGrid using the "Persistence Framework". I am following this demo.

http://demos.telerik.com/aspnet-ajax/persistence-framework/examples/custom-storage-provider/defaultcs.aspx

I am using client-side web service data binding in the RadGrid and unable to preserve the state of the grid. But it works fine if I use a SQLDataSource for example.

I just wanted to know whether "Persistence Framework" is not supported with client-side web service data binding.

Thank you.
Viktor Tachev
Telerik team
 answered on 24 Feb 2014
4 answers
1.1K+ views
Hi,
I am using NeedDataSource to populate a grid...  The following code (shown below) is used in my server control after the radGrid has been created.
I have followed the telerik examples, but had to add the "else" part of this statement as postbacks (eg from buttons unrelated to the grid) caused a blank grid.

Anyway assuming this is valid, I am getting strange behaviour when I sort the grid....
When I click the first column to sort, then click the second column to sort... the third column is actually sorted... If I click the second column again, the second column is then sorted as required...

eg..

My Grid - Unsorted
|  Col 1  |  Col 2  |  Col 3  |
     B            C           A
     C            A           D
     A            B           C
     D            D           B

Now I click Col 1 (All OK):
|  Col 1  |  Col 2  |  Col 3  |
     A            B           C
     B            C           A
     C            A           D
     D            D           B


But now I click Col 2 (But Col 3 sorts !)
|  Col 1  |  Col 2  |  Col 3  |
     B            C           A
     D            D           B
     A            B           C
     C            A           D

Only when I click Col 2 again does Col 2 actually sort correctly...

has anyone come across this issue beofre?

Here is my code 

            [radGrid1 is created here with all columns etc]
.
.
.
            radGrid1.NeedDataSource += new GridNeedDataSourceEventHandler(radGrid1_NeedDataSource);
            if (!Page.IsPostBack)
            {
                // A couple of lines for applying a default filter.
                radGrid1.MasterTableView.FilterExpression = "[Variation] = 'Committing'";
                GridColumn variationColumn = radGrid1.Columns.FindByUniqueName("Variation");
                variationColumn.CurrentFilterFunction = GridKnownFunction.EqualTo;
                variationColumn.CurrentFilterValue = "Committing";
                radGrid1.DataSource = GetData();
                radGrid1.DataBind();
            }
            else 
            {
                radGrid1.Rebind();
             }
.
.
.
        void radGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
                (sender as RadGrid).DataSource=GetData();  // Returns DataTable
        }


Thanks in advance!
Viktor Tachev
Telerik team
 answered on 24 Feb 2014
3 answers
98 views
Hi,
In my Grid I have a NestedTemplateView with a RadSplitter.
I would like to keep HierarchyLoadMode="Client" but when I expand row the radSplitter is not stretch.
Is it possible to re-paint or resize the radSplitter?
I notice that if I click on subgrid refresh button the radsplitter will be resized correctly


<telerik:RadGrid ID="TaskRadGrid" runat="server" OnNeedDataSource="RadGrid_NeedDataSource"  Width="100%"           
                EnableEmbeddedSkins="False" Skin="MySkin"
                AllowPaging="True" OnItemCommand="RadGrid_ItemCommand"
                AllowSorting="True" OnItemInserted="RadGrid_ItemInserted" OnPreRender="RadGrid_PreRender"
                OnItemDataBound="RadGrid_ItemDataBound" AllowFilteringByColumn="True" CellSpacing="0"               
                Culture="it-IT" GridLines="None" >
                <PagerStyle Mode="NextPrevAndNumeric" />
                <MasterTableView AutoGenerateColumns="False" EditMode="InPlace"
                    DataKeyNames="Id, Ambiente, Asset.Id" Width="100%"
                    Name="Task" CommandItemDisplay="Top" HierarchyLoadMode="Client">
                    <CommandItemSettings AddNewRecordText="" RefreshText="" />                                     
                    <NestedViewTemplate>                   
                            <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="250">
                                <telerik:RadPane ID="PlannedAndActualPanel" runat="server" Scrolling="None" Width="24px" >
                                    <telerik:RadSlidingZone ID="PlannedAndActualSlidingZone" runat="server" Width="24px" ClickToOpen="true">
                                        <telerik:RadSlidingPane ID="PlannedAndActualPane" Title="Planned" runat="server" Width="260px">
                                           ....
                                        </telerik:RadSlidingPane>
                                        <telerik:RadSlidingPane ID="RadSlidingPane2" Title="Actual" runat="server"  Width="260px">
                                         ...
                                        </telerik:RadSlidingPane>
                                    </telerik:RadSlidingZone>
                                </telerik:RadPane>
                                <telerik:RadSplitBar ID="RadSplitBar1" runat="server">
                                </telerik:RadSplitBar>
                                <telerik:RadPane ID="MiddlePane" runat="server" Width="100%" Scrolling="None" CssClass="stretch">
                                    <telerik:RadSplitter ID="RadSplitter2" runat="server" Width="100%" ResizeWithParentPane="true">
                                        <telerik:RadPane ID="RadPane2" runat="server" Width="100%" Scrolling="None"  ResizeWithParentPane="true">
                                            <telerik:RadGrid ID="RadGrid2" runat="server" OnNeedDataSource="RadGrid2_NeedDataSource"
                                                Width="100%" EnableEmbeddedSkins="False" AllowPaging="True" OnItemCommand="RadGrid2_ItemCommand"
                                                AllowSorting="True" OnItemDataBound="RadGrid2_ItemDataBound"  AllowFilteringByColumn="True"
                                                CellSpacing="0" Culture="it-IT" GridLines="None">
                                                <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" DataKeyNames="Id, Ambiente" Width="100%"
                                                    AllowFilteringByColumn="false" Name="TaskOperations" CommandItemDisplay="Top">
                                                    <CommandItemSettings AddNewRecordText="" RefreshText="" />
                                                    <AlternatingItemStyle CssClass="gridAltRow" />
                                                    <ItemStyle CssClass="gridRow" />
                                                    <HeaderStyle CssClass="gridHeader" />
                                                    <Columns>
                                                   ...
                                                    </Columns>
                                                    <EditFormSettings>
                                                        <EditColumn ButtonType="ImageButton" />
                                                    </EditFormSettings>
                                                </MasterTableView>
                                                <ClientSettings>
                                                    <ClientEvents OnRowDblClick="RowEditOnDblClick">
                                                    </ClientEvents>
                                                </ClientSettings>
                                            </telerik:RadGrid>
                                        </telerik:RadPane>
                                        <telerik:RadSplitBar ID="RadSplitBar2" runat="server">
                                        </telerik:RadSplitBar>
                                        <telerik:RadPane ID="RadPane1" runat="server" Width="24px" Scrolling="None">
                                            <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Width="24px" ClickToOpen="true"
                                                SlideDirection="Left">
                                                <telerik:RadSlidingPane ID="CatalogOperationsRadSlidingPane" Title="Catalog operations"
                                                    DockOnOpen="true" runat="server" IconUrl="img/gears.png">
                                              ...
                                                    </telerik:RadListBox>
                                                </telerik:RadSlidingPane>
                                            </telerik:RadSlidingZone>
                                        </telerik:RadPane>
                                    </telerik:RadSplitter>
                                </telerik:RadPane>
                            </telerik:RadSplitter>
                    </NestedViewTemplate>
                    <Columns>
                       ...
                    </Columns>
                    <EditFormSettings>
                        <EditColumn ButtonType="ImageButton" />
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings>
                    <ClientEvents OnRowDblClick="RowDblClick" OnHierarchyExpanding="CollapseOtherRows">
                    </ClientEvents>
                </ClientSettings>
                 
                <FilterMenu EnableEmbeddedSkins="False">
                </FilterMenu>
                <HeaderContextMenu EnableEmbeddedSkins="False">
                </HeaderContextMenu>
            </telerik:RadGrid>
Vessy
Telerik team
 answered on 24 Feb 2014
1 answer
222 views
Hi, 

I have a RadGrid with 5 columns, the first 4 columns are databound and are of fixed widths. The 5th column is an item template which consists of a control and this column width is not set(for resizing). I also have grouping done for the rows. The width of all columns are consistent for all groups except one. In this group, the fixed width coulmns dont retain their values(as you can see in pic). I dont have any clue why this is happening. any suggestion could be fine. thanks for your help.

Please note: Table Layout is set as 'Auto'
Princy
Top achievements
Rank 2
 answered on 24 Feb 2014
1 answer
66 views
Hi, 

I'm having an issue... But I don't know why / where... Can you help me?

I think that I've isolated the problem.
In my Page I have:
<telerik:RadAjaxManager ID="RAMP" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RG">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RG" LoadingPanelID="LP" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

If I put my 
<telerik:RadAjaxLoadingPanel ID="LP" runat="server" ZIndex="100000001" />
in the same page, it's working well.
If I put this same code in the master page of the page then the ajax calls are not working...

When my RadAjaxLoadingPanel is in the masterpage, in the console I have this:
POST... 500 (Internal Server Error) ... Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RSM_TSM


Can you help me please?
Shinu
Top achievements
Rank 2
 answered on 24 Feb 2014
1 answer
44 views
Hello All,
I am exporting my Rad Grid data in a pdf form but it is not showing my data in a hierarchical manner and not showing data.
 Please see the below attachment and i also write my code for exporting the data in pdf form.

Please help me. It is urgent.
Princy
Top achievements
Rank 2
 answered on 24 Feb 2014
1 answer
611 views
Hi ,

I have a menu in which i am creating a mega dropdown by using itemtemplate.
I want to retrieve the value of list inside my anchor tag  <a> tag which is inside a <div> , selected by the user.

And if some one could also help me where i can assign the value to the anchor tag <a>, as it does not support the property of value.
Basically here is  a small snippet -
 <a href="#">
                                                <li>French</li>
                                            </a>

So when a user hit on French from menu , i want to return the "fr" in back-end. and perform the localization .

here is the complete code for my RadMenu-

<telerik:RadMenu ID="sMenuLanguage" runat="server" Width="7%" Font-Size="14px" EnableEmbeddedSkins="False">
        <Items>
            <telerik:RadMenuItem Text="English">
                <Items>
                    <telerik:RadMenuItem CssClass="rmSlide1" OuterCssClass="langSlide">
                        <ItemTemplate>
                            <div class="main">
                                <h2 class="main-title">AROUND THE GLOBE - SELECT YOUR LANGUAGE </h2>
                                <div class="map">
                                    <img src="../images/map.png" />
                                </div>

                                <div id="languageSection" class="languageSection">
                                    <div class="col">

                                        <ul>
                                            <a href="#">
                                                <li>Chinese (Simple)</li>
                                            </a>
                                            <a href="#">
                                                <li>Chinese (Traditional)</li>
                                            </a>
                                            <a href="#">
                                                <li>Danish</li>
                                            </a>
                                            <a href="#">
                                                <li>Dutch</li>
                                            </a>
                                            <a href="#">
                                                <li>English</li>
                                            </a>
                                        </ul>
                                    </div>
                                    <div class="col">

                                        <ul>
                                            <a href="#">
                                                <li>Finnish</li>
                                            </a>
                                            <a href="#">
                                                <li>French</li>
                                            </a>
                                            <a href="#">
                                                <li>German</li>
                                            </a>
                                            <a href="#">
                                                <li>Italian</li>
                                            </a>
                                            <a href="#">
                                                <li>Japanese</li>
                                            </a>
                                        </ul>
                                    </div>
                                    <div class="col">
                                        <ul>
                                            <a href="#">
                                                <li>Korean</li>
                                            </a>
                                            <a href="#">
                                                <li>Norwegian</li>
                                            </a>
                                            <a href="#">
                                                <li>Portuguese</li>
                                            </a>
                                            <a href="#">
                                                <li>Spanish</li>
                                            </a>
                                            <a href="#">
                                                <li>Swedish</li>
                                            </a>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>


Could any one help me on this , how can we achieve this , with a small piece of sample code

Thanks 







Shinu
Top achievements
Rank 2
 answered on 24 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?