Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
336 views
Hi Team,

        When i use rad gridview, i set customer paging and auto scroll. But i always see white space in end of row and end of column. I'm refer sample code and use default theme (Office 2007).  I gave Page size is 10. Please see my attachment . Kindly, suggestion to me.

<div style="margin-right: auto; margin-left: auto; margin-top: auto; width: 780px; border:solid 1px red">
    <div style="width: 100%; height: auto;" align="left">
        <table width="480px">
            <tr style="height: 20px" align="left">
                <td align="left" width="45%">
                    <asp:Label ID="Label1" runat="server" Text="Search By"></asp:Label>
                    <asp:DropDownList ID="_cboSearchBy" runat="server" Width="150px">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:TextBox ID="_txtFind" runat="server" Width="139px"></asp:TextBox><asp:Button
                        ID="_btnSearch" runat="server" Text="Search" OnClick="_btnSearch_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div style="width: 100%;" align="left">
        <table align="center">
            <tr>
                <td>
                    <telerik:RadGrid ID="_radGrid" runat="server" AutoGenerateColumns="False" GridLines="None"
                        OnPageIndexChanged="_radGrid_PageIndexChanged" EnableEmbeddedSkins="False" Skin="mscSkinOffice"
                        AllowPaging="True" AllowCustomPaging="True" OnPageSizeChanged="_radGrid_PageSizeChanged"
                        OnDataBound="_radGrid_DataBound" Width="770px">
                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="2"></Scrolling>
                            <Resizing AllowColumnResize="True" />
                        </ClientSettings>
                        <SortingSettings SortedBackColor="BurlyWood" />
                        <MasterTableView DataKeyNames="Key,No">
                            <CommandItemSettings ExportToPdfText="Export to Pdf" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="SelectColumn"
                                    Resizable="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="imgbtnSelected" runat="server" Text="Select"></asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle Width="50px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="Key" FilterControlAltText="Filter Key column"
                                    HeaderText="Key" SortExpression="Key" UniqueName="Key" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="No" FilterControlAltText="Filter No column" HeaderText="No."
                                    SortExpression="No" UniqueName="No">
                                    <ItemStyle Wrap="False" />
                                    <HeaderStyle Width="80px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column"
                                    HeaderText="Name" SortExpression="Name" UniqueName="Name">
                                    <HeaderStyle Width="150px" />
                                    <ItemStyle Wrap="False" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Location_Code" FilterControlAltText="Filter Location_Code column"
                                    HeaderText="Location" SortExpression="Location_Code" UniqueName="Location_Code">
                                    <HeaderStyle Width="60px" />
                                    <ItemStyle Wrap="False" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Address" FilterControlAltText="Filter Address column"
                                    HeaderText="Address" SortExpression="Address" UniqueName="Address">
                                    <ItemStyle Wrap="False" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Address_2" FilterControlAltText="Filter Address_2 column"
                                    HeaderText="Address 2" SortExpression="Address_2" UniqueName="Address_2">
                                    <ItemStyle Wrap="False" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Phone_No" FilterControlAltText="Filter Phone_No column"
                                    HeaderText="Phone No." SortExpression="Phone_No" UniqueName="Phone_No">
                                    <ItemStyle Wrap="False" />
                                    <HeaderStyle Width="80px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Contact_No" FilterControlAltText="Filter Contact_No column"
                                    HeaderText="Contact No." SortExpression="Contact_No" UniqueName="Contact_No">
                                    <ItemStyle Wrap="False" />
                                    <HeaderStyle Width="80px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Contact" FilterControlAltText="Filter Contact column"
                                    HeaderText="Contact" SortExpression="Contact" UniqueName="Contact">
                                    <ItemStyle Wrap="False" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Credit_Limit_LCY" DataFormatString="{0:#,0.#0}"
                                    DataType="System.Decimal" FilterControlAltText="Filter Credit_Limit_LCY column"
                                    HeaderText="Credit Limit LCY" SortExpression="Credit_Limit_LCY" UniqueName="Credit_Limit_LCY">
                                    <HeaderStyle HorizontalAlign="Right" Width="70px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                            </Columns>                                   
                            <ItemStyle HorizontalAlign="Left" />
                            <AlternatingItemStyle HorizontalAlign="Left" />
                        </MasterTableView>
                        <HeaderStyle Width="200px" HorizontalAlign="Left" />
                        <PagerStyle Mode="NextPrev" PagerTextFormat="{4}  Page <strong>{0}</strong> of <strong>{1}</strong>." />
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_mscSkinOffice" EnableEmbeddedSkins="False">
                        </HeaderContextMenu>
                        <FilterMenu EnableEmbeddedSkins="False" EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                </td>
            </tr>
        </table>
    </div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="_radGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="_radGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</div>

Best Regards,
Pavlina
Telerik team
 answered on 17 Feb 2011
1 answer
174 views
I have a module within DotNetNuke that contains a RadMenu and a RadDock.  Items in the menu correspond to some of the RadDocks.  For example, one of the RadDocks is named Dock_MyTasks.  I can pull that name from the RadMenuItem value field.  But when I try to use that name to $Find the Dock control I have problems.  First, DNN adds to the Dock_MyDocks name like this ...

dnn_ctr381_Que2_Dock_MyTasks.  

 

I get around that by calling a Javascript function that returns a control containing the name Dock_MyTasks.  But, when I look at the running HTML, there are multiple HTML elements that contain the name Dock_MyTasks.  They are suffixed with _T, _C, _ClientState.  Here's the JavaScript I'm trying to use.  Everyhing seems to execute just fine until I call the GetClientId function.  What am I doing wrong?

 

 

 

 

 

 

 

 

 

 

function miClicked(sender, e) {

var MenuItem = e.get_item();

var DockName = MenuItem.get_value();

var dock = GetClientId(DockName);

var isClosed = dock.get_closed();

dock.set_closed(!isClosed);

MenuItem.Selected = !MenuItem.Selected;

}

 


// Gets the ASP.NET generated control ID

 

function GetClientId(controlId) {

var count = document.forms[0].length;

var i = 0;

var aspControlId;

for (i = 0; i < count; i++) {

aspControlId = document.forms[0].elements[i].id;

pos = aspControlId.indexOf(controlId);

if (pos >= 0) break;

 

 

}
return document.forms[0].elements[i];

 

}

 

Pero
Telerik team
 answered on 17 Feb 2011
1 answer
97 views
Hi,

I am experiencing problem with RadAjaxPanel. It does complete posback when selected index changed of RadComboBox for the first time. It works fine after. What could be the problem? Here is my code. This code is in User Control.

Thank you..

<telerik:RadAjaxPanel ID="radAjaxPanel1" runat="server" LoadingPanelID="radldpnlContactInfo">
    <asp:Panel ID="Panel1" runat="server" Visible="False">
        <table id="Table1"><tr><td>
                                <telerik:RadComboBox ID="RadComboBox1" runat="server"
                                    AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
                                </telerik:RadComboBox>
                            </td>

                            <td valign="top">
                                <br />
                                <asp:Button ID="button1" runat="server" OnClick="button1_Click" Text="Test1"
                                    /><br />
                                <asp:Button ID="button2" runat="server" OnClick="button2_Click" Text="Test2"
                                     />
                            </td>
                        </tr>
                    </table>
</asp:Panel>
</telerik:RadAjaxPanel>

Maria Ilieva
Telerik team
 answered on 17 Feb 2011
4 answers
264 views
I am absulutly despaired. I build a very nice page with your controls.
at the end of the project I have to create a pdf file with all the results from the input of this page.
So i place a ImageButton on the page. This button should not be shown at every situation. So i make it visible or not and put it to the RadAjaxManger. With a third party tool from expertPDF (www.html-to-pdf.net) I want to create my pdf after clicking on the image button.
And than I get the same problem described in this posting:
http://www.codeproject.com/Messages/2617925/ASP-Net-AJAX-Response-Write-and-PDF.aspx

I search for this problem for many hours and I am getting so unhappy now, because I want to filalize my project... please help me ...
thomas
Thomas Gross
Top achievements
Rank 1
 answered on 17 Feb 2011
2 answers
280 views
Hello everyone, I'm wondering if it is possible to use the telerik controls and Ajax to create a web application in which the user navigates using the telerik RadMenu but the page never refreshes. For example, I have a two-column page layout with a header. In the left column of the page I have a RadMenu with several navigation options. When a user clicks one of the navigation options I would like that page to load in the right column of the page without refreshing the entire page. Any help or ideas would be most appreciated

Thanks!

Jason
srivathsan
Top achievements
Rank 1
 answered on 17 Feb 2011
1 answer
125 views
Hi there,
is it possible to skip more than one control in code behind? I just found a way to skip one at a time:
this.masterFormDecorator.ControlsToSkip = FormDecoratorDecoratedControls.Fieldset;
 Thanks for your help.
Georgi Tunev
Telerik team
 answered on 17 Feb 2011
1 answer
117 views
Can anyone please give me a simple example for a Multi-column ComboBox (the top one mentioned here http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx) that reads the data from a WebService at run-time using the following tag inside the ComboBox:

<WebServiceSettings Method="GetHeadings" Path="~/WebService/ListingHeadings.asmx" />

A sample code project would be really helpful.

Regards,
Paras Wadehra

Yana
Telerik team
 answered on 17 Feb 2011
3 answers
93 views
hello telerik,
When I used the embedded JQuery to get the height or width of a element , it always less than the actual value 6px;

for example ,there is a control :  <input id='a' style='height:30px' value='test'>
when I use the method $("#a").css("height") , it returns a incorrect value: 24px ;  But when I use the earlier version of jquery.js , it would give me a correct value 30px;
Veli
Telerik team
 answered on 17 Feb 2011
1 answer
158 views
hi telerik team,
I have an issue with radcombobox.I have a radcombobox in a very large form .
when i do some selection in the radcombobox the screen scroll down to the top of form instead where i did selection on that particular radcombobox.This radcombobox are using ajax to avoid postback.. i have already used  scrollIntoView() with the hidden field concept,its maintaing the scroll position but
the page first goes to top and then return to its selected position after performing the required tasks for its selected index changed  .i m using IE .
Can you please tell the solution for this problem.
Helen
Telerik team
 answered on 17 Feb 2011
2 answers
134 views
Hi friends,
                   Can any one help me how to make my Radtabstrip Skin looks  like Office2007 Skin.Because for remaining skins there is no background image is available and this makes my child tabs look so weird..How to make all skins of Radtabstrip looks like Office2007 Skin so that user can avoid confusion over whether is parenttab or child tab..I have just applied a background color and also background image for Rabtabstrip..but i didn't works..I want all the Telerik Skin for RadTab looks the same..Can any one????

Thanks And Regards,
  Titti.S
TSM
Top achievements
Rank 1
 answered on 17 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?