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

Hi,

I have used RadRotator as given in this demo.

http://demos.telerik.com/aspnet-ajax/rotator/examples/multiplescroller/defaultvb.aspx?#qsf-demo-source

  But it scroll for one time only. i need to scroll repeatedly.

Please let me know the solution.



Thanks,
Prasanna


Marin Bratanov
Telerik team
 answered on 09 Aug 2013
6 answers
408 views
Hi there

I have a grid where I want to hide/show certain columns before printing via a radbutton outside of the grid. 

I have used code from the forums to hide these columns and it works well

Protected Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
    For Each item As GridItem In RadGrid1.MasterTableView.GetItems(New GridItemType() {GridItemType.Pager, GridItemType.FilteringItem})
        item.Display = False
    Next
    RadGrid1.MasterTableView.GetColumn("Column1").Visible = True
    RadGrid1.MasterTableView.GetColumn("Column2").Visible = False
    RadGrid1.MasterTableView.GetColumn("Column3").Visible = False
End Sub

I also have client side code from the forums to print the grid, which also works well

   <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 
    <script type="text/javascript">
 
        function getOuterHTML(obj) {
            if (typeof (obj.outerHTML) == "undefined") {
                var divWrapper = document.createElement("div");
                var copyOb = obj.cloneNode(true);
                divWrapper.appendChild(copyOb);
                return divWrapper.innerHTML
            }
            else
                return obj.outerHTML;
        }
 
        function PrintRadGrid() {
            var previewWnd = window.open('about:blank', '', '', false);
            var sh = '<%= ClientScript.GetWebResourceUrl(RadGrid1.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",RadGrid1.Skin)) %>';
        var shBase = '<%= ClientScript.GetWebResourceUrl(RadGrid1.GetType(),"Telerik.Web.UI.Skins.Grid.css") %>';
        var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link>";
        styleStr += "<link href = '" + shBase + "' rel='stylesheet' type='text/css'></link></head>";
        var htmlcontent = styleStr + "<body>" + getOuterHTML($find('<%= RadGrid1.ClientID %>').get_element()) + "</body></html>";
        previewWnd.document.open();
        previewWnd.document.write(htmlcontent);
        previewWnd.document.close();
        previewWnd.print();
 
        if (!$telerik.isChrome) {
            previewWnd.close();
        }
    }
 
 
    </script>
</telerik:RadCodeBlock>

However, if I try to trigger them from my button like so:

<telerik:RadButton ID="RadButton1" runat="server" Text="Print"  AutoPostBack="True" OnClick="RadButton1_Click" OnClientClicking="PrintRadGrid">
    </telerik:RadButton>

the client side event always gets fired first and so the columns are still displayed in the preview window, and when I go back to my actual page, the columns remain hidden in the grid (I would like them to go back to the way they were on the actual page)

Please could someone tell me how to get all these things to work?
I know I have probably made a stupid mistake somewhere along the line but I am a bit of a newbie girl so please be gentle

Any help greatly appreciated :-)
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Aug 2013
1 answer
92 views
Trying to implement the RadRotator and use RadButtons to navigate through the slideshow however can't seem to get them to work.  When using the buttons the Rad control automatically puts in additional buttons along the side.  If I use the Links (<a href>) and click next it will navigate to the next page ok but doesn't get beyond that. 

I have 20 some pages that I would like to navigate through. 

Can someone point me in the right direction or tell me what I am doing wrong?

<telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="XmlDataSource1"
                   Width="610px" Height="800px" ScrollDuration="2000"
                   FrameDuration="2000" RotatorType="Buttons"
                   BorderColor="#bfd8e8" BorderWidth="1"
                   ScrollDirection="Left,Right" WrapFrames="false"
                   >
               <ItemTemplate>
                   <table width="610">
                       <tr><td><p><asp:Label ID="PersonName" runat="server"><%# XPath("ImageText")%></asp:Label></p></td></tr>
                       <tr><td>
                           <telerik:RadButton ID="_leftBtn" runat="server" Text="Previous">
                           </telerik:RadButton>
                           <telerik:RadButton ID="_rightBtn" runat="server" Text="Next">
                           </telerik:RadButton>     
                           <a href="#" id="leftBtn" title="Rotate Left" class="leftButton">Previous</a><a href="#" id="rightBtn" title="Rotate Right" class="rightButton">Next</a>                     
                       </td></tr>
                       <tr><td>
                           <asp:Image ID="CustomerImage" runat="server" AlternateText="Customer image" ImageUrl='<%# XPath("ImageUrl") %>' CssClass="personImage"></asp:Image>
                       </td></tr>
                   </table>
               </ItemTemplate>
               <ControlButtons LeftButtonID="leftBtn" RightButtonID="rightBtn"></ControlButtons>
           </telerik:RadRotator>
Marin Bratanov
Telerik team
 answered on 09 Aug 2013
1 answer
50 views
Hi,
  
We have developed a .Net application using Telerik controls like date picker,rad combo box,etc.
When we host this application in the local its working fine but when we host it in the windows 2008 server(both through package and Code),the aspx pages are loading properly but the Telerik controls are not getting loaded.
Please peovide me a solution to overcome it.
  
Thanks in advance
dinesh
Plamen
Telerik team
 answered on 09 Aug 2013
2 answers
182 views
I want to display a single notification at the lower right of the browser window. Within this notification is an expandable DIV element.

When the DIV is expanded, the notification height changes OK, but it expands downwards off the screen. I want it to expand upwards, so the lower position of the notification remains constant.

How would I achieve this?

Thanks.
jwhitley
Top achievements
Rank 1
 answered on 09 Aug 2013
1 answer
150 views
Hi,

I am creating multiple RadeDatePickers dynamically in .cs file and i need to update a label text whenever the SelectedDateChanged event is called. With autopostback set to "true", it is possible. but i dont want to trigger a complete post back every time. I just want to update the label. I have used something like this:
RadAjaxManager1.AjaxSettings.AddAjaxSetting(txtphasestartdate, lblphasestartdateCW); But it is throwing error arguement is null.parameter name:page. when i browsed it has been told that RadAjaxManager1.AjaxSettings.AddAjaxSetting can be done only in page_load or page_event methods. Since the controls are created at a later point in the page, i cannot do it in page_load method. Please suggest on this?
Maria Ilieva
Telerik team
 answered on 09 Aug 2013
2 answers
141 views
Hi. I am using RadHTML charts to display some data which is being populated from a stored procedure using the SqlDataSource.
Here i have my x-axis being populated from a column which is in minutes.  All is fine, though i want to change the color of the bars that are shown above the 30min mark and again above the 45min mark.  How can i achieve this please?

I understand that i first must retrieve the data (i can do that with the code behind separately), though i cannot seem to manage to figure out how the bar color can be changed.

Thanks.
Kyle
Kyle
Top achievements
Rank 2
 answered on 09 Aug 2013
1 answer
114 views
I have Radgrid of Telerik components on my webpage , in this grid with double click the selected row go to edited mode . (I use this article http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx ) now i want this : for example i'm in the first row and second column in edit mode . i want when the operator press CTRL another webpage show as pop-up ; i know how to show the pop-up page but i don't know how to programming for pressed key on aspecified column .
Angel Petrov
Telerik team
 answered on 09 Aug 2013
8 answers
142 views
Hi,

It's great fun skinning the editor, to say the least.

My most recent fun moment relates to the bottom buttons.

See this image: http://imgur.com/g8gyWv1

You can see that although my class is applied
.reMode_design { background: url(editor/VerticalSpritesLight.png) 0 0 no-repeat !Important; }

it's also overridden :)

So, we get the default icon on top of my icon.

As great as this double pencil button looks, how should I go about getting rid of the original one?

Regards,
-DJ-
-DJ-
Top achievements
Rank 1
 answered on 09 Aug 2013
5 answers
145 views
I have found next problem with your components.
I have prepared small test page which showed problem. If grid show after ajax request, I see that height is incorrect.
I have debug your scripts, and see that problem in apply styles to pager and so on. In result when calculate height, script is thinking that height of pager for example 300px instead 100px.
It is possible to resolve by run repaint() function when grid initialized styles complete, but I cannot find any event which could help me.
Please answer how possible to resolve this problem ASAP.
This problem occured at FF everytime, and in IE sometimes

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head></head>
<body>
    <form id="form1" runat="server">
    <div>
      <telerik:RadScriptManager runat="server"/>
       
      <asp:Button ID="btn" runat="server" OnClick="click" Text="Show grid"/>
       
      <telerik:RadGrid runat="server" ID="grid"  Visible="False"
            Height="600px"
            AllowPaging="True">
        <ClientSettings>
          <Scrolling AllowScroll="True" UseStaticHeaders="True"/>
        </ClientSettings>
        <MasterTableView >
          <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" AlwaysVisible="true"/>
        </MasterTableView>
      </telerik:RadGrid>
       
      <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
          <telerik:AjaxSetting AjaxControlID="btn">
            <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="btn"  />
              <telerik:AjaxUpdatedControl ControlID="grid"/>
            </UpdatedControls>
          </telerik:AjaxSetting>
        </AjaxSettings>
      </telerik:RadAjaxManager>
    </div>
    </form>
</body>
</html>
public partial class test : System.Web.UI.Page
{
  protected void Page_Load(object sender, EventArgs e)
  {
    grid.NeedDataSource += new Telerik.Web.UI.GridNeedDataSourceEventHandler(grid_NeedDataSource);
  }
 
  void grid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
  {
    grid.DataSource = new[] { new { a = 1, b = "test" }, new { a = 2, b = "test" }, new { a = 3, b = "test" } };
  }
 
  protected void click(object sender, EventArgs eventArgs)
  {
    grid.Visible = true;
    grid.Rebind();
  }
}
Philipp
Top achievements
Rank 1
 answered on 09 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?