Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
102 views
Hi,

I have created a standard (small) web application using Telerik ASP.NET AJAX RadControls.
Now I want to make it run inside SharePoint 2010 as a "WebPart".

What is the easiest way to do it?

Thanks.

Lamk.


* I have researched and it is said that the simplest way is to convert Web app (.aspx) to user control (.ascx) and then import that .ascx file into "Visual Web Part" Project. Finally, Add that Visual Web Part project on SharePoint.
If you guys know any better solution. Please let me know. Thanks
LamKhoa
Top achievements
Rank 1
 answered on 11 Aug 2011
5 answers
132 views
I'm trying to modify the DragDrop example to my purposes.  Instead of updating an existing record I'd like to insert a new one.  But it's not working this is what I have.
private void ScheduleAppointment(string itemname, string vendor, string sortcode, decimal cost, DateTime start, DateTime end)
    {
        IDataSource dataSource = SchedulerDataSource;
        DataSourceView view = dataSource.GetView("DefaultView");
 
        IOrderedDictionary data = new OrderedDictionary();
        data.Add("ItemName", itemname);
        data.Add("Start", start);
        data.Add("End", end);
        data.Add("Vendor", vendor);
        data.Add("SortCode", sortcode);
        data.Add("Cost", cost);
 
        //IDictionary keys = new OrderedDictionary();
        //keys.Add("AppointmentID", id);
 
        view.Insert(data, OnDataSourceOperationComplete);
    }

<asp:SqlDataSource ID="SchedulerDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:Sitefinity %>"
    SelectCommand="SELECT [inventory_id], [item_date], [deadline_date], [item_name], [sort_code], [vendor] FROM [inventory] WHERE ([item_date] IS NOT NULL) AND ([deadline_date] IS NOT NULL)"
    InsertCommand="INSERT INTO [inventory] ([item_name], [item_date], [deadline_date], [vendor], [sort_code], [cost], [query_code], [committee_code]) VALUES (@ItemName, @Start, @End, @Vendor, @SortCode, @Cost, @Module, @Committee)"
    UpdateCommand="UPDATE [inventory] SET [item_date] = @Start, [deadline_date] = @End, [item_name] = @Subject WHERE inventory_id = @AppointmentID"
    DeleteCommand="DELETE FROM [inventory] WHERE [inventory_id] = @AppointmentID">
    <InsertParameters>
        <asp:Parameter Name="ItemName" Type="String" />
        <asp:Parameter Name="Start" Type="DateTime" />
        <asp:Parameter Name="End" Type="DateTime" />
        <asp:Parameter Name="Vendor" Type="String" />
        <asp:Parameter Name="SortCode" Type="String" />
        <asp:Parameter Name="Cost" Type="Decimal" />
        <asp:Parameter Name="Module" Type="String" DefaultValue="LUNCH" />
        <asp:Parameter Name="Committee" Type="String" DefaultValue="FOOD" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="ItemName" Type="String" />
        <asp:Parameter Name="Start" Type="DateTime" />
        <asp:Parameter Name="End" Type="DateTime" />
        <asp:Parameter Name="AppointmentID" Type="Int32" />
    </UpdateParameters>
    <DeleteParameters>
        <asp:Parameter Name="AppointmentID" Type="Int32" />
    </DeleteParameters>
</asp:SqlDataSource>
Thanks in advance!
Veronica
Telerik team
 answered on 11 Aug 2011
1 answer
110 views
How can I detect when the user selects a combo box item by clicking on it ?
there doesn't seem to be a OnClientItemClick event in RadComboBox
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2011
1 answer
55 views
Hi,

I'm used to refreshing a parent grid from a radwindow using the following code:

function CloseOnReload() {
    GetRadWindow().BrowserWindow.refreshChart();
    GetRadWindow().Close();
}

and in the parent page:

function refreshChart() {
    debugger;
    $find("<%= RadAjaxManagerBinAssignmentDetail.ClientID %>").ajaxRequest("RefreshChart");
}

However I now have a situation where a page opens a RadWindow which then opens another RadWindow. I'd like the second radwindow opened to invoke the first function above, to refresh the 1st RadWindow opened. However it seems to want to address the original browser window. So in summary:

Page opens RadWindow1
RadWindow1 opens RadWindow2
RadWindow2's needs to call a javascript function in RadWindow1 to have it's content refresh when RadWindow2 is closed.

Thanks for anyone's help.

Steve
Marin Bratanov
Telerik team
 answered on 11 Aug 2011
1 answer
321 views
Hi,
I have this scenario
1. A master page with a RadNotification Control and RadAjaxManager
2. Bunch of Content Pages which inherit the master page and also every content page has a RadAjaxManagerProxy
3. Controls on Content Pages which want to interact with RadNotification through Ajax.

I followed the steps you followed in the sample project you provided to a similar post that was asked previously. But in your sample project, it does a normal postback but not a Ajax-PostBack. The example works if there is a normal postback.

My question is, how will I link my content page controls with Master Page controls through RadAjaxManager.

Thanks in Advance.

regards
Yash
Marin Bratanov
Telerik team
 answered on 11 Aug 2011
6 answers
170 views
how to get TAG property of RadDock on client side?

thanx
Slav
Telerik team
 answered on 11 Aug 2011
1 answer
187 views
The code below 
<
telerik:RadRotator ID="dtMessage" runat="server"
             FrameDuration="1" Height="55px" ItemHeight="55px" Width="100%" ItemWidth="100%">
                <ItemTemplate>
                    <asp:Label ID="lblMsg" runat="server" Width="100%"></asp:Label><br />
                    <asp:Label ID="lblMsg2" runat="server" Width="100%"></asp:Label>
                    <asp:HiddenField ID="hldMsg1" Value ='<%# Eval("Msg1") %>' runat="server" />
                    <asp:HiddenField ID="hldMsg2" Value ='<%# Eval("Msg2") %>' runat="server" />
                     
                    <asp:HiddenField ID="hldFontFace" Value ='<%# Eval("FontFace") %>' runat="server" />
                    <asp:HiddenField ID="hldFontSize" Value ='<%# Eval("FontSize") %>' runat="server" />
                    <asp:HiddenField ID="hldFontColor" Value ='<%# Eval("FontColor") %>' runat="server" />
                    <asp:HiddenField ID="hldDirection" Value ='<%# Eval("MessageDirection") %>' runat="server" />
                </ItemTemplate>
            </telerik:RadRotator>

                        If strDirection = "Down" Then
                            dtMessage.ScrollDirection = RotatorScrollDirection.Down
                        ElseIf strDirection = "Up" Then
                            dtMessage.ScrollDirection = RotatorScrollDirection.Up
                        ElseIf strDirection = "Left" Then
                            dtMessage.ScrollDirection = RotatorScrollDirection.Left
                            dtMessage.RotatorType = RotatorType.SlideShow
                        Else
                            dtMessage.ScrollDirection = RotatorScrollDirection.Right
                        End If


                        dtMessage.ScrollDuration = intMsgSpeed * 1000
Slav
Telerik team
 answered on 11 Aug 2011
0 answers
162 views
Hi Telerik Team,

I am facing an issue with the content Ordering and Numbering with the Numbered List and Bullet List toolbars. Here is the attached HTML that is being assigned to the content property of the RadEditor from C#. Just load the following HTML in the Editor and try applying the Numbered List and Bullet List tools on the text content and play around with these tools (repeat applying and removing). At one point you will see that the text content itself gets destroyed and these tools does not apply properly on the selected text content. I don't think I will be able to do much about this behavior. Please let me know the workaround for this or is it something that I am missing here? When you repeatedly apply the numbered list it behaves in a weired fashion and even you can try entering your own text inside the DIV whose ContentEditable property is true and try applying the Numbered list and Bullet list on this. I have gone through the below threads and could not get a solution for the problem.

http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/radeditor-has-issues-when-i.aspx

http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-changes-html-element-removes-styles-when-using-toolbar-text-align.aspx



Below is the HTML loaded on the RadEditor,

<!

 

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN">

 

<

 

meta http-equiv="Content-Type" content="text/html; charset=utf-8">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

body contenteditable="true" style="margin: 0px; overflow: hidden">

 

 

<div contenteditable="false" style="background: #e0e0e2" unselectable="on">

 

 

<table style="border-right: #d8d8da 1px solid; border-top: #d8d8da 1px solid; margin-top: 10px;

 

 

font-size: 12px; background: #fff; border-left: #d8d8da 1px solid; color: #333;

 

 

border-bottom: #d8d8da 1px solid; font-family: Helvetica, Arial, sans-serif"

 

 

cellspacing="0" cellpadding="0" width="500" align="center" border="0">

 

 

<tbody>

 

 

<tr>

 

 

<td contenteditable="false" style="padding-right: 30px; padding-left: 30px; padding-bottom: 20px;

 

 

padding-top: 30px" unselectable="on">

 

 

<div contenteditable="true" jquery1313062595089="17" unselectable="off" editable="true">

 

 

<p unselectable="off" contenteditable="true">

 

Dear Applicant,

<br />

 

 

<br />

 

 

</p>

 

 

<p unselectable="off" contenteditable="true">

 

Thank you for your application to Us. We appreciate your interest, but unfortunately,

your qualifications didn’t match the client’s specific needs for this job.

<br />

 

 

<br />

 

 

</p>

 

 

<p unselectable="off" contenteditable="true">

 

At XYZ, we specialize in particular industries and positions, and don’t often have

openings that match your skills and experience. You can search our open positions

at

<a href="#http://www.google.com" unselectable="off" contenteditable="true">Google.com</a>,

 

and find us on your favorite online communities at

<a href="http://www.google.com"

 

 

unselectable="off" contenteditable="true">Google.com</a>.<br />

 

 

<br />

 

 

</p>

 

 

<p unselectable="off" contenteditable="true">

 

 

<br />

 

 

</p>

 

 

<p unselectable="off" contenteditable="true">

 

Thank you,

<br />

 

 

</p>

 

 

<b>Ravi </b>

 

 

<br />

 

 

<i>Developer</i><br />

 

 

<br />

 

 

<br />

 

 

</div>

 

 

</td>

 

 

</tr>

 

 

</tbody>

 

 

</table>

 

 

</div>

 

</

 

body>

 

</

 

html>

 

 



Your help will be greatly appreciated.
Thanks,
Ravi 
Ravi Divate
Top achievements
Rank 1
 asked on 11 Aug 2011
1 answer
66 views
I want to create my own user controls (.ascx) and use them as a forms for edit, delete, and Add new appointment in the RadSheduler. is it possible? HOw can i do that? I see some examples but all them are html inside scheduler:AdvancedForm.

regards
Hank
Thx! 

Peter
Telerik team
 answered on 11 Aug 2011
1 answer
125 views
Hi,

I am using version 2011.2.712.40 and I am trying to set the text content of RadNotification using the method in the title but it doesn't work. Any ideas?

Cheers,
Jamie
Jamie Lea
Top achievements
Rank 1
 answered on 11 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?