Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
83 views
I am attempting to create  a tabstrip which has various buttons, but only for the selected tab...

the only way i can see of doing that is doing something similar to this tutorial here:

http://www.telerik.com/help/aspnet-ajax/create-closable-tabs-client-side.html

I have done essentially the same thing, however I have added the function RemoveImage(tab, divName) which is being called from the ClientTabUnselected event of the tabstrip.

The relevant javascript is shown below:

var tabStrip1;
 
        function OnClientLoad() {
            tabStrip1 = $find('<%= RadTabStrip1.ClientID %>');
 
            for (var i = 0; i < tabStrip1.get_tabs().get_count(); i++) {
                if (tabStrip1.get_tabs().getItem(i).get_value() != "addTab") {
                    AttachCloseImage(tabStrip1.get_tabs().getItem(i), "Images/TabStrip/toggle.png", i);
                }
            }
        }
 
        function CreateTabImage(ImageUrl) {
            var closeImage = document.createElement("img");
            closeImage.src = ImageUrl;
            closeImage.alt = "close";
            return closeImage;
        }
 
        function AttachCloseImage(tab, closeImageUrl, index) {
            var closeImage = CreateTabImage(closeImageUrl);
            closeImage.AssociatedTab = tab;
            closeImage.setAttribute("id", "_closeImageDiv_" + index);
            closeImage.onclick = function (e) {
                if (!e) e = event;
                if (!e.target) e = e.srcElement;
 
                deleteTab(tab);
 
                e.cancelBubble = true;
                if (e.stopPropagation) {
                    e.stopPropagation();
                }
 
                return false;
            }
            tab.get_innerWrapElement().appendChild(closeImage);
        }
 
        function RemoveImage(tab, divName) {
            var element = tab.get_innerWrapElement();
            var img = element.getElementById(divName);
            element.removeChild(img);
        }
 
        function TabUnselected(sender, eventArgs) {
            RemoveImage(eventArgs.get_tab(), "_closeImageDiv_" + tabStrip1.get_tabs().indexOf(eventArgs.get_tab()));
        }


the RemoveImage() function does not work for some reason... and I am not sure what it is.

as far as i can tell, the parameters are correct, I think perhaps it has to do with me finding the right parent container.

any help would be much appreciated! thanks.
Felipe
Top achievements
Rank 1
 answered on 12 Jan 2011
4 answers
318 views
Hi,

I'd like to be able to calculate some aggregate values and set the footer client side. 

I've got a reference to the footer object on the client using the method: get_masterTableViewFooter().

However, i can't work out how to get a reference to individual cells within this object.  Your Client API documentation doesn't seem to cover the footer object.

Can you tell me how to accomplish the following, client side:

footerItem["percentageOfTrades"].Text = TotalTradePct.ToString("N0");

Thanks



Andrew Ross
Top achievements
Rank 1
 answered on 12 Jan 2011
2 answers
99 views
Hello,

In my website, I am planning to have one outer shell, TabStrip in the inner shell for the links and side panes. Pretty much like how outlook is.
An example of what I'm looking for is: http://tinyurl.com/6le5hv2

Apart from TreeView & Tab Strip, could somebody please post a list of other controls which I would be using to create this web application? 
If this has already been created, then I would highly appreciate if you could post some demo links.

Thanks
Raj  ext Menu
Raj
Top achievements
Rank 1
 answered on 12 Jan 2011
6 answers
323 views
i am using version 7.1.2.0 of the editor

i am trying to set the default font dropdown, right now it always shows new times roman even when i don't have that selection in the dropdown.

I've tried the code i foudn in other threads:

var tool = editor.GetToolByName("FontName");
if (tool)
{
    tool.set_value("Arial");
}

but i get a "Object does not support this proeprty or method" error.

I've tried Set_value(), setValue(), SetValue(), even UpdateValue() and its variation i saw somewhere. Some doesn't throw an error, but does not set the default value.
Jon Shipman
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
215 views

Hello Group,

We are using RADGrid (RadControls for ASP.NET AJAX Q1 2010) . We have some static columns defined in .ascx file and also adding columns (GridBoundColumn) dynamically in code behind.
We are binding data for  dynamic columns using RadGrid_ItemDataBound event. When we try to enable paging on the grid, it behaves ackwardly. My doubt it is happening because of dynamic column.
Can you let us know for dynamic columns , paging needs to be handled in a custom manner  or RadGrid supports that? 

Appreciate your help. 

Thanks,
Vikas Baid

Pavlina
Telerik team
 answered on 12 Jan 2011
14 answers
647 views
I am having one heck of a time with versions of Telerik.Web.UI.  I had installed versions from 1 on and auto updated to 2010.3.  My page complains that it can not locate version 2010.2.929.35  yet 2010.03.1215.35 is installed.  I've had to add a bindingredirect to my web.config.  Is this normal?

  <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

      <dependentAssembly>

        <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />

        <bindingRedirect oldVersion="2010.2.929.35" newVersion="2010.03.1215.35" xmlns="urn:schemas-microsoft-com:asm.v1" />

Ed
Top achievements
Rank 1
 answered on 12 Jan 2011
0 answers
103 views
Hi,
 in my front page i have one textbox value (month number) i need to get that value in my aspx.cs page.. how can i do that..
Brown
Top achievements
Rank 1
 asked on 12 Jan 2011
5 answers
307 views
I am trying to change point size, color, and the shape.

Here is my code.

ChartSeries s = RadChart2.GetSeries(0);
s.Appearance.ShowLabels =
false;
s.Appearance.PointMark.Dimensions.AutoSize =
false;
s.Appearance.PointMark.FillStyle.MainColor =
Color.Red;
s.Appearance.PointMark.FillStyle.SecondColor =
Color.White;
s.Appearance.PointMark.Dimensions.Height = 2;
s.Appearance.PointMark.Dimensions.Width = 2;
s.Appearance.PointMark.Visible =
true;
s.Appearance.PointDimentions.Height = 2;
s.Appearance.PointDimentions.Width = 2;
s.Appearance.PointDimentions.AutoSize =
false;
s.Appearance.FillStyle.MainColor =
Color.Red;
s.Appearance.FillStyle.SecondColor =
Color.White;
s.Appearance.PointShape =
"Diamond";
s.Appearance.PointMark.Figure =
"Diamond";

Size is changed but the color and shape of points will not change.
As you can see, I am setting everything I can think of to see if it will work.
Any help would be greatly appreciated.

BTW, why would you ask us to set the figure property as string?
What happened to enum?

Thanks.

- MK
Giuseppe
Telerik team
 answered on 12 Jan 2011
1 answer
85 views
We create new TreeView node via client script. This node we create in edit mode. Everything works fine. We have only one issue:
If User press "Esc" key or loss focus without pressing "Enter" key  then we should remove this node from TreeView.
How we should implement it? What event we can use?
Nikolay Tsenkov
Telerik team
 answered on 12 Jan 2011
1 answer
122 views
hi guys
i want to use RadChart with sharepoint 2010 , i add a application page to sharepoint 2010 and i want to use this control in this page , can you give me a good example ? i dont know how i can use datatable with chart control
Ves
Telerik team
 answered on 12 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?