Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views

I have an ASP.Net page with a button on it that the user can click on Export data from a database table.  Usually this can be a long process if there are thousands of records to export.

I was trying to the use the ProgressArea to show the progress of the export so the user can see how far along it is.

I tried following the basic demo you have that shows a "Start Processing" button.  But it is not coming out the same way on my ASP.Net when clicking on the Export button.

Version of the Telerik software I am using is 2015.3.930.40

The issues I am seeing:

- The text in the ProgressArea still shows "Uploading Files".  This has nothing to do with uploading files.  The export gets data from the database table and puts it in a file on the client side.

- The ProgressArea does not disappear after export has completed.

Attached is a screenshot of what I am seeing. 

Please help!

Sincerely,

Keith Jackson

Keith
Top achievements
Rank 1
 answered on 20 Nov 2015
6 answers
710 views
Hi,

I need to bind my dropdowns at server end with the list retrieved from service.
I tried to follow demo provided in http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

hard luck is; in demo the datasource is defined in designer itself but I need to bind the ASP dropdownlist dynamically with the data retrieved through services in form of datatable/ lists.

I tried following code block on ItemDataBound, ItemUpdate and ItemEdit events but no luck.

Designer code:

<rad:RadGrid ID="grdAssessmentConfig" runat="server" CssClass="table_heading" AllowPaging="false"
            AllowSorting="True" PagerStyle-AlwaysVisible="false" AllowMultiRowSelection="False"
            AllowMultiRowEdit="false" AllowAutomaticInserts="True"
            AllowAutomaticUpdates="True" OnBatchEditCommand="grdAssessmentConfig_ItemEdit" 
            OnItemDataBound="grdAssessmentConfig_ItemDataBound" EnableTheming="true" MasterTableView-AlternatingItemStyle-BackColor="#eaeff5"
            AutoGenerateColumns="false" GridLines="Vertical" FilterItemStyle-CssClass="RadGridFilter">
            <%--  <PagerStyle Mode="NextPrevAndNumeric" Width="100%" AlwaysVisible="true" />--%>
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView HorizontalAlign="Right" DataSourcePersistenceMode="ViewState" CommandItemDisplay="None"
                EditMode="Batch">
                <%--<CommandItemSettings ShowExportToCsvButton="true"></CommandItemSettings>--%>
                <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click"  />
                <Columns>
                    <rad:GridTemplateColumn HeaderText="Assess" UniqueName="Assessment"
                        DataField="Assessment">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblAssess" Text='<%# Eval("column1")%>'></asp:Label>
                            <asp:HiddenField ID="hdnAssess" runat="server" Value='<%#Eval("column1")%>' />
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:DropDownList ID="ddlAssesment" runat="server" CssClass="rad_Width">
                            </asp:DropDownList>
                        </EditItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridTemplateColumn HeaderText="Care">
                        <ItemTemplate>
                            <asp:HiddenField runat="server" ID="hdnCare" Value='<%#Eval("Column2")%>' />
                            <asp:Label runat="server" ID="lblCare" Text='<%#Eval("Column2")%>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:DropDownList ID="ddlCare" runat="server" DataSourceID="ds1" CssClass="rad_Width">
                            </asp:DropDownList>
                        </EditItemTemplate>
                    </rad:GridTemplateColumn>
                   <%-- <rad:GridEditCommandColumn UniqueName="EditCommandColumn">
                    </rad:GridEditCommandColumn>--%>
                </Columns>
            </MasterTableView>
            <%--<ClientSettings AllowKeyboardNavigation="true"></ClientSettings>--%>
        </rad:RadGrid>

 Code Behind:

   if (e.Item is GridDataItem)
                {

                    DropDownList ddlAssess = (DropDownList)e.Item.FindControl("ddlAssesment");

                    // GridEditableItem grdEdit = 

                    DropDownList ddlCare = (DropDownList)e.Item.FindControl("ddlCare");
                    HiddenField hdAssessment = (HiddenField)e.Item.FindControl("hdnAssess");
                    HiddenField hdCare = (HiddenField)e.Item.FindControl("hdnCare");
                    Label lblCare = (Label)e.Item.FindControl("lblCare");
                    Label lblAssess = (Label)e.Item.FindControl("lblAssess");


  Code successfully returns Label and Hidden controls as they are in ItenTemplate but not the dropdownlist.
I am unable to tress what I am missing.

Any help is appreciated.

Thanks






Lee
Top achievements
Rank 1
 answered on 20 Nov 2015
1 answer
72 views

I am using a RadListView with NeedDataSource binding, and Insert/Update/Delete capabilities.

After the item is inserted, the InsertItem disappears, I don't want to have a "New Record" button, I want to always be an InsertItem template at the bottom. 

The first try was to use:

    protected void RadListView1_ItemInserted(object sender, RadListViewInsertedEventArgs e)
    {
        e.KeepInInsertMode = true;
    }

This worked fine when I was using Simpe data-binding, as I have faced other problems, I switched to Advanced Data Binding. After that, the event ItemInserted is not reachedanymore (I suspect it is because the ListView is rebinded after the Insert)

 

Any solutions to my problem? Also, why is the property InsertItemPosition is not enough? What cases should the property be enough?

Pavlina
Telerik team
 answered on 20 Nov 2015
0 answers
135 views

Hello,

I would appreciate some help here.

I have the following code, which includes a RadComboBox, a hyperlink and an empty div element. On the hyperlink click event I load another apsx page in a jQuery dialog. After closing the dialog, I try to open the RadComboBox but it doesn't open and it gives the below JavaScript error:

 

Error: Sys.ArgumentTypeException: Object of type 'Telerik.Web.UI.RadComboBoxCancelEventArgs' cannot be converted to type 'Sys.CancelEventArgs'. Parameter name: instance

01.    <script type="text/javascript">
02. 
03.        $(document).ready(
04.            //Bind jQuery events
05.            function () {
06.                Load();
07.             
08. 
09.            var prm = Sys.WebForms.PageRequestManager.getInstance();
10.            if (prm) {
11.                prm.add_endRequest(
12.                    // re-bind jQuery events on End Request
13.                    function () {
14.                        Load();
15.                    });
16.            }});
17.        function Load() {
18.            $(".companyLink").click( //On a link  click event
19.            function () {
20.                $(".client-editor")
21.                    .load("../somepage.aspx"//Load the aspx page
22.                    .dialog({           //Prepare the dialog
23.                        autoOpen: false,
24.                        modal: true,
25.                        close: function () {   //Empty the page loaded on close
26.                            $(".client-editor").empty();
27.                        }
28.                    });
29.                $(".client-editor").dialog("open"); //Open the dialog
30.            });
31.        }
32.</script>

 

01.<asp:HyperLink id="HyperLink1" runat="server" CssClass="companyLink" Text="CLick Here" ></asp:HyperLink>
02. 
03.     <telerik:RadComboBox ID="ddlInvoiceStatus" runat="server" RegisterWithScriptManager="false">
04.        <Items>
05.            <telerik:RadComboBoxItem Text="option 1" Value="0" />
06.            <telerik:RadComboBoxItem Text="option 2" Value="1" />
07.            <telerik:RadComboBoxItem Text="option 2" Value="3" />
08.        </Items>
09.    </telerik:RadComboBox>
10.   
11.  
12.<div class="client-editor" title="Edit Client Details"></div>

Georgia
Top achievements
Rank 1
 asked on 20 Nov 2015
5 answers
310 views
how to open the excel file in a popup window as pdf gets opened in a popup window on click of file in rad file explorer folder.
Vessy
Telerik team
 answered on 20 Nov 2015
2 answers
59 views

Hi All,

How can I call to execute xhtml validator to just return true (if its valid xhtml) or false (if not valid). Will just add this code before saving content to database, so that it will only save valid xhtml format.

Thanks in advance,

Rj

RJ
Top achievements
Rank 1
 answered on 20 Nov 2015
3 answers
290 views
I am creating a grid control through code-behind. I am looping through a list to crerate the columns dynamically. Some of the columns are of type GridCalculatedColumn. For example, my columns are "Total", "Passed" and "PassedPct". The third is the calculated column. When I create this column, I specify its DataFields with...

pctCol.DataFields = New String() {"Passed", "Total"}

and its expression with...

pctCol.Expression = "{0}/{1}"

I am getting an error in the grid databind event and the stack trace (shown below) points to the column experession bind event. It is telling me that:

Cannot find column [Passed].

I commented out the setting of the column expression and the grid was binded, but obviously the calculated column didn't work. I checked to make sure the source columns for the calculated column existed at the point of settting the expression by checking grid.mastertableview.Columns.FindByUniqueName("Passed") and this column exists. So, why is the exprssion not working. Does the expression use some other property (other than UniqueName) to find its component columns?

Or could there be something going on in the Databinding. I create the grid dynamically, set it's mastertableview properties, add dynamic columns,  addthe grid to a panel control on the page, add a handler for the grid's ItemDataBound Event, set the datasource of the grid and call databind, all in that order. All of this occurs within the page load event. Is there something I am missing about binding a dynamically created grid that could be causing the issue?

Stack Trace:
 
[EvaluateException: Cannot find column [Passed].]  
 
   
System.Data.NameNode.Bind(DataTable table, List`1 list) +1186845  
   System.Data.DataExpression.Bind(DataTable table) +59  
   System.Data.DataColumn.SetTable(DataTable table) +4826220  
   System.Data.DataColumnCollection.BaseAdd(DataColumn column) +272  
   System.Data.DataColumnCollection.AddAt(Int32 index, DataColumn column) +78  
   System.Data.DataColumnCollection.Add(DataColumn column) +8  
   Telerik.Web.UI.GridDataTableFromEnumerable.GetColumnsToUse() +1020  
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +68  
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +32  
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +20  
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +158  
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +129  
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +383  
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +140  
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +33  
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57  
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114  
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31  
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142  
   Telerik.Web.UI.GridTableView.PerformSelect() +4  
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73  
   Telerik.Web.UI.GridTableView.DataBind() +239  
   Telerik.Web.UI.RadGrid.DataBind() +80  
 
Bhaskar
Top achievements
Rank 1
 answered on 20 Nov 2015
1 answer
109 views

I have a lookup feature I am trying to create on a RadGrid when user clicks for a new item.

Currently I have a Textbox and a Button, when the button is clicked I can find the textbox control just fine and I can even give it text in the code behind which will then display said text. However, on the Clickevent I can not see any of the text the user put into the textbox.

 

How can find this textbox on page load or any other event for that matter so that I can grab the users imputed  text to start my search.

 

Thanks

Eyup
Telerik team
 answered on 20 Nov 2015
2 answers
159 views
Hellow, 

Im a computer programmer(asp.net )and im using telerik.

I ve been trying to use one of your controls and im currently stuck with radWizard.

The problem im facing is: the progress bar.(NavigationBarPosition="Top" ProgressBarPosition="Top").

When we start the program at run time, the progress bar current position is not starting at the beginning of the progressBar but it aways starts in center of the element ,even thought the progressbar current position changes .

Progress bar percentaGe looks fine to me.
If you could please give me some advise, it would be greatly appreciated.


Loic
Top achievements
Rank 1
 answered on 20 Nov 2015
5 answers
584 views

I am trying to build a Simple (one level) header colspan in which one header should span two columns.

I should I configure MultiColumnHeader to do this?

 

Marc

Kostadin
Telerik team
 answered on 20 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?