Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
191 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
73 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
84 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
108 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
297 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
210 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
264 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
1 answer
114 views
Hi,

I have created a new CustomComboBox control using RadComboBox control,when i tested the CustomCombobox it is working as good as  the RadComboBox contorl.
.

Now i want to apply custom skin or css for my CustomComboBox  control.
.
created a simple style like below,but the style is not applying to the control

.mycustomskin
{
background-color:Gray;
font-family:Arial;
color:white;
}

i checked in the page source and overwrite the style of rcblist  it worked,but i don't want to write like this.

.RadComboBox_Default  .rcblist
{
background_color:Gray 
font-family:Arial;
color:white;
}

is there any way that  i can  give mycontrol name and stylename instead of .RadComboBox_Default  .rcblist 

like

CustomComboBox_myskin .bgstyle
{
background_color:Gray  
font-family:Arial;
color:yellow
}

i heard about RadStylebuilder, what it will do?,if i use it ,will it solve my problem?, please help me..


Thanks and Regards
Sreekanth J.

Ivan Zhekov
Telerik team
 answered on 05 Apr 2012
2 answers
70 views
I'm using jQuery UI to make cloud items draggable. However, dragged items dissappear under the cloud container. I've tried setting z-index on item parents but can't get it right.

I was hoping you could suggest a possible road to a solution where cloud items would appear on top of everything else.

Please see code snippets belos and attached screen shots.

Code:
$(function () {
  $('li.rtcTagItem a').draggable({ zIndex: 2701, revert: true });
  ...
Morten
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 05 Apr 2012
1 answer
167 views
I am at a total loss, no matter what I do, one of these two scenarios will throw a Sys is undefined error while utilized the RadAjaxManager:

My two scenarios, what they have in common:
    I have a Master Page, on that Master Page I have a RadAjaxManager.

   Scenario 1: I have a content page where User Controls are Dynamically Added to the Page and inside of the UserControls I reference the SharedAjaxManager and AddAjaxSettings for controls within my custom USer Controls

   Scenario 2: I have a simple content page with Telerik Controls on It.

No matter how I define the RadAjaxManager it will ALWAYS fail one of these two scenarios when i try to ajaxify controls

I tried Defining it in the 3 following ways (2 ways are Programmatically in the Master Page, 1 way is By putting it in the MasterPage Markup)

protected override void OnInit(EventArgs e)
       {
           base.OnInit(e);
           if (MasterAjaxManager == null)
           {
               Telerik.Web.UI.RadAjaxManager SharedAjaxManager = new Telerik.Web.UI.RadAjaxManager();
               SharedAjaxManager.ID = "SharedAjaxManager";
              SharedAjaxManager.DefaultLoadingPanelID = RALP.UniqueID;
               form1.Controls.Add(SharedAjaxManager);
           }
public Telerik.Web.UI.RadAjaxManager MasterAjaxManager
       {
           get { return (Telerik.Web.UI.RadAjaxManager)this.form1.FindControl("SharedAjaxManager"); }
        }
       }

I also tried defining by:
protected void Page_Init(object sender, EventArgs e)
        {
           Telerik.Web.UI.RadAjaxManager SharedAjaxManager = new Telerik.Web.UI.RadAjaxManager();
            SharedAjaxManager.ID = "SharedAjaxManager";
            SharedAjaxManager.DefaultLoadingPanelID = RALP.UniqueID;
            this.Page.Form.Controls.Add(SharedAjaxManager);
        }
  
       public Telerik.Web.UI.RadAjaxManager MasterAjaxManager
        {
            get { return Telerik.Web.UI.RadAjaxManager.GetCurrent(Page); }
        }

And by:
<telerik:RadAjaxManager ID="SharedAjaxManager" runat="server" DefaultLoadingPanelID="RALP">
        </telerik:RadAjaxManager>
  
        public Telerik.Web.UI.RadAjaxManager MasterAjaxManager
        {
            get { return SharedAjaxManager; }
        }


And in each case where I ajaxify Controls I do this: (i tried referencing it through my own way and by RadAjaxManager.GetCurrent(Page) //I also tried using RadAjaxManagerProxy and setting it in the aspx page, but it still throws the same error
protected void Page_Load(object sender, EventArgs e)
        {
                         RegisterAjaxControls();
  
        }//end of PageLoad
  
 protected void RegisterAjaxControls()
        {
            //Needed to ajaxify this control
            RadAjaxManager manager = SharedAjaxManager;// RadAjaxManager.GetCurrent(Page);
            manager.AjaxSettings.AddAjaxSetting(btnCreateUser, panelEditUserContent);
            manager.AjaxSettings.AddAjaxSetting(cblCompanyFilter, panelEditUserContent);
            manager.AjaxSettings.AddAjaxSetting(rgUsers, panelEditUserContent);
        }


But the problem is.... My User Control way works fine and my controls are ajaxified, but the simpler of the two ways, on just the content page.. it will throw the sys is undefined error....

Why will it only work in one of the two instances?

Thanks,
Patrick
Top achievements
Rank 1
 answered on 05 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?