Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
I have an autogeneratedcolumn Radgrid that needs to make one of those column  as a radiobuttonlist(Yes No radiobautons). I don't know how I have to do it? Right now in edit mode everything is a textbox. How can I change the textbox of that special column into radiobutonlist? Would you please help me?

​<telerik:RadGrid ID="QuestionFoundationRadGrid" runat="server" OnNeedDataSource="QuestionFoundationRadGrid_NeedDataSource" OnPreRender="QuestionFoundationRadGrid_PreRender" OnItemCreated="QuestionFoundationRadGrid_ItemCreated" OnUpdateCommand="QuestionFoundationRadGrid_UpdateCommand" OnInsertCommand="QuestionFoundationRadGrid_InsertCommand" OnItemCommand="QuestionFoundationRadGrid_ItemCommand">
<MasterTableView EditMode="PopUp" CommandItemDisplay="Top">
<CommandItemSettings ShowRefreshButton="False" AddNewRecordText="Add New Answer" />
<CommandItemTemplate>
<div style="padding: 5px 5px;">
<table style="width: 100%">
<tr>

<td style="text-align: right">
<asp:LinkButton ID="AddAnswer" runat="server" CommandName="InitInsert"><img style="border:0px;vertical-align:middle;" alt="" runat="server" src="~\Images\AddRecord.png"/>&nbsp;&nbsp;Add New Answer</asp:LinkButton>&nbsp;&nbsp;
</td>
</tr>
</table>
</div>
</CommandItemTemplate>
<RowIndicatorColumn Visible="False">
</RowIndicatorColumn>
<ExpandCollapseColumn Created="True">
</ExpandCollapseColumn>
<Columns>

<telerik:GridEditCommandColumn ButtonType="ImageButton" ColumnGroupName="Actions" HeaderStyle-CssClass="header" UniqueName="EditCommandColumn" >
<HeaderStyle CssClass="header" />
<ItemStyle HorizontalAlign="Center" Width="15" CssClass="MergedBorder"/>

</telerik:GridEditCommandColumn>

<telerik:GridTemplateColumn UniqueName="DeleteColumn" ColumnGroupName="Actions" AllowFiltering="False" >
<ItemTemplate>
<asp:ImageButton ID="DeleteImageButton" runat="server" AlternateText="Delete Toolkit" CommandName="Delete"
OnClientClick="javascript:if(!confirm('This action will delete the selected Answer. Are you sure?')){return false;}"
ImageUrl="~\Images\delete-icon.png" />
</ItemTemplate>
<HeaderStyle CssClass="header" />
<ItemStyle HorizontalAlign="Center" Width="5"/>
</telerik:GridTemplateColumn>

</Columns>
<ColumnGroups>
<telerik:GridColumnGroup HeaderStyle-HorizontalAlign="Center" HeaderText="Actions" Name="Actions" >
<HeaderStyle HorizontalAlign="Center"/>

</telerik:GridColumnGroup>
</ColumnGroups>
<EditFormSettings>
                               
                            </EditFormSettings>

</MasterTableView>
</telerik:RadGrid>
Konstantin Dikov
Telerik team
 answered on 11 Sep 2014
1 answer
95 views
I have a requirement to create a custom button on my toolbar that is wider than the standard button. How do I do this with RadEditor?
Ianko
Telerik team
 answered on 11 Sep 2014
1 answer
148 views
I'm getting an error message when I go to a module that has your AsyncUpload Control in it.  I've attached a screenshot of that message.

In my layout code, I've defined the control thusly:
<telerik:RadAsyncUpload runat="server" ID="radAsyncUpload1" MultipleFileSelection="Disabled" HideFileInput="true" Localization-Select="Import"
                        OnClientFilesUploaded="clientFilesUploaded" OnFileUploaded="radAsyncUpload1_FileUploaded" TemporaryFolder="~/Logs" />
In Visual Studio 2012 it runs fine and I can see that the temporary file is being created.  But when running under IIS this error occurs.

Any ideas how to fix it?

Robert
Robert
Top achievements
Rank 1
 answered on 11 Sep 2014
2 answers
229 views
Hi

My client is asking to use Telerick controls for the project which is in ASP.Net 2.0 framework.Can you please let me know whether it is feasible to use telerikcontrol in ASP.Net 2.0?If yes can you please provide the  Downloadable file.

Thanks
Vamsi
Hafsal
Top achievements
Rank 1
 answered on 10 Sep 2014
7 answers
172 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
274 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
227 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
231 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
280 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
140 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?