Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
82 views
I'm using the MOSS editor for SharePoint v5.7. I can't seem to get at the client object at all. I've tried using:
 var editorInstance = $find("<%= this.myEditorField.ClientID %>");
but this just returns null. This method works with the standard Telerik editor but not the one for MOSS. Please advise on the correct way to do this.

Thanks.
Stanimir
Telerik team
 answered on 15 Feb 2011
15 answers
215 views

hi, please help me what i am doing wrong in the followig code. RadGrid is empty, but the DataTable is getting data from DB:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <!-- content start -->
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="LBL_Surname" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="TB_Surname" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="LBL_Name" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="TB_Name" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Btn_Search" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <!-- content end -->
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="80%">
        <telerik:RadPane ID="RadPane1" runat="server" Width="99%">
            <telerik:RadGrid ID="RG_SearchResult" runat="server" Skin="Telerik" OnItemDataBound="RG_SearchResult_ItemDataBound"
                OnNeedDataSource="RG_SearchResult_NeedDataSource" OnDetailTableDataBind="RG_SearchResult_DetailTableDataBind"
                OnItemCommand="RG_SearchResult_ItemCommand" DataSourcePersistenceMode="NoPersistence"
                HeaderStyle-Font-Bold="true" Width="99%" PageSize="1000" PagerStyle-AlwaysVisible="true"
                ShowStatusBar="True" GridLines="None" AutoGenerateColumns="False">
                <MasterTableView Name="Level1" DataKeyNames="ID">
                    <Columns>
                        <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="false" />
                        <telerik:GridBoundColumn DataField="SurName" HeaderText="???????" UniqueName="SurName" />
                        <telerik:GridBoundColumn DataField="FirstName" HeaderText="???" UniqueName="FirstName" />
                        <telerik:GridBoundColumn DataField="PName" HeaderText="????????" UniqueName="PName" />
                    </Columns>
                    <DetailTables>
                        <telerik:GridTableView Name="Level2" DataKeyNames="ID" HierarchyLoadMode="ServerOnDemand"
                            Width="100%" BackColor="#EFEFFB">
                            <Columns>
                                <telerik:GridButtonColumn CommandName="RollInfo" Text="???????" UniqueName="RollInfo" />
                                <telerik:GridButtonColumn CommandName="History" Text="???????" UniqueName="History" />
                                <telerik:GridButtonColumn CommandName="TechSpec" Text="???. ?????????" UniqueName="TechSpec" />
                                <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="false" />
                                <telerik:GridBoundColumn DataField="PropCode" HeaderText="???" UniqueName="PropCode" />
                                <telerik:GridBoundColumn DataField="PropAddr" HeaderText="?????" UniqueName="PropAddr" />
                                <telerik:GridBoundColumn DataField="Owner" HeaderText="???" UniqueName="Owner" />
                            </Columns>
                            <PagerStyle AlwaysVisible="True"></PagerStyle>
                        </telerik:GridTableView></DetailTables>
                    <ExpandCollapseColumn Visible="True">
                    </ExpandCollapseColumn>
                    <PagerStyle AlwaysVisible="True"></PagerStyle>
                </MasterTableView><HeaderStyle Font-Bold="True"></HeaderStyle>
                <PagerStyle AlwaysVisible="True"></PagerStyle>
            </telerik:RadGrid></telerik:RadPane>
    </telerik:RadSplitter>

protected void Btn_Search_Click(object sender, EventArgs e)
       {
           DataTable dt = new DataTable();
           if (RBL_UType.SelectedValue == "0")
               dt = KLIS.Helpers.myConnections.GetDataTableX("udsp_SearchByName", "Sirname", TB_Surname.Text, "Firstname", TB_Name.Text);
           else if (RBL_UType.SelectedValue == "1")
               dt = KLIS.Helpers.myConnections.GetDataTableX("udsp_SearchByFirm", "FirmName", TB_Name.Text);
 
           RG_SearchResult.DataSource = dt;
           RG_SearchResult.DataBind();
       }

Jayesh Goyani
Top achievements
Rank 2
 answered on 15 Feb 2011
0 answers
195 views
Hi

I am trying to use RadTreeView in my web application. I am trying to add nodes from code behind. I am getting following error whe n I try to run the application and TreeView gets frozen not able to expand or do anything in the page. I have a login page for the web application I am not sure if this is causing the problem because when I use the treeview in a web application which does not have authentication it works fine.

Microsoft JScript runtime error: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data


Any help to fix this error or debug why this error is coming.

Regards
Kiran
Kiran
Top achievements
Rank 1
 asked on 15 Feb 2011
2 answers
107 views
Please help me in this issue. While selecting a row in rad grid, is it possible to select only the row pertaining to certain column ?

Thanks in Advance.
Antony
Top achievements
Rank 1
 answered on 15 Feb 2011
3 answers
344 views
2010 Q2 controls, VS 2010, C# 4.0

We are using the sample you provide to support multi-select via checkboxes and delimited lists.

Here are some items in a dummy ComboBox.
Cat
Dog
Gorilla
Mouse

I need to enhance this so that the user doesn't have to use the mouse to select anything. I want the users to be able to select items in the following two ways.

Method 1: Auto-complete should allow the user to type d,m and have it check the appropriate checkboxes for Dog and Mouse.
Method 2: Space Bar selection.  Pressing the down arrow to get to Dog and pressing the space bar or comma should check the box and add it to the list.

Before I go recreate the wheel, does anyone have a link to something similar to what I'm wanting to do?  I've searched a lot but didn't find anything.

Thanks!
Thad
Thad
Top achievements
Rank 2
 answered on 14 Feb 2011
2 answers
86 views
Hello.
I need advice.

I have created a list (radgrid) and a button.
When you click on the button to load the list.

The problem is this - when I click on the button to perform the refresh.

My code is as follows -

<telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="LoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Button1" UpdatePanelRenderMode="Inline" />
                </UpdatedControls>
            </telerik:AjaxSetting>

Thanks for the advice.
Emre
Top achievements
Rank 1
 answered on 14 Feb 2011
1 answer
196 views
Hi All,

I want to set the cursor as 'pointer' after populating the grid with data i.e. in the .cs page.
I have written in .cs page as
Code:

------
----
databind()
Response.Write("<script language = javascript>function dohg(){document.body.style.cursor = 'pointer';} dohg();</script>");
----


But this is not working.
Guys this is really very important for me to solve it

Bharat Rathore
msigman
Top achievements
Rank 2
 answered on 14 Feb 2011
0 answers
82 views
Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

I read the sticky already, however none of the solutions given works.

.NET FrameWork 4.0
Q3 2010 SP2
Latest version of AJAX toolkit dated April 2010

However, if I use the ToolScript manager from ACT instead of the RadScriptManager that it works.  The question is do I lose anything?  Does any rad control requires the use of RadScriptManager?
Edward
Top achievements
Rank 1
 asked on 14 Feb 2011
1 answer
112 views
I am trying to use treeviews to give users the ability to create there own Form "Templates"  I have three treeviews on a page The first is the "Drag TO Treeview" which users drag items from the "Drag FROM Treeview" this is a treeview that is databound from a sqlsource. The Third Treeview is the "PREVIEW" Treeview it is simply cloned from Treeview1, However this treeview is itemtemplated with a label and a Textbox because I need this to look somewhat like a form. My objectives are as follows

1. Bind the label to the text of treeview1 upon the cloning
2. If the item is a PARENT hide the textbox so that only the label is show indicating this is simply a header item.

Can this be done with the clone method?
Nikolay Tsenkov
Telerik team
 answered on 14 Feb 2011
1 answer
47 views
I'm running into an odd issue and was wondering if anyone might know why this is happening...

I use Visual Studio 2010 with the Telerik ASP.NET AJAX (v.2010.3.1215.35) controls.  Recently some Telerik Charting controls were added to the Visual Studio project.  Since then, occasionally, when going to build I get an error related to a 'designer.vb' file (the aspx and .vb page does not use any charting controls). 

Upon looking in the 'designer.vb' file, the cause of the error is a result of the declaration of other controls which are used on the page being changed from 'Global.Telerik.Web.UI...' to 'Global.Telerik.Charting...'  For example instead of 'Global.Telerik.Web.UI.RadComboBox' to 'Global.Telerik.Charting.RadComboBox'.

To resolve the error I simply change the declaration back to what it should be.  So for the example described above I change the declaration back to 'Global.Telerik.Web.UI.RadComboBox'.  The Visual Studio project will build without errors after making the corrections.

This issue has also happened with the Telerik Reporting controls.  The declaration in the 'designer.vb' file changes from '...Web.UI...' to '...Reporting...'.

Any ideas would be greatly appreciated.  It's an easy fix to correct, but can be time-consuming and is annoying.  Please let me know what other information I can provide which may help.

Thanks!
Giuseppe
Telerik team
 answered on 14 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?