Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
224 views

i have a user control with rad tool bar button like this

<telerik:RadToolBar ID="RadToolBar1" Runat="server" 
EnableRoundedCorners="True" EnableShadows="True" Width="940px" 
onbuttonclick="RadToolBar1_ButtonClick" onunload="RadToolBar1_Disposed">
<Items>
<telerik:RadToolBarButton CommandName="btn" Text="Add" ImageUrl="../Images/Add.png" 
ImagePosition="AboveText" />
<telerik:RadToolBarButton Text="Update" ImageUrl="../Images/Edit.png" ImagePosition="AboveText" />
<telerik:RadToolBarButton Text="Delete" ImageUrl="../Images/Delete.png" 
ImagePosition="AboveText" />
<telerik:RadToolBarButton Text="Refresh" ImageUrl="../Images/Refresh.png" ImagePosition="AboveText" />
<telerik:RadToolBarButton Text="Print" ImageUrl="../Images/Print.png" 
ImagePosition="AboveText" Enabled="False" />
<telerik:RadToolBarButton Text="Close" ImageUrl="../Images/Close.png" 
ImagePosition="AboveText" />
<telerik:RadToolBarButton Text="Save As" ImageUrl="../Images/SaveAs.png" 
ImagePosition="AboveText" />
<telerik:RadToolBarButton Text="Itemtemplate">
<ItemTemplate>
<div id="loginAarea" style="margin-left:150px" >
<table style="margin-left: -50px;" >
<tr>
<td >
<telerik:RadTextBox ID="txtUserName" runat="server" Label="Added By" 
Width="240" Height="16" Enabled="false" Font-Bold="True" ></telerik:RadTextBox>
</td>
<td>
<telerik:RadTextBox ID="txtLastUserName" runat="server" 
Label="Last Updated By" Width="240" Height="16" Enabled="false" 
Font-Bold="True" ></telerik:RadTextBox>
</td>
</tr>
<tr>
<td>
<telerik:RadTextBox ID="txtLoginDate" runat="server" Label="Date:" 
Width="240" Height="16" Enabled="false" Font-Bold="True" ></telerik:RadTextBox>
</td>
<td>
<telerik:RadTextBox ID="txtLastLoginDate" runat="server" Label="Date:" 
Width="240" Height="16" Enabled="false" Font-Bold="True" ></telerik:RadTextBox>
</td>
</tr>
</table>
</div>
</ItemTemplate>
</telerik:RadToolBarButton>

</Items>
</telerik:RadToolBar>

i add the rad tool bar with place holder on content page like this

Page.LoadControl("MenuStyle1.ascx");
Spinner1 = (ASP.MenuStyle1)LoadControl("MenuStyle1.ascx");
RadToolBar tlbar = (RadToolBar)Spinner1.FindControl("RadToolBar1");
place.Controls.Add(tlbar);

<asp:PlaceHolder ID="place" runat="server"></asp:PlaceHolder>

now i want to access the radtoolbar using javascript how i do that

Princy
Top achievements
Rank 2
 answered on 05 Apr 2012
1 answer
113 views
Hi, I'm having issues applying a tooltip to a dynamic DOM element. Here is my scenario:

  1. Ajax request is made.
  2. Data received is then generated into new dom elements on my page.
  3. I attempt to apply a tooltip to one of those newly created dom elements, but I'm getting an empty tooltip.

Below is a basic example of how I am trying to apply the tooltip to my newly created elements. Again, all I get is an empty tooltip. Thanks for your help!

$("span.XYZ").each(function () {
     
    var tooltipManager = $find("ctl00_main_RadToolTipManager1");
 
    var tooltip = tooltipManager .getToolTipByElement(this);
 
    if (!tooltip) {
        tooltip = test.createToolTip(this);
        tooltip.set_contentElement("<span>abcd</span>");
        //tooltip.updateLocation();
    }
 
    //this.onmouseover = null;
});

Marin Bratanov
Telerik team
 answered on 05 Apr 2012
5 answers
213 views
Step to reproduce:
1. open radcolorpicker near to right bottom corner of window.
2. change(switch) palette
3. close colorpicker.
4. Open it again and you can see that color picker doesn't fit to window size.
Slav
Telerik team
 answered on 05 Apr 2012
16 answers
205 views
Hi !

How can I localize facebook button with the RadSocialShare ?

<telerik:RadSocialShare runat="server" ID="SocialShare" BorderStyle="None" UrlToShare="xxx" >
  <MainButtons>
    <telerik:RadFacebookButton ButtonType="FacebookLike" />
  </MainButtons>
</telerik:RadSocialShare>

It's always in en_US culture !

Thank's for help :)
Marin Bratanov
Telerik team
 answered on 05 Apr 2012
1 answer
96 views
Hi all:
I've just updated my web application (Q1 2010 RadControls) and all went well.  I wanted to utilize this feature (SocialShare), and it works great on most pages, but not on others.  Here's what I've done:
- add a radscriptmanager to my masterpage, and then also added the radsocialshare to the master page.  [works great]

Oddly, in one of my administration pages, I needed to delete a scriptmanager since I can only have 1 per page, which I now have in my master page.  I noticed that in this page (updates news using sqldatasource; pretty basic), the user can do a simple update on one table, which has been working fine for the past year.  Since adding the socialshare, it's not working; not even giving me an error though.  If I comment out the social share code, it works again!? 

Any help would be greatly appreciated!
Marin Bratanov
Telerik team
 answered on 05 Apr 2012
2 answers
95 views
I want to show the data in a RadChart.
The XAxis is in the range 2009/01/01~2009/05/01.
I want to show the data with the xonly scrollbar.In one page,the data of one day will be shown.
So i want the pages to be 120.
But maybe the max xscale is 20. I used 20 and 3000 to set the xscale.
But the result is the same.
Is the max scale 20?

Thanks.
Peshito
Telerik team
 answered on 05 Apr 2012
1 answer
131 views
Hi,
I have nested radrotator means rotator inside rotator "     

ASPX
  
<telerik:RadRotator runat="server" ID="RadRotator1" RotatorType="AutomaticAdvance"
            Skin="Web20" SlideShowAnimation-Type="Fade" ScrollDirection="Up" Width="800px"
            ItemWidth="700px" Height="900px" ItemHeight="300px" FrameDuration="2000" OnItemDataBound="RadRotator1_ItemDataBound">
            <ItemTemplate>
                <div class="outerDiv">
                    <asp:HiddenField runat="server" ID="hdnParentId" Value='<%# DataBinder.Eval(Container.DataItem, "ParentId")%>' />
                    <telerik:RadRotator runat="server" ID="RadRotator2" RotatorType="AutomaticAdvance"
                        Skin="Web20" ScrollDirection="Left" Width="300px" FrameDuration="200" ItemWidth="300px"
                        Height="250px" ItemHeight="250px" OnItemDataBound="RadRotator2_ItemDataBound">
                        <ItemTemplate>
                            <asp:Image ID="CustomerImage" CssClass="recipeImage" Width="300px" Height="250px"
                                runat="server" AlternateText="Recipe Image" ImageUrl='<%#Eval("Name_Image", "~/IMAGES/{0}.jpg")%>' />
                        </ItemTemplate>
                    </telerik:RadRotator>
                    <div class="detail">
                        <div class="recipeName">
                            <asp:Label ID="lblRecipeName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Menu_Compiler_Description")%>'></asp:Label>
                        </div>
                        <fieldset>
                            <legend>Recipe</legend>
                            <div class="recipe">
                                <%# DataBinder.Eval(Container.DataItem, "Recipe_Name")%>
                            </div>
                        </fieldset>
                    </div>
                </div>
            </ItemTemplate>
            <SlideShowAnimation Type="Fade"></SlideShowAnimation>
        </telerik:RadRotator>"


Code Behind

 protected void RadRotator1_ItemDataBound(object sender, RadRotatorEventArgs e)
        {
            HiddenField hdnParentId = (HiddenField)e.Item.FindControl("hdnParentId");
            Telerik.Web.UI.RadRotator RadRotator2 = (Telerik.Web.UI.RadRotator)e.Item.FindControl("RadRotator2");
            DataSet ds = new DataSet();
            SqlHelper objSQL = new SqlHelper();
            ds = objSQL.ExecuteDataset("Test_Menu_Details", hdnParentId.Value);
            if (ds.Tables.Count > 0)
            {
                RadRotator2.DataSource = ds.Tables[0];
                RadRotator2.DataBind();
            }
        }

When i am executing this,Parent radrotator working correctly.Child radrotator after showing first image its not showing working.When i look into the RadRotator2_ItemDataBound event its working correctly and i can see the image bindings.

Thanks
Slav
Telerik team
 answered on 05 Apr 2012
6 answers
325 views
Hi
I have a RadGrid with filter on two columns.When I click Filter Icon a context menu with the filter options opens up.But i do not wish to have this context menu.What I would like to have is , whenever I click on the icon the default "Contains" filter function should work without the opening of context menu.
I had gone through the demos on your website,it doesn't tell how to hide this context menu.

Please help.

Thanks
kdyeqb
Top achievements
Rank 1
 answered on 05 Apr 2012
7 answers
268 views
Hello Telerik team,
If I use a paging template for my RadGrid control and and place it to the top, it will not show up. I already have set both the AlwaysVisible property and the AllowPaging property to true. If I place the paging template at the bottom of the RadGrid control it shows up correctly (even if no paging is neccessary).

The RadGrid control itself is inside a RadPane control which is inside a RadSplitter control (vertical splitting, bottom half), and this is inside a SlidingPane (I know it sounds a little bit confusing, but this is the design of my web page project).

I know that in some threads the same problem was described and that a solution was given (i.e. a bug fix for the 2008...version).

I currently use the newest version 2012.1.215.40, but the bug is still there.


Any ideas?

Greetings,
Richard Huber.
Richard
Top achievements
Rank 1
 answered on 05 Apr 2012
8 answers
282 views
Hello friends.
in my application i have lot of pages and one master page. i want to allow the customer to change the skin according to his wish in combobox in master page and i need to store the skin name along with the customer details, so that next he logins in skin loads by default. 
is it possible to set the skin master page and that makes other pages to change the skin. if yes, how can i make this possible.
thanks in advances
S.Rajkumar
Raj
Top achievements
Rank 1
 answered on 05 Apr 2012
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?