Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
How can I achieve custom behavior, when postback will only occur upon specific tabs being selected?
Say, there are 3 tabs and I would like to do nothing with the first, do client-js modifications with the 2, and process the click on the 3d button on the server.
Generic solution is requiered in order to support any amount of tabs.
Dimitar Terziev
Telerik team
 answered on 30 Apr 2012
3 answers
404 views
How to hide the horizontal scroll bar in a rad combo box. All the items in the combo box are shorter than the dropdown width of the control, yet a horizontal scroll bar turns up and seems unnecessary.
TonyG
Top achievements
Rank 1
 answered on 30 Apr 2012
7 answers
285 views
Hi, I'm currently in the process of evaluating the RadControls to see if it meets our needs for a project we're working on.

I have a RadComboBox that is created at runtime and added (via a Template) to a cell in the RadGrid.

Currently, at runtime I set:

combo.OnClientDropDownOpening = "OnClientDropDownOpening"; 

which fires the:

    function OnClientDropDownOpening(sender, args)  
    { 
    }    

javascript function.

How do I go about initiating a server callback that passes back the current control and its value, performs a custom query based on that value, and populates the Item collection of the RadComboBox without posting back the entire page?

I've explored the RadComboBox.EnableLoadOnDemand property, but it appears that it makes callbacks when the text is changed, which is not what we want.

If there are alternative methods to handling the event client-side, I'm open to them.

Thank you.
Dimitar Terziev
Telerik team
 answered on 30 Apr 2012
3 answers
182 views
Hello

My problem is this. I upload a file to my system and then update my RadFileExplorer. I want to set the initialPath, but if the file is not on the first page, when the pager is enabled, it is not selected.

You can actually try this for yourself on the RadFileExplorer demo page (http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/default/defaultcs.aspx). Set "" to true and copy as many files as you can into the Flowers directory and then refresh.

The initialPath does work if you turn the pager off. However, the strength of the pager is that I don't have to, time consumingly, read every file in a directory.

One thing that might help, is moving to the last page before calling InitialPath (or loadFolder) as the files aren't ordered until you tell the RadFileExplorer to, but I'm at a loss as to how to achieve this.

Thank you for your help in this matter.

Paul Herzberg

PS. Also the filter doesn't remember the entry if you try to move to another page
Dobromir
Telerik team
 answered on 30 Apr 2012
1 answer
124 views
Hi All

I'm working on RadGrid with bounding TextBox for each rows of column.

I need to get the client id for Textbox, but i'm not getting the 'ClientIDRowSuffix' property to set the ID to Textbox.

Can you tell me why telerik Radgrid not supporting the 'ClientIDRowSuffix' property.
 
Please help me on this

Thanks


Nitin
Richard
Top achievements
Rank 1
 answered on 30 Apr 2012
0 answers
123 views
Hello,

I am using Rad Ajax panel in my page. I have a grid and that grid is having expand all link that expand and collapse all the rows.

Before using Rad Ajax panel, it is working fine. After using this panel, That expand all link is not working.

Any Suggestions.

TIA
Atchut
Top achievements
Rank 1
 asked on 30 Apr 2012
1 answer
99 views
Hi, I am getting javascript error when I clicked on Export to Excel button of RadGrid. Please see the attached file.

Thanks
Praveen Tomar
Pavlina
Telerik team
 answered on 30 Apr 2012
1 answer
125 views
How to remove Add button in radupload when  MaxFileInputsCount is reached?
Princy
Top achievements
Rank 2
 answered on 30 Apr 2012
1 answer
114 views
Hi all,


    I am new to telerik, i have been searching for a way to add signs for numebers in the RadNumericTextbox for many days and couldn't find any. I have a RadnumericTextBoxe were user should give numbers with there sign (positive/negative).like: -45/+67...

                            Please help me with a solution as soon as possible. Its too ugent...Thannks in advance..

-ST-
Princy
Top achievements
Rank 2
 answered on 30 Apr 2012
1 answer
418 views
I am building a Nested Detail grid programmatically in code behind only.
Sometimes the parent rows will have nested child data and sometimes they wont.

It appears that by default the details GridTableView is binding to the entire dataset of the MasterTable view (several hundred records).
I am using the "GridDetailTableDataBindEventHandler" for the detail grid and "GridNeedDataSourceEventHandler" for the MasterTable View.

Can anyone explain this to me?  Is it by design that the Nested Grid (I can see the datasource "count" as I step through the code - so I know what its doing) but it doesn't make any sense.

I did find something that (perhaps) states that this is by design - but its very convoluted and confusing:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/hierarchy/defaultcs.aspx 
"When RadGrid constructs each copy of the detail tables, it assigns its data-source of the grid itself. This is useful when the data source is a DataSet containing all the detail table data. Using the DetailTableDataBind() method, you can obtain the instance of the DataSet from the DataSource property of the detail table that is an argument of the event handler (referred to as e.DetailTable). Prior to rebinding MasterTableView or any detail tables, RadGrid fires NeedDataSource event, so the developer can assign a DataSource. Note that it will be fired only once for a group of detail tables and only if the DataSource of RadGrid is not already assigned."

My approach has been to pass 'dummy' values of zero to the datasource if there shouldn't be any nested data - very clunky and not what I was looking for...

my code behind (pertinent stuff only) is below:

// build the grids MasterTableView in OnInit (this sits in a SharePoint 2010 webpart)
                _radGridViewSearch = new Telerik.Web.UI.RadGrid();
                // advanced data filtering
                _radGridViewSearch.NeedDataSource += new GridNeedDataSourceEventHandler(radGridViewSearch_NeedDataSource);               
                _radGridViewSearch.Skin = "Sunset";
                _radGridViewSearch.AutoGenerateColumns = false;
                _radGridViewSearch.AllowPaging = true;
                _radGridViewSearch.AllowSorting = true;
                _radGridViewSearch.PagerStyle.Mode = GridPagerMode.Slider;
                _radGridViewSearch.PageSize = 25;
                _radGridViewSearch.AllowFilteringByColumn = true;
                // per telerik: Depending on the data source, the filtering may be case-sensitive or case-insensitive. You can control this behavior using the GroupingSettings-CaseSensitive property
                _radGridViewSearch.GroupingSettings.CaseSensitive = false;               
                // per telerik: In some .NET 3.5 scenarios you should also turn off the Linq expressions - EnableLinqExpressions="false"
                _radGridViewSearch.EnableLinqExpressions = false;
                _radGridViewSearch.MasterTableView.TableLayout = GridTableLayout.Auto;
 
// build the detail tableview - if the report needs one               
                if (_genReport.HasDetailsView)
                {
                     
                    // use 'ServerBind' so that the DetailTableDataBind event fires immediately after the corresponding parent item is bound                   
                    // Assign the DetailTableDataBind event handler to the grids nested matters              
                    _radGridViewSearch.DetailTableDataBind += new GridDetailTableDataBindEventHandler(_radGridViewSearch_DetailTableDataBind);
                    _radGridViewSearch.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerBind;                   
                    _detailsView = new GridTableView();
                    _detailsView.HierarchyLoadMode = GridChildLoadMode.ServerBind;
                    _detailsView.AllowPaging = false;
                    _detailsView.AllowSorting = false;
                    _detailsView.AllowFilteringByColumn = false;
                    _detailsView.Width = Unit.Percentage(95);                   
                    _detailsView.HorizontalAlign = System.Web.UI.WebControls.HorizontalAlign.Right;                   
                    _radGridViewSearch.MasterTableView.DetailTables.Add(_detailsView);                   
                     
                }
void _radGridViewSearch_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
        {
            try
            {
                // grab the 'parent item'
                GridDataItem targetParentItem = (GridDataItem)e.DetailTableView.ParentItem;
                int targetParentMatterID = 0;
                string targetChildMatter = "0";
                _lionRepository = new LionBCSRepository();
                // first, prep the parent matter ID and make sure we have something that we can work with
                if (!string.IsNullOrEmpty(Convert.ToString(targetParentItem["MatterID"].Text))
                    && (int.TryParse(targetParentItem["MatterID"].Text, out targetParentMatterID)))
                {
                    // next, prep the related matter ID and make sure we have something that we can work with                   
                    if (!string.IsNullOrEmpty(Convert.ToString(targetParentItem["RelatedMatter"].Text))
                        && !string.Equals(" ", Convert.ToString(targetParentItem["RelatedMatter"].Text), StringComparison.OrdinalIgnoreCase))
                    {
                        // once we're here we know that we have something to work with for both the parent and child matters                       
                        targetChildMatter = targetParentItem["RelatedMatter"].Text;
                        // setup the datasource                        
                        e.DetailTableView.DataSource = _lionRepository.GetRelatedMatters(targetChildMatter, targetParentMatterID);
                    }
                    else
                    {
                        e.DetailTableView.DataSource = _lionRepository.GetRelatedMatters(targetChildMatter, targetParentMatterID);
                    }
                }
                else
                {
                    e.DetailTableView.DataSource = _lionRepository.GetRelatedMatters(targetChildMatter, targetParentMatterID);
                }
            }
            catch (Exception ex)
            {
                LionExceptionLogging.LogException("WebParts", string.Format("LION SS exception at _radGridViewSearch_DetailTableDataBind: {0} Details: {1}", ex.Message, ex.InnerException));
                this._LitError.Visible = true;
                this._LitError.Text += ex.Message;
            }
        }
Vasil
Telerik team
 answered on 30 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?