Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
134 views
Hello,

i would like to know how easy or hard can be use the RadSchedulerRecurrenceEditor control on Sharepoint 2010. My webpart works with sharepoint calendar lists, but with it´s own interface to add, edit....

The main requirement is, that my webpart must be transparent to sharepoint. I mean if the users goes straight to the sharepoint list, Sharepoint must recognize the recurrence rule, caml querys...

Thanks
Kalina
Telerik team
 answered on 15 Feb 2011
1 answer
130 views
Hello Telerik,

I initially posted this in the Reporint forum because I am using the chart in a Telerik Report, but I haven't recevied a response.  Seems like maybe this is a more appropiate place... 

I am creating a chart from a SQL datasource.  I have two series that are bound to columns on the datasource.  If I preview the chart, it looks good and the chart matches the data.  My next step is to display my own custom X-Axis labels.  I do this by setting PlotArea.XAxis.AutoScale = false and create the items manually.  However when I do this and preview the chart, the chart does not look correct (the line does not match the data from the database).

This forum post seems to be related: http://www.telerik.com/community/forums/aspnet/chart/trouble-with-custom-xaxis-labels.aspx
It suggests that I do not set the xvalue inside my chart series.  However, I am adding the series by binding to a datasource, so I do not see how to make this work in my case.

//set the datasource 
chart1.DataSource = this.sqlDataSource1; 
//COMMENT OUT THIS SECTION AND THE CHART LOOKS GOOD 
//add new xaxis series items 
chart1.PlotArea.XAxis.AutoScale = false
chart1.PlotArea.XAxis.AddRange(1, 7, 1); 
chart1.PlotArea.XAxis[0].TextBlock.Text = "12/1/10"
chart1.PlotArea.XAxis[1].TextBlock.Text = "12/5/10"
chart1.PlotArea.XAxis[2].TextBlock.Text = "12/10/10"
chart1.PlotArea.XAxis[3].TextBlock.Text = "12/15/10"
chart1.PlotArea.XAxis[4].TextBlock.Text = "12/20/10"
chart1.PlotArea.XAxis[5].TextBlock.Text = "12/25/10"
chart1.PlotArea.XAxis[6].TextBlock.Text = "12/30/10"
    
//add the series 1 
ChartSeries seriesAvg = new ChartSeries(); 
seriesAvg.DataYColumn = "Average"
seriesAvg.Type = ChartSeriesType.Area; 
seriesAvg.DefaultLabelValue = ""
chart1.Series.Add(seriesAvg); 
//add the series 2 
ChartSeries seriesMax = new ChartSeries(); 
seriesMax.DataYColumn = "Max"
seriesMax.Type = ChartSeriesType.Line; 
seriesMax.DefaultLabelValue = ""
chart1.Series.Add(seriesMax);

Am I doing this totally wrong, or is there a work around?

Thanks, Chris
Missing User
 answered on 15 Feb 2011
3 answers
74 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
209 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
186 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
103 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
319 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
83 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
176 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
66 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
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?