Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
177 views

Hi,

I am having Pivotgrid row alignment issue when IE8 compatibility View settings turned on. Unfortunately, this is the default setting on all the users machine.

Please find the attached images with / without compatibility settings.

Thanks.
ts
Top achievements
Rank 1
 answered on 10 Sep 2014
1 answer
290 views
In which cases the above situation is true?

I change a parameter of the SqlCommand which passes its data to the DataSouce of the grid and then I rebind.
I stop the code where I check the count of the items in the MasterTableView and I see that it's not zero.

I can even select the first row by...
RadGrid.MasterTableView.Items(0).Selected = True

...and I can see the data in the grid object, like
RadGrid.SelectedItems.Item(0).Cells(2).Text (contains the expected value)

But the grid on the screen remains empty.

Where should I look?

Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Sep 2014
6 answers
240 views
I have couple of issues related to dynamically created Radgrid.
Background: I have created a dynamic Radgrid which contains Templatecolumn in it, this template columns hold three dropdown list controls which work in a cascading manner. I'm pre-selecting the drop down and for new records its getting default selections. Everything works fine until I get into paging.

Issues: 1. Whenever I use paging the page number is selected in the grid but it always shows first page records.
            2. The selections made in previous page dropdown list are not persisting during the paging.

I'm not sure if both are related to same thing. Here is my code for your reference. Your help is highly appreciated.

 
protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
         AddGrid();
        }
 
 private void AddGrid()
        {
 
        _grid = new RadGrid
            {
                ID = "TestGrid",
                PageSize = 30,
                ShowGroupPanel = false,
                AllowSorting = false,
                AllowPaging = true,
                AutoGenerateColumns = false,
                GridLines = GridLines.Vertical,
                VirtualItemCount =0               
            };
 
        _grid.ClientSettings.AllowDragToGroup = false;
             _grid.ClientSettings.AllowColumnsReorder = false;
             _grid.ClientSettings.AllowColumnHide = true;
             _grid.ClientSettings.Animation.AllowColumnReorderAnimation = false;
              _grid.ClientSettings.Animation.AllowColumnRevertAnimation = false;
 
              _grid.MasterTableView.DataKeyNames = new[] { "Id" };
              _grid.MasterTableView.ShowHeadersWhenNoRecords = true;
              _grid.MasterTableView.UseAllDataFields = true;
              _grid.MasterTableView.Name = "Master";
           _grid.ItemDataBound += GridItemDataBound;
 _grid.PageIndexChanged += new GridPageChangedEventHandler_grid_PageIndexChanged);
_grid.NeedDataSource += new GridNeedDataSourceEventHandler(_grid_NeedDataSource);
 
 
 var countryTemplate= new GridTemplateColumn
            {
                UniqueName = "ADDCountry",
                HeaderText = "Country Field",
                Resizable = true,
 
            };
            countryTemplate.HeaderStyle.Font.Bold = true;
            countryTemplate.ItemTemplate = new Templateclass(countryTemplate.UniqueName, ExcelColumns);
 
            _grid.MasterTableView.Columns.Add(sourceTemplate);
 
             
            var stateTemplate = new GridTemplateColumn
            {
                UniqueName = "ADDState",
                HeaderText = "state Column Field",
            };
 
            stateTemplate .HeaderStyle.Font.Bold = true;
stateTemplate .ItemTemplate = new Templateclass(stateTemplate .UniqueName, null);
 
            _grid.MasterTableView.Columns.Add(stateTemplate );
 
 
            var CityTemplate = new GridTemplateColumn
            {
                UniqueName = "ADDCity",
                HeaderText = "Mapping Rule",
            };
 
            CityTemplate .HeaderStyle.Font.Bold = true;
            CityTemplate .ItemTemplate = new Templateclass(CityTemplate .HeaderText, null);
 
            _grid.MasterTableView.Columns.Add(CityTemplate);
 
  Content.Controls.Add(_grid);
        }
 
void _grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            ((RadGrid)sender).MasterTableView.VirtualItemCount = bindingObject.Count;
            ((RadGrid)sender).CurrentPageIndex = ((RadGrid)sender).MasterTableView.CurrentPageIndex;
            ((RadGrid)sender).DataSource = bindingObject;
            
        }
void _grid_PageIndexChanged(object sender, GridPageChangedEventArgs e)
        {
            ((RadGrid)sender).MasterTableView.CurrentPageIndex = ((RadGrid)sender).CurrentPageIndex;
        }
 
 
 void GridItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem dataItem = (GridDataItem)e.Item;
                DropDownList ddlCountry= (DropDownList)dataItem.FindControl("ddlCountry");
 
                 
 
                if (ddlCountry!= null)
                {
                    ddlCountry.AutoPostBack = true;
 
                    ddlCountry.SelectedIndexChanged += new EventHandler(ddlCountry_SelectedIndexChanged);
 
 
                }
            }
        }
 
public class Templateclass: ITemplate
    {
public Templateclass(string colNames,List<string> CountryNames)
        {
            colName = colNames;
                       countryNames= CountryNames;
        }
 
public void InstantiateIn(Control container)
        {
//create a drop down controls for template columns
}
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Sep 2014
2 answers
242 views

The popup send email dialog asks for a From Address.  And if the sent from address is different, the email is composed with a "on behalf of".  Unfortunately this is causing blocked emails, in particular when the From Address is from AOL and Yahoo.  

AOL and Yahoo have implemented dmarc which prevents sending on behalf of emails.
http://www.dmarc.org/

So ideally, the From address collected on the input page would be the reply to address (not on behalf of).   Is there some way to resolve this/override it?  or is an improvement in the works?

Thanks,
Todd.
Todd A
Top achievements
Rank 1
 answered on 10 Sep 2014
5 answers
286 views
Hi,

We have an issue with the Telerik RadGrid which we believe is linked to this post:
http://www.telerik.com/community/forums/aspnet-ajax/grid/horizontalalign-on-client-columns-reorder.aspx

We have a custom Command Item Template which contains buttons that are shown or hidden within the grid pre render event.

When reordering the columns and then clicking anything that forces an autopost back, the buttons within the command item template are all shown.

I have included a checkbox below our grid:
<asp:CheckBox runat="server" ID="chk_box" AutoPostBack="True"/>

Clicking this after reordering the columns causes the show/hide in our pre render not to have an effect on the visibility of the buttons.

The above post mentions "This is because, with client column reorder, RadGrid rebinds implicitly on the next postback." Is this a bug with the RadGrid and if so has it been fixed?

Please note that setting RadGrid.MasterTableView.ClientSettings.ReorderColumnsOnClient = "false" does not fix the issue for us.

This is an urgent issue for us and any help would be very much appreciated,

Thanks,
Ryan
Maria Ilieva
Telerik team
 answered on 10 Sep 2014
1 answer
145 views
Hello,

I have a progress control working ok; I would like to know how easy it would be to add another progress bar,

For example:

Task 1    - Progress bar

Task 2    - Progress bar

etc..

Many Thanks.

Vessy
Telerik team
 answered on 10 Sep 2014
18 answers
828 views
I have a grid which uses grouping. I would like to implement some functionality that calculates some group-level stats on some of the columns in the grid, however I need to use TemplateColumns, so the built-in aggregates won't work. I am able to do the calculation in the grid's ItemDataBound event, however, at this point in the grid cycle, I don't have access to know which group i am in so the calculations won't be made on a group-level, as I want. Does anyone know how to accomplish this? A simple example would be a grid with a Template column which shows an Integer (the template column is needed for a variety of treasons which aren't pertinent). I would like the group header (or footer) to show a calculation made on this column (such as the number of items in the group which are greater than some fixed value)
Phil H.
Top achievements
Rank 2
 answered on 10 Sep 2014
3 answers
162 views

I am using the latest released version of the control.  In Page_Load I have the following code:

RadFileExplorer1.TreeView.EnableDragAndDrop = true;
RadFileExplorer1.Grid.ClientSettings.AllowRowsDragDrop = true;

It fails on the second line because the .Grid property is null at that point?    If I don't have that code the program seems to run fine.


For reference, I added the above code to the bottom of Page_Load in the program "PhysicalPathFileSystemProvider_Cs.zip"

located at the bottom of the page on http://www.telerik.com/support/kb/details/use-radfileexplorer-with-physical-and-shared-folder-s-paths



Vessy
Telerik team
 answered on 10 Sep 2014
6 answers
133 views
Hello, I have a RadPanelBar that contains a RadPanelItem, similar to the configuration below. Both are assigned IDs with runat=server.

In my code-behind, I am trying to pass the RadPanelItem's clientID to the RadToolTipManager so that the Item will have a nice pretty tooltip on mouse over.

However, passing the RadPanelItem's clientID to the RadToolTipManager does not enable the tooltip -- I found out that the actual RadPanelItem's ClientID is not being assigned correctly -- it appears that the RadPanelItem's ClientID is the same as the RadPanelBar. 

I think this may be a bug, since I am able to pass literally every other control's clientID to the RadTooltipManager successfully, and have the tooltip displayed correctly.

Please advise as to how I can pass the correct RadPanelItem.ClientID to the RadTooltipManager.

ascx code:
<telerik:RadPanelBar width="100%" ID="rdpPanelBar" runat="server" ExpandMode="MultipleExpandedItems">
                <Items>
                    <telerik:RadPanelItem Text="Package" runat="server" Width=100% Value="PackageName" id="rdiPackage">
                        <ContentTemplate>
...
                        </ContentTemplate>
</Items>
                    </telerik:RadPanelItem>
</telerik:RadPanelBar>


code behind (vb net)
Dim item As RadPanelItem = rdpPanelBar.FindItemByValue("Package")
 
Dim test = rdpPanelBarClientID & "|" & rdiPackage.ClientID
 
RadToolTipManager1.TargetControls.Add(rdiPackage.ClientID, True)
 
RadToolTipManager1.Text = test
nismo
Top achievements
Rank 1
 answered on 10 Sep 2014
2 answers
239 views
Hi,

showModalDialog has been removed from Chrome few days ago, possibly from Opera too.

Firefox also warns that showModalDialog  has been deprecated and planed to be removed.

Is Rad Window using that method and will be affected?

or it just might be a possible solution...?


Thanks,
Shay


Shay
Top achievements
Rank 1
 answered on 10 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?