Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
133 views

I have a situation in which I create the next level of items in a TreeList in the ChildItemsDataBind event.

At some levels of the tree, there are a large number of child items being created.

And, each of these items requires a lengthy query to obtain the fields to populate it.

This scenario can take as long as 10 seconds or more in some cases.

When this case arises, the user has no idea if anything is happening and may believe the page is frozen or has crashed.

I need to display a ProgressArea or UpdateProgress to make it clear work is being done.

I can do this no problem by initiating the process with something like a button click event.

What I would like to do is have this process initiated when a specific item of the TreeList level is selected.

Is there a way to initiate and display a ProgressArea or UpdateProcess from some TreeList event?

Eyup
Telerik team
 answered on 17 Jun 2019
5 answers
316 views

I'm trying to get a row of a TreeList to change appearance when the mouse is over it.

I can do this in css style for a GridView.

But there doesn't seem to be similar functionality for a tree list row.

Does anyone know if this can be done?

Vessy
Telerik team
 answered on 17 Jun 2019
0 answers
178 views

We did some research on Azure Bot Framework and we found out that we need to use code to build our Chatbot's dialog.

Does Telerik has plan to build something similar to IBM Watson Assistant's visual dialog editor?
Screencap: https://www.ibm.com/cloud/watson-assistant/assets/img/image_1.png

The visual dialog editor is very easy to use to create complex dialogues for their Chatbot.

Thanks.

HSLaw
Top achievements
Rank 1
 asked on 17 Jun 2019
11 answers
343 views

Hi

I am implementing a reporting dashboard ASP.NET page. To do this I have an ASPX page with multiple RadDockZones and RadDocks, each containing a reference to a user control (ASCX page) which contains the RadHtmlChart.

Several of these charts have drill-downs which use RadAjaxManager and a client side function called from the chart. See...

https://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultvb.aspx

Individually, the charts work fine but when incorporated within the parent dashboard page I get a message saying you can't have more than one RadAjaxManager on the same page.

Google searches told me to use RadAjaxManagerProxy instead, with the RadAjaxManager on the parent page. However, I have no idea how to do this. None of the solutions I found seem to be suitable for my problem. One said that RadAjaxManagerProxy does not have client-side object or functions. I am using the ajaxRequest client-side function, so perhaps this is my problem.

Is what I am trying to do even possible? If so, how?

Thanks

Nick

 

Marin Bratanov
Telerik team
 answered on 14 Jun 2019
8 answers
338 views

Hi

I hope you can help. We are implementing a .NET reporting dashboard whereby our page will consist of multiple RadHtmlChart controls. Each control sits in its own web part called from the parent page and housed in RadDocks.

For performance reasons we'd like the charts to render asynchronously. We have tried to achieve this using a web service in the manner shown below.

However, the charts do not render at all. Any other control we place in our web parts work fine (dropdown, radgrid etc.). Just not RadHtmlChart. Have you any ideas why this would be? Should we be using another method of doing this?

 

function DockInitialize(dock, args) {

            logIt("INVOKE WidgetsWebService:" + dock.get_id());
                var dockID = dock.get_id();
                var CompanyID = $get(dockID).attributes["CompanyID"].value;
                Revolution.WidgetsWebService.GetData(CompanyID, function (result) {
                    $get(dockID + "_C").innerHTML = result;
                    logIt("END INVOKE WidgetsWebService:" + dock.get_id());
                });
        }

<asp:ScriptManager ID="ScriptManager1" runat="server">
            <Services>
                <asp:ServiceReference Path="~/Services/WidgetsWebService.asmx" />
            </Services>
</asp:ScriptManager>

------------------------------------------------------------------------------------------------------------------------------

<System.Web.Script.Services.ScriptService()>
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class WidgetsWebService
    Inherits System.Web.Services.WebService

    <WebMethod()>
    Public Function GetData(ByVal elementID As String) As String
        Thread.Sleep(2000)

        If elementID = String.Empty Then
            Throw New Exception("No Value argument is provided to the webservice!")
        End If

        Return ViewManager.RenderView("~/Dev/Consultants/Dashboard/Widgets/Other/TestControl.ascx")

    End Function

End Class

------------------------------------------------------------------------------------------------------------------------------

Public Shared Function RenderView(ByVal path As String) As String
        Thread.Sleep(200)

        Dim pageHolder As Test = New Test()
        Dim tempForm As HtmlForm = New HtmlForm()
        tempForm.ID = "TempForm"

        pageHolder.Controls.Add(tempForm)
        Dim viewControl As UserControl = CType(pageHolder.LoadControl(path), UserControl)
        viewControl.ID = Guid.NewGuid().ToString()

        Dim scriptManager As New ScriptManager()
        tempForm.Controls.Add(scriptManager)
        tempForm.Controls.Add(viewControl)

        Dim output As StringWriter = New StringWriter()
        HttpContext.Current.Server.Execute(pageHolder, output, False)

        Dim result As String = output.ToString()
        Return result
    End Function

------------------------------------------------------------------------------------------------------------------------------

and this is our TestControl.ascx web part

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="TestControl.ascx.vb" Inherits="Revolution.TestControl" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<div id="content">
    <telerik:RadHtmlChart runat="server" ID="ColumnChart">
        <PlotArea>
            <Series>
                <telerik:ColumnSeries Name="Wooden Table">
                    <SeriesItems>
                        <telerik:CategorySeriesItem Y="25000"></telerik:CategorySeriesItem>
                        <telerik:CategorySeriesItem Y="12000"></telerik:CategorySeriesItem>
                    </SeriesItems>
                </telerik:ColumnSeries>
            </Series>
            <XAxis>
                <Items>
                    <telerik:AxisItem LabelText="1"></telerik:AxisItem>
                </Items>
                <TitleAppearance Position="Center" RotationAngle="0" Text="Quarters">
                </TitleAppearance>
            </XAxis>
            <YAxis>
                <LabelsAppearance DataFormatString="{0} sales" RotationAngle="0" Skip="0" Step="1"></LabelsAppearance>
                <TitleAppearance Position="Center" RotationAngle="0" Text="Sales">
                </TitleAppearance>
            </YAxis>
        </PlotArea>
    </telerik:RadHtmlChart>
</div>

 

 

nick
Top achievements
Rank 1
 answered on 14 Jun 2019
7 answers
981 views
I'm having trouble with my I'm having trouble with my RadGrid - I try show grid in edit mode, but it's not working. I don't know what I miss here. 
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                    </AjaxSettings>
        </telerik:RadAjaxManager>
            
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false"
                    DataSourceID="gridRequest" Edit = "true">
            <MasterTableView EditMode = "InPlace" >
                <Columns>
                    <telerik:GridBoundColumn DataField="Program" HeaderText="Program" ></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Organization"  HeaderText="Organization"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Campaign" HeaderText="Campaign" ></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MinEmployeeCnt" HeaderText="MinEmployeeCnt" ></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MaxEmployeeCnt" HeaderText="MaxEmployeeCnt" ></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MinSalesVolume" HeaderText="MinSalesVolume" ></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MaxSalesVolume" HeaderText="MaxSalesVolume"  ></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="LandLineOnly" HeaderText="LandLineOnly" ></telerik:GridBoundColumn>
                </Columns>
        </MasterTableView>
    </telerik:RadGrid>
             
    <asp:ObjectDataSource ID="gridRequest" runat="server" SelectMethod="SelectBusiness" TypeName="G2WebBL.DataMappers.LeadsRequest.LeadsRequestDataAccess">
        <SelectParameters><asp:SessionParameter Name="id" DbType="String" DefaultValue="%" SessionField="ID"  /></SelectParameters>
    </asp:ObjectDataSource>
 
</form>

Peter Milchev
Telerik team
 answered on 14 Jun 2019
3 answers
110 views
hi
How to display rows in the RadGrid like this image?
Vessy
Telerik team
 answered on 14 Jun 2019
1 answer
237 views

How is the best way to get values of controls to EditFormSettings ?

I have this code but I don't know if there's other best way:

 

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
       {
           if (e.CommandName == "PerformInsert")
           {
               GridEditFormInsertItem editform = (GridEditFormInsertItem)((Telerik.Web.UI.GridEditFormInsertItem)(e.Item));
               RadTextBox txtbx = (RadTextBox)editform.FindControl("txtName");
               string strtxt = txtbx.Text;
           }
       }
<EditFormSettings EditFormType="Template">
     <FormTemplate>
           <telerik:RadLabel runat="server" Text="Name:" Font-Bold="True"></telerik:RadLabel>
           <br />
           <telerik:RadTextBox ID="txtName" runat="server" InputType="Text" MaxLength="70" Width="100%" AutoCompleteType="None" autocomplete="off"></telerik:RadTextBox>
           <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txtName" runat="server" CssClass="rfv" />
           <telerik:RadButton ID="btnSave" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Save" : "Update" %>'CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'> </telerik:RadButton>
     </FormTemplate>
</EditFormSettings>

 

Eyup
Telerik team
 answered on 14 Jun 2019
6 answers
584 views
In my application I have one form called [Main.aspx] :

In this page i put one tab strip called [RadTab1] and it have following tabs :
1.Home 
2.Abouut Us
3.Contact Us
4.Feedback

Now what I want is when user click on Home tab at that time Home.aspx will be load under corrosponding page view...

When click on abount us then AboutUs.aspx ,similarly for other two..

I do no want to do this with master page and user controls..every thing should be in Main.aspx.


I have tried following code but it redirect me to another page .

<telerik:RadTabStrip ID="radTabMain" runat="server" Width="100%" MultiPageID="RadMultiPage1"
            SelectedIndex="0">
            <Tabs>
                <telerik:RadTab Text="Home" NavigateUrl="Home.aspx" runat="server">
                </telerik:RadTab>
                <telerik:RadTab Text="AbouutUs" NavigateUrl="AbouutUs.aspx" runat="server">
                </telerik:RadTab>
                <telerik:RadTab Text="Contact Us" NavigateUrl="Contact.aspx" runat="server">
                </telerik:RadTab>
                <telerik:RadTab Text="Feedback" NavigateUrl="Feedback.aspx" runat="server">
                </telerik:RadTab>
            </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
            <telerik:RadPageView  ID="RadPageView1" runat="server">
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView2" runat="server">
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView3" runat="server">
            </telerik:RadPageView>
            <telerik:RadPageView runat="server" ID="RadPageView1">
            </telerik:RadPageView>
</telerik:RadMultiPage>


So what ot do in this case ?

Please help me. Please send me code for this.

-Thanks
Albert
Vessy
Telerik team
 answered on 13 Jun 2019
2 answers
235 views
Hi,
I am using Export to PDF from RadGrid, I need to decorate my data in the PDF file, I could change font color and some other simple stuff I need to know more changes I can do and how can I do it and especially Cell Borders ..
Second Thing , Can I add additional data to my PDF or Word or Excel Sheet ? not only the Grid data but more data I need to put on my output file ..
Can you help me please with this ..
Thanks

Ban
yasmin Ahmad
Top achievements
Rank 2
 answered on 13 Jun 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?