Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
 
In GridButtonColumn on delete command ,
 I want to customise the popwindow as to change the title of the window & style of buttons.
I used the Code below but no idea for customization . Please find  the screen shot and have a look
<telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
     ButtonType="ImageButton" ImageUrl="~/Images/Delete.gif"
                 ConfirmText="Do you want to delete template?" ConfirmTitle="Delete Template" />

Thanks
Jaichand
Jayesh Goyani
Top achievements
Rank 2
 answered on 14 Jun 2011
5 answers
127 views
Whilst adding various RAD controls to my application I have come across quite a few cases where because I have altered default styling of certain HTML tags the RAD controls do not appear correctly. I would expect that the RAD controls would override the default styling in these cases.

Some examples of this are:

TD: Any padding or borders are not overriden in RAD Editor and the dialogs do not appear correctly.

LI: if a background image is applied many RAD controls do not look correct, eg. tree view, editor tool bar and dialogs.

To get around this I simply need to put various fixes in my CSS file, eg:

 

.RadComboBoxDropDown ul li, .rtsLI, .reEditorModes li, .rtLI, .rmItem, .rwControlButtons li
{
    background-image: none;
}
.RadWindow TD
{
    border: 0;
    padding:0;
}

But this is a nuisance to have to add these fixes everytime I notice an issue. I would expect that all RAD controls would override all CSS values and I think this should be fixed.

Bozhidar
Telerik team
 answered on 14 Jun 2011
1 answer
83 views
Hi,

I am using GridButtonColumn to delete a row from the RadGrid. It prompts the user as OK/Cancel. Is there any way to change that to Yes/No. 

TIA,
Uday M
Shinu
Top achievements
Rank 2
 answered on 14 Jun 2011
1 answer
233 views
HI,

I have a radGrid + TextBox + Button.

1. Now,  click to Button for search data.

2. If Textbox value is empty then Grid show all data correct and Event Grid PageIndexChanged is ok.

3. If Textbox value is not empty then Grid show "Condition data" correct.

4. When Textbox value is empty, i bind data to grid by click button search, grid show data correct. Now,  I change index page  grid (ex: page 3..) and enter value to textbox and click to button search --> RadGrid displays "No records to display" when the records exist.

I worked with RadGrid 2009 Q1 and bind data to Grid simple bind.!

Please help me  .!
Princy
Top achievements
Rank 2
 answered on 14 Jun 2011
4 answers
241 views
In RadGrid1_ItemCreated How to get commandname value or delete button value

Very Urgent


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 14 Jun 2011
1 answer
73 views
Hello,

I'm programmatically creating some columns in the Page_Load event (if not postback).  When I create these columns, I'm setting the width, such as:

protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GridBoundColumn boundColumn = new GridBoundColumn();
            boundColumn.HeaderStyle.Width = new Unit(100, UnitType.Pixel);
            boundColumn.ItemStyle.Width = new Unit(100, UnitType.Pixel);
            boundColumn.ItemStyle.CssClass = "noWrapEllipsis";
            rgCool.MasterTableView.Columns.Add(boundColumn);
}
}


On the initial page load, everything is fine.  However, when an ajax call happens, such as on paging, the columns are still present in the grid, but their width setting is gone (I verified the TD elements have no width when rendered to the browser).

On the demo site is shows a grid persisting column widths across postbacks (or ajax calls).  How can I do this with programmatically created columns?  Should their properties be saved in viewstate just like when the columns are defined in the markup?
Tony
Top achievements
Rank 1
 answered on 14 Jun 2011
3 answers
121 views
Hi,

I have a problem with radgrid export command item buttons. My setup is as follows;

I have a user control within a sharepoint web part. In that user control are multiple rad grids (some housed within child user controls). Each radgrid sits within an ASP.NET update panel. Initially my issue was that while these grids were within an ASP.NET update panel, the export buttons would not work, which was fine as I understood why.

To solve this I added an event handler for the OnItemCreated event of each radgrid. Below is the code for the event handler;

protected void rgv_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridCommandItem)
            {
                Button btncmd = (e.Item as GridCommandItem).FindControl("ExportToExcelButton") as Button;
                if (btncmd != null) { RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btncmd); }
  
                btncmd = (e.Item as GridCommandItem).FindControl("ExportToWordButton") as Button;
                if (btncmd != null) { RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btncmd); }
  
                btncmd = (e.Item as GridCommandItem).FindControl("ExportToCsvButton") as Button;
                if (btncmd != null) { RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btncmd); }
            }
        }

While testing this code change outside of SharePoint (standard asp.net website under IIS7), this worked just fine, I could export to excel as intended, and everything else within the update panel was still working correctly with respect to ajax.

As soon as I published this out to my sharepoint environment (SharePoint 2010 SP1) to test, I ran into an issue. Export to excel still worked just fine, but after using any of the export buttons to download a document, I could no longer interact with the application, in that nothing on the web part would post back anymore (I have a number of rad combo boxes, toolbars etc both within the update panels and outside of the update panels).

I used the same markup for a rad script manager in both the non sharepoint test website and in the sharepoint masterpage of the site hosting the web part.

<telerik:RadScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" ScriptMode="Release"/>

Do you have any ideas why this might be? Or potential work arounds? At the moment its not feasible to change from the current method of using ASP.NET update panels to telerik ajax controls without significant reworking of the application (which is quite large). So any work arounds would be much appreciated.

Thanks
BizData
Top achievements
Rank 1
 answered on 14 Jun 2011
4 answers
189 views
Hello ,
i want to hide "today" link in control .
any ideas ?
Karam
Top achievements
Rank 2
 answered on 13 Jun 2011
2 answers
88 views

Hello all,

I'm interested in displaying a dynamically loaded user control inside a RadToolTipManager using the AjaxUpdate method from javascript when using the onRowDblClick event of the RadGrid.

I've tried calling the following, which does open the tooltip, but does not call the ajaxupdate:

 function editRole(sender, eventArgs) {


                var tooltip = $find('<%= ttAddVariable.ClientID %>');

                setTimeout(function () {
                    tooltip.set_targetControlID(sender);
                    tooltip.show();
                }, 100);  
            }
Mooka
Top achievements
Rank 1
 answered on 13 Jun 2011
9 answers
189 views
Hello, I'm using the newest version of RadControls for ASP.NET, and I've got a problem with launching the edit mode for RadGrid - it works like a charm for one instance of RadGrid, but for another - which is hierarchical - it doesn't. I am able to set edit mode manually - by EditColumn only.

My hierarchical grid looks is created in following way:

<telerik:RadGrid runat="server"
    ID="Grid"
    EnableAJAX="True"
    AllowMultiRowEdit = "True"
    EditMode="InPlace"
    OnItemDataBound="Grid_ItemDataBound"
    OnDetailTableDataBind="Grid_DetailTableDataBind"
    OnPreRender="Grid_PreRender"
    OnUpdateCommand="Grid_ItemUpdate"
    OnItemCreated="Grid_ItemCreated"
    DataSourceID="SqlDataSource1"
    AutoGenerateColumns="false">
      
    <MasterTableView DataKeyNames="MASTER_ID" >
     
     <DetailTables>
                            <telerik:GridTableView                           
                             EditMode="InPlace"
                            Name="Child" AutoGenerateColumns="False" Width="100%"
                              DataKeyNames="CHILD_ID" runat="server">
 
                                <Columns>                                  
                                 <telerik:GridEditCommandColumn /> 
                                   
                                <telerik:GridBoundColumn  DataField="CHILD_ID" HeaderText="CHILD_ID" ReadOnly="True"
                   SortExpression="CHILD_ID" UniqueName="CHILD_ID">
                                </telerik:GridBoundColumn>       
                                 
                                    
                                <telerik:GridBoundColumn  DataField="CHILD_Text" HeaderText="CHILD_Text" ReadOnly="False"
                   SortExpression="CHILD_Text" UniqueName="CHILD_Text">
                                </telerik:GridBoundColumn>                        
 
                   
                                </Columns>
                                </telerik:GridTableView>
                                 
    </DetailTables>                          
     
    <Columns>   
 
    <telerik:GridBoundColumn  DataField="CHILD_ID" HeaderText="CHILD_ID" ReadOnly="True"
                   SortExpression="CHILD_ID" UniqueName="CHILD_ID">
                                </telerik:GridBoundColumn>
                                 
    <telerik:GridBoundColumn  DataField="MASTER_ID" HeaderText="MASTER_ID" ReadOnly="True"
                   SortExpression="MASTER_ID" UniqueName="MASTER_ID">
                                </telerik:GridBoundColumn>     
                
                           
    </Columns>   
     
    </MasterTableView>
    
    </telerik:RadGrid>

And function, which is trying to turn on edit mode, looks like:

private void Grid_PreRender(object sender, System.EventArgs e)
{
 
if (!IsPostBack)
{
 
 foreach(GridItem item in Grid.MasterTableView.Items)
 {
  if (item is GridEditableItem)
  {
   GridEditableItem editableItem= item as GridDataItem;
   editableItem.Edit = true;
  }
 }
 Grid.Rebind();
}
 
}

Any help would be appreciated.
Daniel
Top achievements
Rank 2
 answered on 13 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?