Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
1.4K+ views
How implement "OnClientClicked" to GridButtonColumn?
Travis Richardson
Top achievements
Rank 1
 answered on 04 Mar 2019
1 answer
675 views

When I upgrade an existing project to a newer version the Upgrade Wizard Log shows success but I get this error:

https://drive.google.com/open?id=1l1KqfmqRnsCgWJ5O5LeBDCH_fpjDoiRr

Also if I bring up the Launch Toolbox Configurator and then click "Finish" button, I get the same error.

I do NOT run VS 2015 "As Admin" for many reason I don't want to get into, so please don't suggest that ;)  

Cheers, Rob.

Rumen
Telerik team
 answered on 04 Mar 2019
5 answers
292 views
Hi All

I have an ASP.NET datalist which is displaying data in the form of a repeated list.

I have set the RepeatColumns to 6, so that I have the data displayed repeatedly in 6 columns.

Is there a telerik control that can do this, ie repeat the data in columns?

I tried using a RadGrid but cannot get the data to display in 6 columns.

Any help is very much appreciated.

Thanks

Johann  
Rumen
Telerik team
 answered on 04 Mar 2019
5 answers
371 views
There are only two settings I can set from the aspx file for the AddNewRecord Button of a radgrid (when it's visible).

CommandItemSettings-AddNewRecordText
CommandItemSettings-AddNewRecordImageUrl

...but this is not enough.


Is there a way to control the appearance of the add button with css?



I can do this for the edit button (for example) of each row by:

      Dim ImgBtn As ImageButton = DirectCast(e.Item.FindControl("EditCommandColumn"), ImageButton)
      ImgBtn.CssClass = "editbutton"

...in the itemCreated event.

Thanks
Marin Bratanov
Telerik team
 answered on 04 Mar 2019
12 answers
544 views
Hi,

I can successfully delete rows from my TreeList but I need to show the user a popup confirmation box first. I have searched extensively for a solution and cannot find anything.

My code for removing a row is listed below:

protected void OnSettingsTreeListDeleteCommand(object sender, TreeListCommandEventArgs e)
{
    TreeListDataItem treeListDataItem = e.Item as TreeListDataItem;
    TableRow tableRow = e.Item as TableRow;
    if (treeListDataItem != null && tableRow != null)
    {
        string name = tableRow.Cells[3].Text;
        string id = treeListDataItem.GetDataKeyValue("Id").ToString();
        SettingsTreeListDataTable.Rows.RemoveAt(Convert.ToInt32(id));
        PropertyType.GetPropertyType(typeof(Brand)).RemoveSetting(name);
    }
}

I guess I need some kind of java script popup.

Thanks

SurfRat.

Marin Bratanov
Telerik team
 answered on 04 Mar 2019
2 answers
282 views

Hello ,

 

Can you please advise how the Tree view should be setup to give this type of functionality with database table attached ?

 

thanks


KinG
Top achievements
Rank 1
 answered on 04 Mar 2019
11 answers
187 views
I upgraded from 2013.3.1324.40 to 2014.1.403.40 and when I perform DataBind() on my RadTreeList it fails with:

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

I switch back to the old version and it works fine.

Was there a breaking change for 2014.1.403.40?  

Thanks,

Dave


Maxime
Top achievements
Rank 1
 answered on 02 Mar 2019
1 answer
261 views

Hello..........

I want to create a check box to show by group. Where it will show only 1 checkbox per 1 group

 

- I Can  pic1.png
 - I want pic2.png

Rumen
Telerik team
 answered on 01 Mar 2019
1 answer
280 views

Hi,

I have managed to successfully create Pivot Grids from code behind, the definition of the pivot grid, rows, columns and aggregates and filters are stored in SQL Server, I am able to easily create the grid at run time and display it. The sorting, column filters, row filters all work well. However the PivotGridReportFilterField defined when clicked fail with 

 

[NullReferenceException: Object reference not set to an instance of an object.] Telerik.Web.UI.PivotGridFilterWindow.InitializeControls() +904 Telerik.Web.UI.PivotGridFilteringManager.CreateFilterWindow() +90 Telerik.Web.UI.PivotGridFilteringManager.SetUpFilterWindowControls() +14 Telerik.Web.UI.RadPivotGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +723

 

In the code behind, I construct the grid as follows:

foreach (var def in defList)
                {
                    if (def.ReportFieldType == (int) ReportFieldType.RowFieldForTable)
                    {
                        // Define Rows                         var rowField = new PivotGridRowField();
                        PivotGrid.Fields.Add(rowField);
                        rowField.DataField = def.Fieldname;
                        rowField.UniqueName = def.Fieldname.Replace(" ", string.Empty);
                    }
                    else if (def.ReportFieldType == (int) ReportFieldType.ColumnFieldForTable)
                    {
                        // Define Columns                         var colField = new PivotGridColumnField();
                        PivotGrid.Fields.Add(colField);
                        colField.DataField = def.Fieldname;
                        colField.UniqueName = def.Fieldname.Replace(" ", string.Empty);
                    }
                    else if ((def.ReportFieldType == (int) ReportFieldType.CountFieldForTable) ||                             (def.ReportFieldType == (int) ReportFieldType.AverageFieldForTable) ||                             (def.ReportFieldType == (int) ReportFieldType.SumFieldForTable))
                    {
                        //Define Aggregrates                         var aggregateField = new PivotGridAggregateField();
                        PivotGrid.Fields.Add(aggregateField);
                        aggregateField.DataField = def.Fieldname;
                        aggregateField.UniqueName = def.Fieldname.Replace(" ", string.Empty);
  
                        if (def.ReportFieldType == (int) ReportFieldType.CountFieldForTable) aggregateField.Aggregate = PivotGridAggregate.Count;
                        if (def.ReportFieldType == (int) ReportFieldType.AverageFieldForTable) aggregateField.Aggregate = PivotGridAggregate.Average;
                        if (def.ReportFieldType == (int) ReportFieldType.SumFieldForTable) aggregateField.Aggregate = PivotGridAggregate.Sum;
                    }
                    else if (def.ReportFieldType == (int) ReportFieldType.FilterFields)
                    {
                        var filterField = new PivotGridReportFilterField();
                        PivotGrid.Fields.Add(filterField);
                        filterField.DataField = def.Fieldname;
                        filterField.UniqueName = def.Fieldname.Replace(" ", string.Empty);
                        //filterField.FilterType = PivotGridReportFilterActionType.Includes;                     }
                }

 

Any help in resolving this issue would be much appreciated.

Thanks

 

Krish Venugopal
Top achievements
Rank 1
 answered on 01 Mar 2019
1 answer
564 views

Hi,

I'm using the following method to export a radgrid report to Excel:

ExportSettings-Excel-Format="Xlsx"

and in the codebehind:

protected void btnExport_Click(object sender, EventArgs e)
{
    rgLTDAccount.ExportSettings.OpenInNewWindow = true;
    rgLTDAccount.ExportSettings.IgnorePaging = true;
    rgLTDAccount.ExportSettings.UseItemStyles = true;
    rgLTDAccount.ExportSettings.FileName = lblFileName.Text;
    rgLTDAccount.ExportSettings.ExportOnlyData = false;
    rgLTDAccount.MasterTableView.ExportToExcel();
}

 

I'm trying to insert a custom header at the top of the report with a few rows of contextual data from codebehind.  I've seen some samples for html and biff, but not xlsx format.  I can adjust a few things like row height in the InfrastructureExporting method, but I can't figure out if it's possible to insert rows and add text to them.  Any help greatly appreciated.

Thanks.

-Dan


Attila Antal
Telerik team
 answered on 28 Feb 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?