Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
645 views
I have a radgrid, with a Add record template. The delete rows from radgrid and add new record throw custom error messages. Is there a way I can display these messages?
Shinu
Top achievements
Rank 2
 answered on 30 May 2014
3 answers
255 views
I noticed the demo for the Asyncupload component that involves the drag and drop zone (http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx).

With the fileexplorer, is there a way the async upload dialog can be customized to add a drag and drop zone?
Vessy
Telerik team
 answered on 30 May 2014
1 answer
126 views
Hello,

Ajax stops working after deleting the last item from Listbox

I have listbox, panel and 2 buttons- the first button deletes items from the listbox using java script (1) and the second button is  used to send ajax requests in order to hide and show the panel (2).

While deleting the items from the listbox, the ajax buttons works and hides/shows the panel but after deleting the last item from the listbox, the ajax stops working.

There is no error in the client side and neither on server side- I add break points at the server side in the Page_Load, I notice the function wasn't even called.


(1)-listBox.deleteItem(selectedItem);
(2)- panel.visible=false/true

Thanks,





Shinu
Top achievements
Rank 2
 answered on 30 May 2014
3 answers
213 views
Greetings,

I was wondering if it is possible to set 2 background colors for sorted columns, one color for alternate rows and other for non-alternate rows, because for the moment I only found the property SortedBackColor in SortingSettings. 

I would like to achieve this to keep the alternate look and feel among rows even on sorted columns.

Thanks in advance for your help

Regards!
Oscar Rmz

Shinu
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
346 views
Hi
I have a very simple requirement that I am pretty sure i have seen demo'ed in the past on the telerik site, but it seems to be gone. I have a grid, and Item templates, as well as EditItemTemplates for each column. One column's edit template is a radcombobox that has to have its datasource set in the code-behind. So, I have a, GridEditCommandColumn.

When I hit "Edit", the grid does not seem to recognize that it is in "Edit"mode. It comes back with the row as it was, uneditable, and the "Edit"button still showing (instead of the expected "Update, Cancel" buttons). Strangely enough, though, there is an edit form below the row that pops down, and it ha s some basic controls for editing, but they are not the edititemtemplate controls, as there are just textboxes, and no radcombobox. In this edit form, there is an update and cancel button. (As you can see in the screenshot, the weird edit form is there, with update and cancel buttons, but the inline row is still in regular mode, and the "edit" button is showing, which implies that the grid is not in edit mode!) I have set EditMode to "INPlace".

I just need simple inline editing - when I click "Edit", the grid should know that the row is in edit mode, and use the edititem template controls inline, as well as show "UPdate and Cancel " buttons. There should be no wierd edit form showing up below my row.

This seems like a super-simple thing to want to do, yet I cannot find a demo of this simple functionality. No demos show how to do in line editing with a radcombobox that has its data source set in ItemDataBound as I am doing.

Any help is appreciated. 

Thanks

Daniel
Shinu
Top achievements
Rank 2
 answered on 30 May 2014
4 answers
142 views
See thread title.
I have a couple of standalone RadImageAndTextTile's on a page. Even though I have specified 'tile.EnableSelection = false;' in code-behind, the tiles are still selectable via right-click.

Thx in advance for help and/or pointers!
M.

v.2013.3.1114.40
Princy
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
142 views
The documentation for the RadButton accessibility states:
When ToggleType="CheckBox", "Radio" or "Link" and if the Text property is set, the Button compliance level is A.

But there is no ToggleType="Link" in the designer view, and if hard coded, results in the following error:

Cannot create an object of type 'Telerik.Web.UI.ButtonToggleType' from its string representation 'Link' for the 'ToggleType' property.

My code looks like this

<telerik:RadButton ID="btnOkay" ToggleType="Link" runat="server" CausesValidation="False" Text="Yes" OnClick="btnOk_Click" meta:resourcekey="btnOkayResource1" />

Currently, instead of reading the Text attributes of the RadButtons, NVDA will read "Paragraph" when focus is placed upon them.

Shinu
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
178 views
I have read the various postings and suggestions regarding how to handle the scenario of having the loading panel show during the export process.

Using the suggestion manually showing and hiding the loading panel would work best, if I could execute javascript at the moment the file is presented to the user.  

Does the grid have an event (server or client) that can execute the moment the file is ready?  Or allow us to define an exportsetting for a javascript function to execute?

If these are not possible, please consider this as a suggestion.  

Thanks

Peter
Princy
Top achievements
Rank 2
 answered on 30 May 2014
1 answer
154 views
On click of the AddNewRecordButton, i want to hide button and the table header. On click of the addNewrecord, i can successfully hide the delete button on each row but the addNewRecord button still is visible! Also how can I hide the header?

I have a grid as follows. Add new record is a template.
          this._RadGrid1.ID = "RadGrid1";
        this._RadGrid1.Skin = "WebBlue";
        this._RadGrid1.Width = Unit.Percentage(100);
        this._RadGrid1.GridLines = GridLines.None;
        this._RadGrid1.AllowSorting = true;
        this._RadGrid1.AllowFilteringByColumn = false;
        this._RadGrid1.ShowGroupPanel = false;
        this._RadGrid1.AutoGenerateColumns = false;
        this._RadGrid1.AutoGenerateDeleteColumn = false;
        this._RadGrid1.AllowPaging = false;
        this._RadGrid1.EnableLinqExpressions = false;
        this._RadGrid1.MasterTableView.NoMasterRecordsText = "There are no documents associated with this order / quote / proposal.";      
        this._RadGrid1.ClientSettings.Selecting.AllowRowSelect = false;
        this._RadGrid1.ClientSettings.EnableRowHoverStyle = true;
        this._RadGrid1.ClientSettings.EnablePostBackOnRowClick = false;
        this._RadGrid1.MasterTableView.DataKeyNames = new string[] { this._EntityDocumentumReferenceTable.EntityDocumentumReferenceIdColumn.ColumnName };           
 
        this._RadGrid1.NeedDataSource += RadGrid1_NeedDataSource;
        this._RadGrid1.ItemDataBound += RadGrid1_ItemDataBound;
        this._RadGrid1.ItemCommand += RadGrid1_ItemCommand;    
 
          if (ShowAdd)
        {
            this._RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = true;
            this._RadGrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;               
            this._RadGrid1.MasterTableView.CommandItemSettings.AddNewRecordText = "Add Document";                          
            this._RadGrid1.MasterTableView.EditFormSettings.EditFormType = GridEditFormType.Template;
            this._RadGrid1.MasterTableView.EditFormSettings.FormTemplate = new AddDocumentTemplate(this._EntityId,
                       this._EntityType,
                       this._QuoteId,
                       this.CustomerNumber,
                       this.CompanyId,
                       this.ProposalNumber,
                       this.CatalogProductId);
        }
The ItemDataBound is as follows:
         private void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
       {        
           if (e.Item is GridDataItem)
           {            
               //Access the Insert Form, disable delete when in insert mode
              if (e.Item is GridEditableItem && !e.Item.IsInEditMode && e.Item.OwnerTableView.IsItemInserted)
              {
                  this._RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;                  
                  GridEditableItem insertItem = (GridEditableItem)e.Item;
                  ImageButton btnDelete = (ImageButton)dataItem["DeleteColumn"].Controls[0];
                  btnDelete.Visible = false;
                  //this._RadGrid1.ClientSettings.Selecting.AllowRowSelect = false;
              }
           } 
       }
Princy
Top achievements
Rank 2
 answered on 30 May 2014
11 answers
1.6K+ views
Hi,

can you tell me  how to change radgrid selected item style? When I use the following css, it appears that there's a grey overlay and blow there's the red background i'm looking for. I attached a photo to give you an example.
.SelectedStyle
{
 background-color: red !important;
}
<telerik:RadGrid ID="grdClients" runat="server" Width="100%" AutoGenerateColumns="false"
       AllowMultiRowEdit="false" ShowHeader="false" DataSourceID="objClients"
           CssClass="RadGrid_Default" SelectedItemStyle-CssClass="SelectedStyle">

Thanks
Shinu
Top achievements
Rank 2
 answered on 30 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?