Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
238 views

Hi all, I know this a more a general .NET question, but hopefully someone can help.
I've got a service that simply returns a string, which i use to populate the Tooltip.

Runs all fine locally through the IIS development environment, but when i deploy it on my server to run through IIS it errors.

Initially the error was due to be not having <webServices> reference in my web.config.

I've now added that in and am getting a different error.

I've limited it down to this line:

    <WebMethod()> _
    <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
    Public Function GetDataByRegion(ByVal context As Object) As String

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
   at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

If it's not specified the service seems to return XML ok.

Whats going on ?
Marin Bratanov
Telerik team
 answered on 03 Oct 2011
6 answers
136 views
Hi,
i am retrieving treeview node text value with your example.but i want to also get selected node value..and i dont have any opinion how can i get multiple value when i use checkbox property true on treeview.Can you show me the way please?
I get the text like this.

<script type="text/javascript">
    function nodeClicking(sender, args) {
        var comboBox = $find("<%= cbxDepartments.ClientID %>");

        var node = args.get_node()

        comboBox.set_text(node.get_text());


        comboBox.trackChanges();
        comboBox.get_items().getItem(0).set_text(node.get_text());
        comboBox.commitChanges();

        comboBox.hideDropDown();

        // Call comboBox.attachDropDown if:
        // 1) The RadComboBox is inside an AJAX panel.
        // 2) The RadTreeView has a server-side event handler for the NodeClick event, i.e. it initiates a postback when clicking on a Node.
        // Otherwise the AJAX postback becomes a normal postback regardless of the outer AJAX panel.

        //comboBox.attachDropDown();
    }

    function StopPropagation(e) {
        if (!e) {
            e = window.event;
        }

        e.cancelBubble = true;
    }

    function OnClientDropDownOpenedHandler(sender, eventArgs) {
        var tree = sender.get_items().getItem(0).findControl("tvDepartments");
        var selectedNode = tree.get_selectedNode();
        if (selectedNode) {
            selectedNode.scrollIntoView();
        }
    }
    </script>
Ivana
Telerik team
 answered on 03 Oct 2011
3 answers
143 views
I have an Aspx page with tabstrip having RadMultiPageView control having 4 tabs on the page and various telerik/.net controls like dropdonw,RadAsynchronusUpload, textbox etc on each tab.In RadAsynchronus Upload i Validated with File Extension Filtration.But it is not Validated so that i can select any filetypes.currently it is in second tab,and selected tab index is 0.if i place it in first tab it is working.i Don't know where i went wrong.Any Help would be Appreciated.
Thanks
jobin
Peter Filipov
Telerik team
 answered on 03 Oct 2011
5 answers
181 views
HI forum!

I m having a problem with the

 

Protected Sub RadScheduler1_AppointmentClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentClick, it only fires when i do double-click witch also fires the edit appointment. is it not supposed for only one click on an appontment for this event fire?

Many thanks FEST

 

Plamen
Telerik team
 answered on 03 Oct 2011
1 answer
78 views
Hello, I am using the latest RADControls.  I have created a simple page as shown below with a RadScriptManager and a RadMenu.  After this page loads there are about 15 items in the menu.  When the user hovers over one of the main menu  items and the sub-menu (contining about 5 of those items) pops up the CPU jump to near 100%.  If the user then moves the mouse away and then back the CPU consistently remains extremely high.  The application is running in debug=false mode and the ViewState for the menu is disabled.  Those were the only two perfomrance tips that I have been able to find.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
 
        <asp:ObjectDataSource ID="dsNavMenu" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="Get" TypeName="NavMenu_BLL">
            <SelectParameters>
                <MyUser:CurrentUserParameter Name="UserName" />
            </SelectParameters>
        </asp:ObjectDataSource>
            <telerik:RadMenu runat="server" ID="mNav" DataFieldParentID="ParentId" DataSourceID="dsNavMenu"
                DataTextField="Link" DataFieldID="Id" DataNavigateUrlField="NavigateUrl" Skin="Default"
                CssClass="Menu" EnableViewState="false">
            </telerik:RadMenu>

Kate
Telerik team
 answered on 03 Oct 2011
3 answers
86 views
Dear All,
I have a grid on my website, This grid uses paging, When I'm on page three and then try to press enter on a text box in a row in the grid,
it moves to page 1 because the default button in grid paging panel is go to first page, I need to disable this button while pressing enter
Thanks
Vasil
Telerik team
 answered on 03 Oct 2011
2 answers
211 views
Hi Team,

Please find the attached image below.
I am using radgrid to show data from database.I only need show scrolling when the height exceeds 300px when data available.
But the grid maintains the same height 300px even when no data available or with empty space when less data available.
(I dont want to show empty space when no enough data available for Grid)

I used the below code in HTML.
<telerik:RadGrid ID="RadGridWebsiteVisit" runat="server" GridLines="None" AutoGenerateColumns="False"
                            Width="450px" Skin="Black" OnNeedDataSource="RadGridWebsiteVisit_NeedDataSource"
                            AllowSorting="True">
                            <%--<PagerStyle Mode="NumericPages"></PagerStyle>--%>
                            <ClientSettings>
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="300px" />
                            </ClientSettings>
                            <MasterTableView DataKeyNames="Rank">
                                <RowIndicatorColumn Visible="false">
                                </RowIndicatorColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Rank" UniqueName="Rank" HeaderText="Rank" HeaderStyle-HorizontalAlign="Left"
                                        ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="80px" ItemStyle-Width="80px">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="BaseURL" HeaderText="Website" ReadOnly="True" ItemStyle-Wrap="true"
                                        UniqueName="BaseURL" HeaderStyle-Width="250px" ItemStyle-Width="300px" HeaderStyle-HorizontalAlign="Left"
                                        ItemStyle-HorizontalAlign="Left">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="UrlCount" HeaderText="Visits" ReadOnly="True"
                                        UniqueName="UrlCount" HeaderStyle-Width="50px" ItemStyle-Width="100px" HeaderStyle-HorizontalAlign="Left"
                                        ItemStyle-HorizontalAlign="Left">
                                    </telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>

Please help to solve this urgently.

Thanks,
Dhamodharan.
dhamo
Top achievements
Rank 1
 answered on 03 Oct 2011
3 answers
289 views
I'm needing a Separator to show up on a verticle menu, but I'm struggling to figure out how to do it when the menu's source is a standard SiteMap file at the root of the web application.

What I want is something like:

First
Second
__________
Third
Fourth
Fifth
__________
Sixth


What do I need to put in the siteMapNode element to make this work?  I've tried using attribute IsSeparator="true", but that did not seem to help.  I have also tried a series of values for the attribute "title".

Best Wishes,
Keith
Kate
Telerik team
 answered on 03 Oct 2011
3 answers
146 views
i want to generate series [Xaxis and YAxis] at runtime.
want to replace default XAxis label with date string.

and want to change the line color
Tsvetie
Telerik team
 answered on 03 Oct 2011
3 answers
111 views
i have a usercontrol placed in a pageview and this pageview is contained by an aspx page
Page ->PageView ->Usercontrol

i want to access "Page" textbox value from "Usercontrol" in Javascript function

Please guide me how can i access this

Thanks & Regards
Dimitar Terziev
Telerik team
 answered on 03 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?