Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
125 views

Have an application that populates a RadGrid that resides within a RadWindow.  We have logic that will automatically set the size of the RadWindow to 80% of the available browser window size. 

On initial load of the RadGrid the display is just fine and looks good.  However if the user were to group something it will then resize the grid into something smaller.  At times causing the Filters to no longer be visible.  I have noticed others having the same sort of issue and the suggestions were cause each column to be a standard width or specify the size of the grid to be larger than the window.  Also suggestions of setting the "autoscroll".  Tried implementing those suggestions but results caused further problems.  Maybe there is a solution that I haven't found. 

Attached you will find what things look like when the grid is first populated and then what happens when a grouping is applied.

Thank you for your help

<telerik:RadGrid ID="_SearchResults" runat="server"
    AllowPaging="True" CellSpacing="0"
    GridLines="None" ShowGroupPanel="True"
    AllowSorting="True" PageSize="25" Width="100%" Height="100%"
    AllowFilteringByColumn="True" EnableLinqExpressions="true" HeaderStyle-Font-Bold="true"
    EnableEmbeddedSkins="False" CssClass="RadGrid_ASI"
    FilterItemStyle-BackColor="#6d9c1f" FilterMenu-BackColor="#CCCCCC" >
    <HeaderStyle CssClass="RadHeaderStyle" ForeColor="#ffffff" />
    <GroupingSettings CaseSensitive="False" />
    <ExportSettings IgnorePaging="True" OpenInNewWindow="True"
        ExportOnlyData="True" FileName="CUCustomSearch" >
        <Excel AutoFitImages="True" Format="ExcelML"  />
        <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm"
            BorderStyle="Medium" BorderColor="#666666">
        </Pdf>
    </ExportSettings>
    <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True"
        ReorderColumnsOnClient="True">
        <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="2" />
        <%--<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />--%>
 
    </ClientSettings>
    <MasterTableView CommandItemDisplay="Top" InsertItemDisplay="Bottom" ShowGroupFooter="false"
        TableLayout="Auto" Width="100%"
        PagerStyle-NextPageImageUrl="../images/Grid/PagingNext.gif" PagerStyle-LastPageImageUrl="../images/Grid/PagingLast.gif"
        PagerStyle-PrevPageImageUrl="../images/Grid/PagingPrev.gif" PagerStyle-FirstPageImageUrl="../images/Grid/PagingFirst.gif">
    <CommandItemSettings ShowAddNewRecordButton="False"
        ShowExportToCsvButton="False" ShowExportToExcelButton="true" ShowRefreshButton="False" ShowExportToPdfButton="False" ExportToExcelImageUrl="../images/Grid/ExportToExcel.gif" ExportToPdfImageUrl="../images/Grid/ExportToPdf.gif" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
            Visible="True" CollapseImageUrl="../images/Grid/SingleMinus.gif" ExpandImageUrl="../images/Grid/SingleMinus.gif">
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False" CssClass="RadMenu_ASI">
    </FilterMenu>
</telerik:RadGrid>

Galin
Telerik team
 answered on 07 Jan 2014
1 answer
70 views
After editing the existing image file, I would like to make the file name to be readonly so that the user cannot change the file name to another name when saving to the server.

How do I accomplish this?
Vessy
Telerik team
 answered on 07 Jan 2014
1 answer
85 views
Hi there,
   After I upgrade my project from 2012.3.1016.40 to  2013.3.1114.40 I receive a javascript error.

JavaScript runtime error: Unable to get property 'getElementsByTagName' of undefined or null reference

   This occurs with the call _updateFilterControlValue.  Below is the code we use to filter the grid.  It doesn't seem to matter if it's Firefox, IE, or Chrome.  The error still occurs.

       

var filterExpression = new Telerik.Web.UI.GridFilterExpression();

var filterFunction = Telerik.Web.UI.GridFilterFunction.EqualTo;

filterExpression.set_fieldName("iExpertID");

filterExpression.set_fieldValue(iExpertID);

filterExpression.set_filterFunction(filterFunction);

filterExpression.set_columnUniqueName("iExpertID");

grid.get_masterTableView()._updateFilterControlValue(iExpertID, "iExpertID", filterFunction);

grid.get_masterTableView()._filterExpressions.clear();

grid.get_masterTableView()._filterExpressions.add(filterExpression);

grid.get_masterTableView().set_pageSize(10);

grid.get_masterTableView().rebind();

 

 

 

 

Milena
Telerik team
 answered on 07 Jan 2014
1 answer
96 views
Does anyone have an idea why is this happening??

it happens so randomly and it seems to be related to the ListView control, used IE 9+ and Chrome latest version to test it and it happens on both browsers. 

html parsing issue

What is happening here, for some reason the browser suddenly stopped parsing the html and displays the html code instead of the input elements, as you can notice, in the screen shoot, it stops "drawing" the fields and it does not throw any java script or code behind exceptions.
Radoslav
Telerik team
 answered on 07 Jan 2014
15 answers
740 views
Team,

Scenario
 : I have to assign the Mask property dynamically in Code Behind. 
Issue : Not able to type anything on the textbox field and nothing to display

IN ASPX:
<telerik:RadMaskedTextBox ID="tbHours" runat="server" SelectionOnFocus="SelectAll"                                                                                     CssClass="RadMaskedTextBox80" Height="20px"></telerik:RadMaskedTextBox>

IN C#
If (true)
{
tbHours.Text = "00.0";
tbHours.Mask = "<0..99>.<0..9>";
}
else
{
tbHours.Text = "00:00";
tbHours.Mask = "<00..23>:<00..59>"; 
}

Vasil
Telerik team
 answered on 07 Jan 2014
1 answer
62 views
Hi, this is Tom

I have been struggling with raising issues with the demo on your website, which is My Portal dock panel.
http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx

I used the example code as provided from the page and I found a issue that it dose not let me add new dock after closing one of docks on the zones. I even tested the given example on the website.
You can test that: add two any docks and close those two docks. After that, add new a dock. then you will see the issue.
I do not know how to fix this problem, it takes me so long time to figure it out. Please let me know how to deal with it!!!!!!
Slav
Telerik team
 answered on 07 Jan 2014
1 answer
516 views
Hi,
     I need a toggle box with two buttons inside it, on clicking a button in each row of the Radgrid..once I clicked one of the buttons inside the toggle box , it must be set as readonly..Is it possible ..? pls help me with a code..
Shinu
Top achievements
Rank 2
 answered on 07 Jan 2014
1 answer
146 views
Hi,

I want some solution that would handle all the three scenarios mentioned below.
Scenario 1:
I am using Content property of RadEditor to get values entered by the user in the RadEditor control. However, I see that every space in the value entered by user is getting converted to &nbsp;. For example, if user has entered the value as - 'Hi Hello' in the editor, the value we get from RadEditor1.Content is  - 'Hi&nbsp;Hello'. I don't want this to happen.

Scenario 2:
Also, my requirement is that in the same editor the user should be able to insert nonbreaking space by Ctrl+Shift+Space. For example, if the user types 'Hi(Ctrl+Shift+Space)Hello' we must get the value as 'Hi&nbsp;Hello'.

Scenario 3:
Also, if user manually types &nbsp; in the editor, it should be retained as it is and should not get replaced with space.

I tried using Text property of RadEditor. But it handles only first scenario mentioned and considers Ctrl+Shift+Space as normal space and not as &nbsp;

Answer through sample code would be helpful.

Thanks,
Prajna
Ianko
Telerik team
 answered on 07 Jan 2014
3 answers
951 views
Hi,

How can Apply the Own Custome Css on RadTextBox and RadTextArea with examples.

Kind Regards,
Rahul
Shinu
Top achievements
Rank 2
 answered on 07 Jan 2014
3 answers
116 views
Hi,
how apply the hight to Radtexbox in percentage not a pixcel. Please explain it with example.

Kind Regards,
Rahul
Princy
Top achievements
Rank 2
 answered on 07 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?