Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
175 views
Hi Telerik Team,

I am having problem of grid height and scrolling. 
When I increase height of grid as well as mastertable view height with allowscroll= true it ran fine, but when I perform any search on grid with my custom search it filter record fine but it make the mastertable view height to default.
For example if i set grid height = 600px and mastertable view htight = 600px and perform any search it display search result with default height of mastertable view. 
If I define scrolling height = 600px and perform any search, lets say it returns 2 records, the grid will show those records in whole grid, like one record will occupy 300px height and other will occupy 300px height.

Please note that I using RadAjaxManager.

Following are the code of my ascx file:

<telerik:RadGrid ID="radCTAFund" runat="server" GridLines="None" AllowSorting="True"
                    OnNeedDataSource="radCTAFund_NeedDataSource" OnItemDataBound="radCTAFund_ItemDataBound"
                     CellSpacing="0" Width="100%">
                            <ClientSettings>
                                <Scrolling AllowScroll="True" UseStaticHeaders="false"/>
                            </ClientSettings>
                            <MasterTableView AutoGenerateColumns="false" DataKeyNames="FundRaiseID" runat="server"
                                AllowSorting="true" ItemStyle-Font-Size="8pt" 
                            AlternatingItemStyle-Font-Size="8pt" Width="100%" >
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridTemplateColumn DataField="FundRaiseName" HeaderText="CTA Name" 
                                        SortExpression="FundRaiseName" UniqueName="FundRaiseName">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkCTAFund" runat="server" Font-Bold="true"><%# DataBinder.Eval(Container.DataItem, "FundRaiseName")%></asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="200px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="OneMonth" HeaderText="One Month" 
                                        SortExpression="OneMonth" UniqueName="OneMonthNew">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_one_month" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                      <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="YearToDate" HeaderText="Year To Date" 
                                        SortExpression="YearToDate" UniqueName="YearToDate">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_year_to_date" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                       <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="LastTwelveMonths" 
                                        HeaderText="Ann. Avg" SortExpression="LastTwelveMonths" 
                                        UniqueName="LastTwelveMonths">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_last_twelve_months" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="OneYearDrawdown" 
                                        HeaderText="Max Avg. Drawdown" SortExpression="OneYearDrawdown" 
                                        UniqueName="OneYearDrawdown">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_one_year_drawdown" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="70px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="StandardDeviation" 
                                        HeaderText="Std. Dev" SortExpression="StandardDeviation" 
                                        UniqueName="StandardDeviation">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_StandardDeviation" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="MinimumAccount" 
                                        HeaderText="Min.<br> Acct" SortExpression="MinimumAccount" 
                                        UniqueName="MinimumAccount">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_minimum_account" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="AUM" HeaderText="AUM" 
                                        SortExpression="AUM" UniqueName="AUM" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_AUM" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridTemplateColumn>
                            
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>
                                <ItemStyle Font-Size="8pt" />
                                <AlternatingItemStyle Font-Size="8pt" />
                        
                            </MasterTableView>
                            <PagerStyle Mode="NumericPages" />
                             <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            </HeaderContextMenu>
                        </telerik:RadGrid>


Urgent response will be appreciated. 

Regards,
Mohsin
Mohsin
Top achievements
Rank 1
 answered on 01 Nov 2011
3 answers
107 views
Hi,

I followed the guidelines to localize the GridView's built-in resources in the file RadGrid.main.resx. Most of the items appear correctly, but some are not: the buttons on the built-in toolbar for exporting to PDF, Word, etc. are all messesd up, see the attached screenshot.
Is there a fix or workaround for this? I haven't found anything on the site about this.
thank you

Pavlina
Telerik team
 answered on 01 Nov 2011
1 answer
111 views
Hi,
I have a customer for which we a contractually bound to deliver a W3C compliant application.

We have used the RadChart on a page which is emmitting the following markup which is non-compliant:
onerror="if(confirm('Error loading RadChart image.\nYou may also wish to check the ASP.NET Trace for further details.\nDisplay stack trace?')
The onerror attribute is not a valid attribute for a div tag.
Can you please provide some guidance as to how we can make this compliant with XHTML Transitional 1.0.
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
161 views
Is there any way to make the splitter panel take up the full page? Like Dock = Fill in Win forms.

Currently, I have it set to a particular size and hook into the window resize event. This produces a flicker that doesn't look great.
Dobromir
Telerik team
 answered on 01 Nov 2011
1 answer
56 views
Hello,
I have the problem that is mentioned in this post with RadTreeNodeData object. I'm using "2011.1.519.35"  version of telerik library, and the issue still happend.
There is some workaround or something that I can do to to solve this?

Thanks.
Julio
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
167 views

Hi,

I ahve a treelist with checkboxs.when i select this checkbox ,row colur is changed to gray .how to avoid changing the row clour when selecting the check box ?

Thanks ,
sindu
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
150 views
How do you use the menu to use image in the upper part and use text which is aligned at the center with the image on top

 <table style="width:90%;">
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">


    <telerik:RadMenu ID="RadMenu1" Runat="server" Skin="" CssClass="CSMBMenu" 
                    EnableRoundedCorners="True" >
        <Items>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/building_small_cadre.jpg" 
                ImageUrl="~/Images/building_small.jpg" 
                SelectedImageUrl="~/Images/building_small_cadre.jpg" Text="Bâtisses" 
                Width="83px">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/locker_small_cadre.jpg" 
                ImageUrl="~/Images/locker_small.jpg" 
                SelectedImageUrl="~/Images/locker_small_cadre.jpg" Text="Casiers" Width="83px">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/books_small_cadre.jpg" 
                ImageUrl="~/Images/books_small.jpg" 
                SelectedImageUrl="~/Images/books_small_cadre.jpg" Text="Dictionnaire" 
                Width="83px">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/security_small_cadre.jpg" 
                ImageUrl="~/Images/security_small.jpg" 
                SelectedImageUrl="~/Images/security_small_cadre.jpg" Text="Accès" Width="83px">
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>
            </td>
            <td></td>
        </tr>
        </table>

Here is the RadMenu but i can't get the text to align in the center, i guess i have to use the right css but dont have a clue on how to do that.
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
2 answers
222 views
Hi,

When i click an Image button on a radgrid, I got a msgbox to test 

 Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid1.ItemCommand


if e.CommandName = "Release" then

msgbox("Release")

endif

end sub

But when i click i get the following error message.

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Thanks
TonyG
Top achievements
Rank 1
 answered on 01 Nov 2011
3 answers
136 views
I need some assistance.

Iam using rad editor 7.2.0.0 .

When ever I am creating a link with an attachment the font size changes to the smallest font (1) after I insert a document. I try to increase the font size to say 3 but it won't allow me.

What can I do to increase the font size of a link after I have inserted the document.

Thanks,

Rumen
Telerik team
 answered on 01 Nov 2011
2 answers
155 views
hi,
i face a problem with rad editor in IE 9.
currently i am using 2011.1.315.40 asp.net ajax version.i put a rad editor in jquery dialog but when i open the dialog i can't  change the content of rad editor and it become a read only.
i also used following syntax:
<meta http-equiv="X-UA-Compatible" content="IE=8" /> but it not work.
i also attached a snapshot.
please give me solution.
thanks in advance
Mahesh
Top achievements
Rank 1
 answered on 01 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?