Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
147 views
Hi Support Team,

According to the coding below (Error: 'tabStrip' is null or not an object),
how can I auto-select the tab depend on the user browser using Javascript and Telerik-RabTabStrip?

(E.g: When a user open the "Firefox" browser, the "Firefox" tab will be selected.)

Thanks.


    <telerik:RadTabStrip ID="RadTabStrip1" runat="server">
        <Tabs>
            <telerik:RadTab runat="server" Text="Explorer">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Firefox">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Opera">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Chrome">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Safari">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>


    <script language="JavaScript" type="text/JavaScript">   
             
            var n=navigator.appName;
            var ie=(n=="Microsoft Internet Explorer");
            var f=(n=="Firefox");

            var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
            var tab;
            
            if (ie)
            {
                tab = tabStrip.findTabByText("Explorer");
                alert("Explorer");           
            }
            
            else if (f)
            {
                tab = tabStrip.findTabByText("Firefox");
            }
            
            tab.set_selected(true);

    </script>
Jessie
Top achievements
Rank 1
 answered on 17 Mar 2009
4 answers
162 views
Hi
I'm using RadCalendar 2.0.1, and unable to clear the dates after post back.
Tried the dollowing link
http://www.telerik.com/community/forums/aspnet/calendar/date-picker-null-problems.aspx


I'm getting the error Clear() is not property or method, and if i use DateInput it shows null.
At present they dont want to update the control to newer version.
Please suggest.. this issue is screwing up.

1. tried: RadAjaxManager1.ResponseScripts.Add(

string.Format("window.{0}.Clear(); ", startDate.ClientID));

 

2.

 

function ClearDate()

 

{window[

'<%= startDate.ClientID %>'].DateInput.Clear();

 

 

//window['<%= startDate.ClientID %>'].clear();

 

}

I dont want to use the button/hyperlink to clear the dates

Regards
Puneet
Sebastian
Telerik team
 answered on 17 Mar 2009
1 answer
74 views
I want to do something like this:

On the title:                         ID                 Name           Address
---------------------------------------------------------------------------------------------------------------------
Row 1:                                 1                 Martín          sant germain 14
                                            ----------------------------------------------------------------------------------
                                            this user is confused, but we need to help him, i guess.
---------------------------------------------------------------------------------------------------------------------
Row 2:                                 1                 Dolores        sant germain 14
                                            ----------------------------------------------------------------------------------
                                            this user is good
---------------------------------------------------------------------------------------------------------------------
There are two differents rows in one, but the source is the same (making templates)
Having the hability of filtering and ordering automatically.
It`s possible?
I'm using 2.0 and datasource like lists.

Thanks in advance,
                martín
Shinu
Top achievements
Rank 2
 answered on 17 Mar 2009
2 answers
175 views
I have a problem when trying to set the width of a radcombobox using a css

*+html .RadComboBox_Office2007
{
    width:100px;
}

Setting everything else like this for instance ' text-align:center; ' works fine, but the width seems to get calculated to 160px no matter what.

the width can be set manually, but with the amount of radcomboboxes i use, that is a no go.

Where ís the right place to put a width style in the radcombobox ? :)
Morten Bomholt
Top achievements
Rank 1
 answered on 17 Mar 2009
5 answers
142 views
Hi

this is usman,i m trying to display Treeview in combobox on my page,where my page has Rad Splitter.when i m working without splitter Treeview in Combo box working fine,but it is giving me a problem when i m working with splitter.Its not showing any error just combobox is not allowing to select any item inside.

reply me
Yana
Telerik team
 answered on 17 Mar 2009
5 answers
496 views
I've been having issues with RadControls for some time now. Specifically, I can't seem to figure out what is either wrong with my IIS setup or whether this is an application configuration problem.

My Setup:
Windows Server 2008 + IIS7 Integrated Mode
ASP.NET 3.5 SP1

Currently, the only way I can get RadControls to work properly is if I create a separate Website within IIS for each project.
For example:
My default site is like such:  http://www.site.com/
I like to keep my websites I'm working on within: http://www.site.com/sites/projectsitename/

If I want to work with RadControls I have to create a new Website; configure the host headers for it; then edit my machine's host file to point the new domain at my local ip.

So: http://www.newsite.com/   is really in the folder location of http://www.site.com/sites/newsite
I'm really tired of having to do this though.

When debugging, Visual Studio's web server displays my site perfectly, but when I try to access:
http://www.site.com/sites/projectsitename/
I get errors all over FireBug: "Sys is not defined", "ASP.NET Ajax client-side framework failed to load."

Today I noticed what seems to be the root problem. In Firebug I'm receiving:
http://www.site.com/sites/projectname/WebResource.axd?d=wholebunchofjibberish....   403 Forbidden
... and it's doing this multiple times.

So it seems all GET requests to the WebResource file are being forbidden by IIS for some reason.

Can anyone help me? I litterally read every post on here about these errors and still can't seem to solve this problem.


DGDev
Top achievements
Rank 2
 answered on 17 Mar 2009
1 answer
133 views
Hi

Here is what I want to do:
When I (right) click on a date in the calendar control, I want a context menu to appear. From the context menu, I want to select a menu item, and send the value from the menu item and the date back to the server.
The problem I am having is to display the menu when I (right) click a date. So far I have tried to solve this by client side code, but to no success.

Is there anybody who could make a skeleton of a page which accomplishes what I want?

- Thorgeir

Shinu
Top achievements
Rank 2
 answered on 17 Mar 2009
1 answer
90 views

 

 

I have a page that has three radgrids on it.  When I first come into a page I have two dropowns and a textbox that collect data from the user and a button that executes a search.  I do not want any of the grids to load until I have clicked the execute button and then I want one of the grids to load.  Everything works fine, but when I add 

 

 

 

ClientEvents OnCommand="RaiseCommand"
to any of the grids client settings, the grid that this has been added to tries to load on page_load before I have collected any data or clicked the button, which causes an error becuase there is no data for the grid.

Is there a way to stop this automatic grid loading when using the clientevents oncommand.

Thank you.

Aaron

Princy
Top achievements
Rank 2
 answered on 17 Mar 2009
1 answer
169 views
I've used AutoGenerateDeleteColumn="false" to hide a delete hyperlink column in the past, but this was on a master table.  The same doesn't work for a detail table that is nested inside a master table. 

Is there a way to hide this delete column that keeps showing up?  I'm doing my binding in code for the detail table.

Ian
 
Princy
Top achievements
Rank 2
 answered on 17 Mar 2009
1 answer
91 views
I am using set_expanded to expand the row but it brings back a javascript error 'title' is null or not a object.

Hector
Princy
Top achievements
Rank 2
 answered on 17 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?