Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hi,

are there any ways to remove the space that displays the chart title in order to save some space?

Thanks in advance.

Duy
Ves
Telerik team
 answered on 30 Jun 2009
1 answer
95 views

Hi

In telerik grid we are using CustomPaging for scrolling record so I have written following code.

<telerik:RadGrid ID="Grid1" runat="server" PageSize="8" AllowCustomPaging="true">

<ClientSettings>

<Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" UseStaticHeaders="True" ScrollHeight ="215" SaveScrollPosition="True">

</Scrolling>

      </ClientSettings>

 

This code display record correctly but when I change page size at runtime grid not resize and also not shown all the rows on the screen.

 

Pavlina
Telerik team
 answered on 30 Jun 2009
3 answers
111 views
Hi,

RadGrid is refusing to apply the property ItemStyle HorizontalAlign="Center" / ItemStyle-HorizontalAlign="Center", no matter where I specify the property in the markup, it always ignores it and the text is still left aligned. I have also tried applying css class to gridboundcolumns with text-align:center !important; and this has no effect either.

This only appears to be happening since upgrading to 2009, does anyone know why I cannot get the dataitems to align in center? Is there a solution?

Thanks,
Matt
Pavlina
Telerik team
 answered on 30 Jun 2009
1 answer
90 views
Hi
        I am using Radgrid which has the option to export pdf. I am using commanditem template having linkbutton control.
When i click the button i hav to export the existing grid data to PDF file. But once after i click the link button the pdf file opens but it lokked like blank sheet.

if (e.Item is GridCommandItem)
        {
            if (e.CommandName == "lnkExportPDF")
            {
               RadGrid1.ExportSettings.ExportOnlyData = true;
              RadGrid1.ExportSettings.IgnorePaging = true;
               RadGrid1.ExportSettings.OpenInNewWindow = true;
               RadGrid1.ExportSettings.Pdf.Title = "Billing Report";
              RadGrid1.ExportSettings.Pdf.PageLeftMargin=Unit.Pixel(10);
              RadGrid1.ExportSettings.Pdf.PageRightMargin = Unit.Pixel(10);
               RadGrid1.ExportSettings.Pdf.PageWidth = Unit.Pixel(3500);
                this.RadGrid1.MasterTableView.ExportToPdf();

            }
        }

But the Export pdf works with ordinary button placed outside of radgrid.It shows complete data in the PDF file. But it doesnt work when i have created the link button as CommandItemTemplate.

Plz direact me as soon as possible

Regards,
Appu
Daniel
Telerik team
 answered on 30 Jun 2009
2 answers
64 views

Hi,

I have a UserControl (m_ucPolicyList) within a RadPanelBar.

<telerik:RadPanelBar runat="server" ID="m_rpbPageContent" Width="99%">
<Items>
<telerik:RadPanelItem  runat="server" Text="General Information" Width="100%" Value="General Information Panel" Expanded="true">
<ItemTemplate>
<div id="m_ldGeneralInfo" runat="server">
<tstUser:PolicyListControl ID="m_ucPolicyList" runat="server"/>
</div>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>

is there anyway to subscribe to events raised by my usercontrol (m_ucPolicyList)?

What I'm finding is that the UserControl (any control within a RadPanelBar) is not available to me at Page_Load and I have to wait for Page_PreRender to access it via the FindItemByValue() method. However, it appears that if I try to attach the eventhandler to my control in Page_PreRender it is too late in the page lifecycle to actually work.

I thought perhaps I could attach the eventhandler in the _ItemCreated event of the RadPanelBar but that event is not firing for me.

Any suggestions?

Thanks so much,

Kennon

Kennon McCaa
Top achievements
Rank 1
 answered on 30 Jun 2009
1 answer
91 views
Hi all,

I had problems on all browsers with my Telerik tree looking untidy and out of alignment until I remembered that the overall style-sheet for my site has a default style for the <li> tag, namely:

li
{
    padding: 3px 2px 5px 2px;
}

The tree makes heavy use of <li> tags but for some reason doesn't override the default styling, so I had to do it manually in the HTML of the control.ascx file that contained the tree:

<style type="text/css">
/* UNDO standard <li /> styling for the Telerik tree */
li
{
    padding: 0px !important;
}
</style>
<telerik:RadTreeView ID="rtvSearchResults" runat="server" DataTextField="VariableName" style="white-space: normal;">

Telerik, any chance this could be fixed in a future release?  (Or it in fact not possible to "fix" this, in which case could we have it highlighted in the documentation?)

Ed Graham
Kamen Bundev
Telerik team
 answered on 30 Jun 2009
2 answers
87 views
I have a grid which is inside a div which is hidden using the style : "display:none". I bind data to this grid serverside
and make the div containing the grid visible after a button is clicked on the page. The problem is that the grid data is covered by a gray background. and that dissapears when i resize the page. I believe that the height was probably still zero since the grid was hidden when databinding occured. Is there a way to refresh the grid jusing javascript? 
akeem
Top achievements
Rank 1
 answered on 30 Jun 2009
2 answers
129 views
Hi all,

I'm currently researching to see if we can use the Rad TabStrip in one of our latest webapplications. We want an application with several tabbed pages. If I'm not mistaking when a page with a TabStrip is loaded, then all the tabs are loaded at once.
Since our application needs to have 10 tabs with on each one several inputcontrols, I'm concerned it will increase the page loading time seriously.

Is there a wat to use tabbed pages, but to render a page only when it's tab is clicked?

Thanks,
Arno
Paul
Telerik team
 answered on 30 Jun 2009
1 answer
82 views
Hi,

I have page size as  30 for my radgrid . Now on changing the page the grid's position  remains at the bottom. I want the user to see the first record on the next page when he changes the page. How can i do it?
Dimo
Telerik team
 answered on 30 Jun 2009
1 answer
260 views
I have the following Code and I tried some of the CSS Style that are given in other forums to reduce the height of the toolbar. But none of them worked. Can you help me to refix the height of the Toolbar?

 

<telerik:RadToolBar ID="RdToolBar" runat="server" Width="100%" OnClientButtonClicking="OnButtonClicking">

 

 

<Items>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/AddNew_Disabled.gif"

 

 

ImageUrl="~/Images/MenuImages/AddNew.gif" Text="Add New" Value="ADDNEW">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/MenuImages/Attributes.gif"

 

 

Text="Attributes" Value="ATTRIBUTES" DisabledImageUrl="~/Images/MenuImages/Attributes_Disabled.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Separator" Value="Separator">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/MenuImages/Cut.gif" Text="Cut"

 

 

Value="CUT" DisabledImageUrl="~/Images/MenuImages/Cut_Disabled.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/MenuImages/Paste.gif"

 

 

Text="Paste" Value="PASTE" DisabledImageUrl="~/Images/MenuImages/Paste_Disabled.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/MenuImages/Rename.gif"

 

 

Text="Rename" Value="RENAME" DisabledImageUrl="~/Images/MenuImages/Rename_Disabled.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/MenuImages/Delete.gif"

 

 

Text="Delete" Value="DELETE" DisabledImageUrl="~/Images/MenuImages/Delete_Disabled.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" ImageUrl="~/Images/MenuImages/Search.gif"

 

 

Text="Search" Value="SEARCH" DisabledImageUrl="~/Images/MenuImages/Search_Disabled.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Separator" Value="SEPARATOR">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/Refresh_Disabled.gif"

 

 

ImageUrl="~/Images/MenuImages/Refresh.gif" Text="Refresh" Value="REFRESH">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/ExpandAll_Disabled.gif"

 

 

ImageUrl="~/Images/MenuImages/ExpandAll.gif" Text="Expand All" Value="EXPAND_ALL">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Separator" Value="SEPARATOR">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/Display_Disabled.gif"

 

 

ImageUrl="~/Images/MenuImages/Display.gif" Text="View Hidden" Value="VIEW_HIDDEN"

 

 

CheckOnClick="True" AllowSelfUncheck="True">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/Publish_Disabled.gif"

 

 

ImageUrl="~/Images/MenuImages/Publish.gif" Text="Publish" Value="PUBLISH">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/Print_Disabled.gif"

 

 

ImageUrl="~/Images/MenuImages/Print.gif" Text="Print" Value="PRINT">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Separator" Value="SEPARATOR">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/JJInfo_Disabled.gif"

 

 

ImageUrl="~/Images/MenuImages/JJInfo.gif" Text="Help" Value="HELP">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" IsSeparator="True" Text="Separator" Value="SEPARATOR">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton runat="server" DisabledImageUrl="~/Images/MenuImages/Exit.gif"

 

 

ImageUrl="~/Images/MenuImages/Exit.gif" Text="Exit" Value="EXIT">

 

 

</telerik:RadToolBarButton>

 

 

</Items>

 

 

</telerik:RadToolBar>

 

Paul
Telerik team
 answered on 30 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?