Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
227 views
Hello guys,

when i am working with ajax update panel I am not able to get row.Index when user select any item. it is saying that row.Index is undefined. the same when i am doing with out update panel i can get. Any solution for this.


<script type="text/javascript">
    var a = Array;
    window.onload = function() {
        debugger;
        var inp = document.getElementById('Sel');
        var data = inp.value;
        if (data != "") {
            var rowsData = data.split(":");
            var i = 0;
            while (typeof (rowsData[i]) != "undefined") {
                if (rowsData[i] != "") {
                    a[i] = rowsData[i];
                }
                i++;
            }
        }
    }    
    function Selecting (row) {
        debugger;
        var i = 0;
        while(typeof(a[i]) != "undefined")
        {
            if (a[i++] == row.Index)
            {
                return false;
            }
        }
    }
    </script>
Pavlina
Telerik team
 answered on 10 Aug 2010
1 answer
116 views
hi

I have a layout in table format: Top Header-height 25px, Left Navigation-width 160px and Content-width 100%.

I place my menu at the left navigation.

My menu is in horizontal mode and i need to make the menu height to full screen height as i have only 5 items. How should i do it? Thanks
Peter
Telerik team
 answered on 10 Aug 2010
1 answer
66 views
We added styles for the RadEditor to the App_Themes and dynamically loading RadEditor to the page.
When page is loaded AjaxToolkit:CalendarExtender is loosing its styles and RadEditor control shows its control icons shifted.
When removing syles for RadEditor CalendarExtender is back to normal.
No matching styles or names where identified between CalendarExtender and RadEditor. Please assist in resolving. This is very urgent for us.

Thank you very much.
Rumen
Telerik team
 answered on 10 Aug 2010
3 answers
142 views
Hi,

I am tried image manager (with radEditor) but I can't get it to fully work. Pop up does show up, but all buttons are greyed out and it can't read files. It reads folder structure properly, but if I click on a subfolder it just keeps showing loading circle indefinitely.

If I load it in IE8, I get following errors (all other javascript has been turned off):
This happens when I click image icon in editor:
Message: 'null' is null or not an object
Line: 36
Char: 1
Code: 0
URI: http://localhost:8080/ScriptResource.axd?d=XYZ


And this when I click on a subfolder (and keep getting indefinite loading circle)
Message: 'null' is null or not an object
Line: 36
Char: 1
Code: 0
URI: http://localhost:8080/ScriptResource.axd?d=XYZ

Message: 'get_masterTableView()' is null or not an object
Line: 117
Char: 14
Code: 0
URI: http://localhost:8080/ScriptResource.axd?d=XYZ



I am using ASP.net 4.0 for this project, and I've loaded toolbar with .dll from "40" folder.
I have set up all permission to full for the moment (everyone, network service) and I have set IIs to impersonate network service.
IIS is 7.5 (think so, the one that came with Win7).

Thanks.

edit: deleted time stampe and user agent from error report. it was just taking up space and making the post less readable.
Fiko
Telerik team
 answered on 10 Aug 2010
2 answers
98 views
HI,

I have a set of RadPageViews which load user controls and have controls in them.  I have code outside the RadMultiPage which runs and updates a RadGrid within one of the user controls, then calls Rebind().  If the RadTab linked to the RadPageView which contains the RadGrid is active at the time, then I see the update to the RadGrid.  If it is not active, the same code runs successfully, but I do not see the update to the RadGrid. 

Why aren't the contents of my RadPageView being updated unless I am actually looking at it?

Thanks.
Craig Wallace
Top achievements
Rank 1
 answered on 10 Aug 2010
2 answers
117 views
Good Day All

I have a Splitter Defined like this

<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="500px"
    Skin="Forest" Width="220px">
    <telerik:RadPane ID="LeftPane" runat="server" Height="16px" Scrolling="none"
        Width="41px">
        <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22px">
            <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Width="200px">
                <telerik:RadPanelBar ID="RadPanelBar2" Runat="server" Height="100%"
                    Skin="Forest" Width="180px">
                </telerik:RadPanelBar>
            </telerik:RadSlidingPane>
        </telerik:RadSlidingZone>
    </telerik:RadPane>
    <telerik:RadSplitBar ID="Radsplitbar1" runat="server">
    </telerik:RadSplitBar>
</telerik:RadSplitter>

i have a green thing on the far left part and it was a title, so i removed it and it , but now there is this portion that is still there. i have attached an image that has an example.

Thanks

Vuyiswa
Top achievements
Rank 2
 answered on 10 Aug 2010
3 answers
131 views
Good Day

When you move your mouse over the Splitter , it will appear. How can i do that on the server side.

 
<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="500px"
        Skin="Forest" Width="220px">
        <telerik:RadPane ID="LeftPane" runat="server" Height="16px" Scrolling="none"
            Width="41px">
            <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22px">
                <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Width="200px">
                    <telerik:RadPanelBar ID="RadPanelBar2" Runat="server" Height="100%"
                        Skin="Forest" Width="180px">
                    </telerik:RadPanelBar>
                </telerik:RadSlidingPane>
            </telerik:RadSlidingZone>
        </telerik:RadPane>
        <telerik:RadSplitBar ID="Radsplitbar1" runat="server">
        </telerik:RadSplitBar>
    </telerik:RadSplitter>


Thanks
Vuyiswa
Top achievements
Rank 2
 answered on 10 Aug 2010
3 answers
80 views
jquery exception:
{if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}
  
  this function calls the jquery:
 _find: function _find(selector, context, single, filter) {
            var found = [],
                selectors;
            if (typeof(selector) === "string") {
                selectors = [selector];
            }
            else {
                selectors = selector;
            }
            var includeSelf = context instanceof Array,
                simpleNonTag = /^([\$#\.])((\w|[$:\.\-])+)$/,
                tag = /^((\w+)|\*)$/;
            if ((typeof(context) === "string") || (context instanceof Array)) {
                context = Sys._find(context);
            }
            if (context instanceof Sys.ElementSet) {
                context = context.get();
            }
            foreach(selectors, function(selector) {
                if (typeof(selector) !== "string") {
                    if (filter) {
                        if (contains(context, selector)) {
                            found.push(selector);
                        }
                    }
                    else {
                        found.push(selector);
                    }
                }
                else {
                    var match = simpleNonTag.exec(selector);
                    if (match && match.length === 4) {
                        selector = match[2];
                        var type = match[1];
                        if (type === "$") {
                            Sys._getComponent(found, selector, context);
                        }
                        else {
                            var finder = type === "#" ? Sys._getById : Sys._getByClass;
                            if (context) {
                                foreach(context, function(node) {
                                    if (node.nodeType === 1) {
                                        return finder(found, selector, single, includeSelf, node, filter);
                                    }
                                });
                            }
                            else {
                                finder(found, selector, single);
                            }
                        }
                    }
                    else if (tag.test(selector)) {
                        if (context instanceof Array) {
                            foreach(context, function(node) {
                                if (node.nodeType === 1) {
                                    if (includeSelf && (selector === "*" || (node.tagName.toLowerCase() === selector))) {
                                        found.push(node);
                                        if (single) return true;
                                    }
                                    if (!filter) {
                                        if(!foreach(all(selector, node), function(node) {
                                            found.push(node);
                                            if (single) return true;
                                        })) {
                                            return true;
                                        }
                                    }
                                }
                            });
                        }
                        else {
                            var nodes = all(selector, context);
                            if (single) {
                                if (nodes[0]) {
                                    found.push(nodes[0]);
                                }
                                return true;
                            }
                            foreach(nodes, function(node) {
                                found.push(node);
                            });
                        }
                    }
                    else if (window.jQuery) {
                        if (!filter) {
                            found.push.apply(found, jQuery(selector, context).get());
                        }
                        if (includeSelf) {
                            found.push.apply(found, jQuery(context).filter(selector).get());
                        }
                    }
                }
            });
Ronen
Top achievements
Rank 1
 answered on 10 Aug 2010
4 answers
229 views
Good Day All

I have a project , in my machine it works fine. The version of .NEt is 2.0 and the telerik is 2008 version. Now i have hosted the application on my website and i am receiving the error


Parser Error Message: Could not load file or assembly 'Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 4:  <%@ Register Src="Advetr3.ascx" TagName="Advetr3" TagPrefix="uc4" %>
Line 5:  <%@ Register Src="Advetr4.ascx" TagName="Advetr4" TagPrefix="uc5" %>
Line 6:  <%@ Register Assembly="Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763"
Line 7:      Namespace="Telerik.Charting" TagPrefix="telerik" %>
Line 8:  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

and i have a master page and l tried to locate the shown above line , but i could not find it. most of the time when i receive this error in my previous applications, i just go and remove the entry in the web config. but now this points to a asp.net page or master page. I have checked the default content page for this line but i did not find it. and i searched the whole project for this and have not find it.

I must mention that i have two version of Telerik. But in this project i used only one version. In my machine i have 2010 and 2008. but now when i run this on my development machine , its fine , but when i deploy the website with its bin directories to a paid domain i receive an error.

My live website where i get this error is

www.Vuyiswamaseko.com


Thanks
Vuyiswa
Top achievements
Rank 2
 answered on 10 Aug 2010
2 answers
195 views
Good Day Admin

i have a Tool bar that is defined like this

<telerik:RadToolBar ID="RadToolBar1" Runat="server" EnableViewState="False"
                 Height="100%" Skin="Forest" Width="100%">
                 <Items>
                     <telerik:RadToolBarButton Width="100%" runat="server" Text="Button1">
                         <ItemTemplate>
                            
                             <asp:TextBox ID="txtsearch" runat="server"  CssClass="imgButtonRight"  onkeypress="keyPress()" Font-Size="X-Large" Height="40px"
                                   Width="650px"></asp:TextBox>
                             
                         </ItemTemplate>
                     </telerik:RadToolBarButton>
                 </Items>
             </telerik:RadToolBar>

and i have a property that i will use to access the value of the textbox like this

public String txtsearchid
{
    get
    {
 
        RadToolBarItem textItem = RadToolBar1.FindItemByText("Button1");
        TextBox txtseach = (TextBox)textItem.FindControl("txtsearch");
        return txtseach.ClientID;
 
    }
}

now the property is working and fine and now in my Client side code i access the value of the textbox ,but i have a keypress event for that textbox that is defined like this on the clientside
<script type="text/javascript">
    function keyPress() {
        var tb = document.getElementById('Text1');
        var txtsearch = document.getElementById("<%=txtsearchid%>");
        if (txtsearch.nodeValue.length <= 2) {
 
            PageMethods.Getadata(document.getElementById(txt2).value, myFunction);
            alert(msg);
        }
        return false;
    }
    function myFunction(msg) {
        
    }
</script>

now my problem is that the keypress event does not get fired when the textbox is in the toolbar

Thanks

Vuyiswa
Top achievements
Rank 2
 answered on 10 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?