hi
I Have RadGrid and want Delete One Row in ItemDataBound.....
means , when ItemDataBound appaly i want check some Item and then delete one row ....
protected void gvShow_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem dataitem = (GridDataItem)e.Item;
if ( check one EstateMent)
{
Do Some things
}
else
{
here I want Delete Current Row
}
Is there a way to prevent this? It makes life difficult when you can't use the design view. (see attached)
Note, this happens everywhere in the project.
Hi,
I have a requirement to be able to navigate our website using only the keyboard (we support blind people who do not use a mouse).
We find that once a RadGrid FilterMenu has popped up after clicking the Filter button, it is not possible to close it without selecting a menu item or clicking elsewhere with the mouse. I need the menu to close when the user presses "Escape".
I cannot seem to find a way to intercept keystrokes with the FilterMenu - There doesn't seem to be an OnKeyPress event?
I hope you can help,
Thanks.
Hello,
We have a dedicated content website, e.g. http://conent.mysite.com so all shared content (images, documents, media etc.) uploaded via radEditor should have an absolute link to this site. At the same time in order to upload files in radEdior we must add this shared location as a virtual folder, e.g. http://admin.mysite.com/content.
Then href to such items used in radEditor could be either:
How can we ​apply MakeUrlsAbsolute filter but pointing to another root, i.e. to http://conent.mysite.com/img.png
I have a RadGrid that has a WebUserControl for each row of the grid to allow the user to edit that row. When I click the edit button to expand the row (this opens up a .ascx control within the grid for that row), it always scrolls to the top of the page. The user then has to scroll down to find the row they selected with the row expanded to begin editing that row.
I found in another post that adding RadGrid1.ClientSettings.AllowKeyboardNavigation = true;prior to data binding the grid helps to maintain scroll position. This kind of works and you only have to scroll down one click of the mouse wheel to find the row to edit; not good enough.
I also have set MaintainScrollPositionOnPostback=“true" on the aspx page.
I also have set on the RadGrid itself under client settings SaveScrollPosition=“true".
What I'd like to see is the page not move at all when the user clicks on edit for the given row. I would like to maintain the scroll position on the page.
Can this be accomplished? If so, how?
I was browsing
http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/client-item-template/defaultcs.aspx
I don't recognise the syntax used within the span tags and VS 2013 doesn't like it.
<span style="#=formatTitle(ContactTitle)#">#=ContactTitle #</span>
I am trying to change the style of a column depending on value after binding the Grid view, something like this
private void OnNWDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item ||
e.Item.ItemType == ListItemType.AlternatingItem)
{
DataRowView rv = (DataRowView)e.Item.DataItem;
// Get fourth column value.
Int32 nUnitsInStock = Convert.ToInt32(rv.Row.ItemArray[3]);
if (nUnitsInStock < 20)
{
e.Item.Cells[3].BackColor = Color.Red;
}
}
}