Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
I'm trying to update the value of the control that is outside the dynamically created RadGrid. I'm using the reference - http://www.telerik.com/help/aspnet/grid/grduseajaxtoupdateoutsidecontrols.html.
I need to update the text of the Label control(lies out of the grid) when the textbox's (in the grid) text is changed.

The JS within the literal control is created but is never called. I'm using the RadAjaxManager to update the grid and the Label. 

Can someone please see what the problem is and offer a solution
 protected override void OnLoad(EventArgs e)<br>    {<br>        RadGrid grid = (RadGrid)pc1.FindControl("dgSample");<br>        RadAjaxManager1.AjaxSettings.AddAjaxSetting(grid, grid);<br>        RadAjaxManager1.AjaxSettings.AddAjaxSetting(grid, Label2);<br>        base.OnLoad(e);<br>    }

 protected void cTextbox_TextChanged(object sender, EventArgs e)<br>    {<br>        LiteralControl ctrl1 = new LiteralControl<br>                       (String.Format("<script type='text/javascript'>document.getElementById('{0}').innerHTML = '{1}';</script>", this.FindControl("Label2").ClientID, "Teexx"));<br><br><br>        //You should add the LiteralControl to the Controls collection of RadGrid in order to make it work with Telerik RadGrid AJAX<br>        this.Controls.Add(ctrl1);<br>        return;<br>    }
Mira
Telerik team
 answered on 11 Aug 2011
1 answer
74 views

Scenario:

I am developing an application using Telerik RadControls for ASPX.NET AJAX. I have tree

different Rad controls in the main page. A RadTreeview, a RadTabStrip and a RadGrid.

The basic functionality is: I select a node from the Treeview, that builds dynamic questions sourced from a database) in the RadTabStrip. And the answer to those questions is given by

selection an option in the single column RadGrid.

My questions are:

1. How can I set a default selection in the RadGrid?

2. When a node is selected the RadTabStrip is rebuilt but the page always blinks. How can I

avoid that blinking from the whole page running some server side code like the example here: http://demos.telerik.com/aspnet-classic/treeview/Examples/Programming/ServerSideApi/DefaultCS.aspx?

3. After a node selection and rebuilding the tabstrip pages, the RadTreeView loses the selected node focus. How can I keep the focus on the previously selected node? (it has something to do with that blink, can it be from the PostBack of the page?)

4. How can I load the grid having for each row a value and a text (value is an id related to the text element)?

Thank you all.

Regards

Bruno

Plamen
Telerik team
 answered on 11 Aug 2011
2 answers
116 views
I am using the Telerik AJAX loading panel in my project. It is casuing an issue in animation in IE 8 (non-compatibility mode) only on Win 2008 server. I even tried the telerik Demo site as below and still the same issue. You can reproduce the issue of not showing the animation (the images are shown with out animation) by accessing the below url.

http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx

Please let me know if there is any plug-in or something that is missing to show this animation on Win 2008 server in IE 8.

I appreciate your help. Thanks!
Maria Ilieva
Telerik team
 answered on 11 Aug 2011
2 answers
99 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
126 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
107 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
54 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
316 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
168 views
how to get TAG property of RadDock on client side?

thanx
Slav
Telerik team
 answered on 11 Aug 2011
1 answer
182 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?