Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
203 views
Hi there,

I've been fighting with the radgrid styles for a while now, but I can't seem to find a way to do this: I'd like to have no outer border on a radgrid at all, but have vertical lines separating the columns. It seems I can either have a right border or a left border on each column, each of which results in a border on the outermost column. Any thoughts?

Thanks,
Eric
Princy
Top achievements
Rank 2
 answered on 29 Jun 2011
3 answers
82 views
I'm trying to find out how to keep a page from posting back in an OnResponseEnd event handler.  The following is my code for the event hanlder:

 

 

 

 

//event called after server code executes
        function ResponseEnd(sender, args) {
            var hid = document.getElementById("<%=hidReturn.ClientID %>"); //get value from hidden control which is set by server code
            if (hid.value == "True") {
                alert("You don't have all the required documents");
                return false;
            }
            else
                return true;
        }
I see the alert box when the condition is met, but the return false statement does not prevent the page from continuing to process server-side code.  I want it to stop right there-- any suggestions?

Radoslav
Telerik team
 answered on 29 Jun 2011
6 answers
772 views
Hello,

I have a dynamically generated page and a RadGrid on it.

The Grid is defined as follows:
           protected virtual void SetGrid(CustomFormPageHandler form, ASPXListFrameDefinition definition)
        {
            selectedID = ((FrameObjects.GetFrameControlId(FrameName) != Definition.ID) ? -9 : FrameObjects.GetFrameObjectID(FrameName));
  
            //Grid.DataSource = OWData;
            //if (!IsLOV)
            Grid.SelectedIndexChanged += new EventHandler(SelectedIndexChanged);
  
            Grid.DataBinding += new EventHandler(GridDataBinding);
  
            Grid.DataBound += new EventHandler(Grid_DataBound);
  
            Grid.ItemDataBound += new GridItemEventHandler(GridItemDataBoundEvent);
            Grid.ColumnCreated += new GridColumnCreatedEventHandler(Grid_ColumnCreated);
  
            Grid.DataSourceID = OWData.ClientID;
            Grid.ID = definition.ID;
            Grid.AllowPaging = true;
            Grid.AllowSorting = true;
  
            Grid.AllowFilteringByColumn = !definition.HideFilterRow;
  
            if (!IsLOV)
            {
                Grid.Height = (Unit.Parse(definition.Height));
                Grid.Width = (Unit.Parse(definition.Width));
            }
            else
            {
                //   Grid.Height = new Unit("100%");// (Unit.Parse(definition.Height));
                Grid.Width = new Unit("100%"); //(Unit.Parse(definition.Width));
            }
  
            Grid.ClientSettings.EnableAlternatingItems = true;
            Grid.ClientSettings.Scrolling.AllowScroll = true;
  
            Grid.ClientSettings.EnablePostBackOnRowClick = true;
  
            Grid.ClientSettings.Resizing.AllowResizeToFit = true;
            Grid.ClientSettings.Selecting.AllowRowSelect = true;
  
            Grid.AutoGenerateColumns = false;
  
            Grid.MasterTableView.AllowMultiColumnSorting = true;
            Grid.MasterTableView.ShowHeadersWhenNoRecords = true;            
            Grid.MasterTableView.AlternatingItemStyle.BackColor = Color.LightGray;
            Grid.MasterTableView.DataKeyNames = new string[] { "ID" };
  
            if (definition.Attribute.Count() > 1)
            {
                Grid.GroupingEnabled = true;
                Grid.ShowGroupPanel = true;
                Grid.ClientSettings.AllowDragToGroup = true;
                Grid.ClientSettings.Resizing.AllowColumnResize = true;
                Grid.ClientSettings.Resizing.EnableRealTimeResize = true;
                Grid.ClientSettings.EnableRowHoverStyle = true;
            }
        }

When I select an element, a detail is redrawn, everything works fine.
When I click on the selected item again, the postback is called, but no events are fired.
The site draws RadGrid with blank rows, the number of rows corresponds to the original number, but they do not contain any text.
Detail, which is drawn from the events Grid_DataBound, is not rendered because the event is not called.

If I click on the another item, which is not selected, everythings work fine again.

Can someone help?

Best regards
Martin
Martin
Top achievements
Rank 1
 answered on 29 Jun 2011
2 answers
72 views
How to make the excel button export to xlsx extention instead of xls?

Also how to hide the filter when export excel?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 29 Jun 2011
1 answer
84 views
Hi, I'm having an issue with the HideEvent attribute.  I have it set to ManualClose and everything seems to work fine until I click outside the tool tip.  When I click outside the tool tip, it disappears.  From my understanding, setting HideEvent="ManualClose" means that the only two conditions in which the tool tip closes is if A) the user clicks the close X in the top right or B) a new tool tip is opening.  I'm using version 2010.3.1317.35 of the controls.

Thanks,

Patrick Mallahan
Gimmik
Top achievements
Rank 1
 answered on 29 Jun 2011
1 answer
64 views
Hi,
I want to display selected date in raddatepicker as Month/Day/Year, currently it is Day/Month/Year. Thanks.
Gimmik
Top achievements
Rank 1
 answered on 28 Jun 2011
10 answers
405 views
Hi there,

We are using the Radeditor 5.5.0. And we are concern with the complexity of the Table styling properties for content editors. Some of clients are already complaining on the complexity. For example, in the past , "Set Table Border Use Case" (which is a common content editor use case) was easy by selecting a few icons such as show in the image below.

Previous Table Wizard

For now, users has to know how to select
  1. "Table Properties > Style Builder > Border > " and
  2. then overwhelmed with a so many text boxes and selection
  3. But this is only for the table border.......
  4. To enable the cells border -> we have to go to cell properties to do the same.

 

My feedback to telerik 
 
1. This is too overwhelming for a content editor just wanting to enable a Table Border for their tables. In the past, it was easy as choosing icons in the table properties.

2. Are there any documentation on this table style? It seem the help manual URL below is not updated with the right images.

http://www.telerik.com/help/aspnet-ajax/tablewizard.html

3. Will it be a better idea that Telerik provide a simple table properties wizard (eg: like the past editor) and let us configure between advance and simple table properties for our client content editor?

Brad Welch
Top achievements
Rank 1
 answered on 28 Jun 2011
2 answers
187 views
I have just move a grid from a page to a usercontrol. Since the scriptmanager is at the page level, I'm not sure how to reference it to run the following piece of code in my grid's PreRender:

for (int i = 0; i <= ShotDetail_RadGrid.MasterTableView.Items.Count - 1; i++) {
    Panel aspPanel = ShotDetail_RadGrid.MasterTableView.Items(i).ChildItem.FindControl("InnerContainer");
    RadGrid attachmentsGrid = aspPanel.FindControl("Attachments_RadGrid");
    RadScriptManager1.RegisterPostBackControl(attachmentsGrid); // Problem is here
}

I can't find it with Page.FindControl("RadScriptManager1")

Thanks!
Andy
Top achievements
Rank 2
 answered on 28 Jun 2011
1 answer
78 views
Hi,

it is possible to trigger the asynchronous loading of items in radRotator in client side javascript when a swipe occurs so that there is always 3 Images pre-loaded to the left or the right.

Example:

On first load : Image 0, 1 and 2 are loaded.

On moving right to image 1 ,  trigger the asynchronous retrieval of position 3

Please let me know how I can achieve this.

thanks,
Sharanya

Slav
Telerik team
 answered on 28 Jun 2011
1 answer
144 views
I'm creating my grid programmatically and wondering how I can add a custom button in addition to the export to Excel and CSV buttons already there. Here's a snippet of my code:

rgReport.MasterTableView.CommandItemSettings.ShowExportToCsvButton = (bool)resultsDT.Rows[0]["ShowExportToCsvButton"];
rgReport.MasterTableView.CommandItemSettings.ShowExportToExcelButton = (bool)resultsDT.Rows[0]["ShowExportToExcelButton"];
rgReport.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;

Again, I want to add a custom button, but not sure how to go about doing that programmatically. I know I can use the CommandItemTemplate, but I'm not sure if I have to recreate the export functionality or if I can simply add another button to the already existing CommandItemSettings.

Any help would be appreciated.

Mark
Daniel
Telerik team
 answered on 28 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?