Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
It shows up on the properties page in VS, and you can set it either statically or from your program, but it doesn't seem to do anything.  There is no error message and files appear to upload, but they are not saved.  It looks like you have to use TargetFolder instead.
T. Tsonev
Telerik team
 answered on 19 May 2010
2 answers
132 views
I am having an issue with programmatically hiding and showing command item settings. Below is the code I am using. The problematic item is the ShowToExportToCsvButton. The goal is that if there are no items then I do not want to show the export to csv button. If there are then show it. The problem is that whichever comes first then that is how it stays. For example if there not records then it does not show and no matter if it does get records in a refresh the button will still not show despite the code setting it to true. Also, if I put in the html markup to show it then it always shows up and I cannot hide it. I am using an ajaxified grid. I am doing this in VS Studio 2010 using 3.5 as the target with RadControls Q1 2010 NET35 v. 2010.1.415.35. Its worth noting that this same thing happens if I try to hide and show the footer with similar code. Is there another place in the process of the grid I should be doing this?

        protected void rgForecastSummaryView_Values_DataBound(object sender, EventArgs e)  
        {  
            if (rgForecastSummaryView_Values.Items.Count > 0)  
            {  
                GridFooterItem footerItem = (GridFooterItem)rgForecastSummaryView_Values.MasterTableView.GetItems(GridItemType.Footer)[0];  
 
                footerItem["MaterialGroup"].Text = "Grand Totals:";  
                footerItem["MaterialGroup"].Font.Bold = true;  
 
                footerItem["PriorYear"].Text = priorYearTotal.ToString();  
                footerItem["PriorPeriod"].Text = priorPeriodTotal.ToString();  
                footerItem["AccRepForecast"].Text = accountForecastTotal.ToString();  
                footerItem["MgmtAllocation"].Text = managmentAllocationTotal.ToString();  
                footerItem["Difference"].Text = differenceTotal.ToString();  
                 
                rgForecastSummaryView_Values.ShowGroupPanel = true;  
                rgForecastSummaryView_Values.MasterTableView.CommandItemSettings.ShowExportToCsvButton = true;  
 
                GridCommandItem commandItem = (GridCommandItem)rgForecastSummaryView_Values.MasterTableView.GetItems(GridItemType.CommandItem)[0];  
                LinkButton lnkbtn1 = (LinkButton)commandItem.FindControlRecursive("InitInsertButton");  
                lnkbtn1.Visible = true;  
 
                ramForecastSummaryView_AjaxManager.AjaxSettings.AddAjaxSetting(lnkbtn1, rgForecastSummaryView_Totals, ralpForecastSummaryView_LoadingPanel);  
                ramForecastSummaryView_AjaxManager.AjaxSettings.AddAjaxSetting(lnkbtn1, rgForecastSummaryView_Values, ralpForecastSummaryView_LoadingPanel);  
            }  
            else 
            {  
                rgForecastSummaryView_Values.ShowGroupPanel = false;  
                rgForecastSummaryView_Values.MasterTableView.CommandItemSettings.ShowExportToCsvButton = false;  
                  
                GridCommandItem commandItem = (GridCommandItem)rgForecastSummaryView_Values.MasterTableView.GetItems(GridItemType.CommandItem)[0];  
                LinkButton lnkbtn1 = (LinkButton)commandItem.FindControlRecursive("InitInsertButton");  
                lnkbtn1.Visible = false;  
            }  
        } 
James Daresta
Top achievements
Rank 1
 answered on 19 May 2010
3 answers
222 views
I have a ComboBox that appears in a RadWindow.

The Combo is near to the right hand edge and the DropDownWidth property is set to a value that is greater than the width of the control.

I was rather hoping that the DropDown would shift left to avoid the screen boundary, but as you can see from the attached, it doesn't.

-- 
Stuart
Kalina
Telerik team
 answered on 19 May 2010
1 answer
768 views
Hi there

I'm struggling to find a way to get a list of all the selected items inside a CheckBoxList nested inside a grid's FormTemplate in the grid's Updatecommand.

I manage to get the values of all the other controls by using the following code:

String companyNameKey = Page.Request.Form.AllKeys.First(key => key.Contains("TextBoxCompanyName"));
String CompanyName = Page.Request.Form[companyNameKey];

But this does not seem possible for a CheckBoxList.

How should I do this?

Danielle





Princy
Top achievements
Rank 2
 answered on 19 May 2010
1 answer
182 views
In scheduler timeline view, is it possible that custom date in y coordinate. eg,

                                  03-May-2010               05-May-2010               10-May-2010         11-May-2010
-------------------------------------------------------------------------------------------------------------------------------
Meeting Room 1
-------------------------------------------------------------------------------------------------------------------------------
Meeting Room 2
-------------------------------------------------------------------------------------------------------------------------------
I just want to show, predefined date in y coordinate.

Thanks,




Veronica
Telerik team
 answered on 19 May 2010
1 answer
100 views
We have upgraded our Server to the latest version( Version: 2010.1 415 (Apr 15, 2010) of "RadControls for ASP.NET AJAX"

Now in Visual Studios 2008, How do I get the RadControl tools to show up in my toolbox so that I can use these old tools.

We were last using "RadControls for ASP.NET Q2 2008"
Sebastian
Telerik team
 answered on 19 May 2010
3 answers
176 views
Hello,

I just started working with the RadGrid and I have a question. Is it possible to bind a detail table to the grouping of the mastertable?
I'll explain my question with an example. Let's say we have following mastertable:

Order ID: 1 (grouping)
    record A 
        detail **
    record B
        detail **
    record C
        detail **
Order ID: 2 (grouping)
    record X
        detail --
        detail --
    record Y
        detail --
        detail --

Order ID: 3 (grouping)
    record Z

You'll notice that the records from the detail table are the same for every record under a certain group (e.g. Order ID 1).
Is it possible to let the detail table expand only once for each group, so to have following:

Order ID: 1 (grouping)
    record A 
    record B
    record C
        detail **

Thanks in advance for suggestions!!

Marc

Veli
Telerik team
 answered on 19 May 2010
13 answers
185 views
Hello Telerik,
                I am having nested grid which is also having two child grid placed in each tab section. The grid is also having the scrolling feature.

If I expand the last row parent item to view its corresponding child items, the grid focus does not go to my expanded child item. I need to scroll down  then only i can view the expanded child item.

When i expand any of parent row item at any position to see its child item, the grid need to automatically focus to last expanded item, So that we do not need to scroll down and up to view the expanded item.
I hope you could understand my scenario.  So please let me the possibilities of the scenario.

Regards,
Chandran
Radoslav
Telerik team
 answered on 19 May 2010
2 answers
119 views
Hi all,

I am confuse when reading ms-help://telerik.aspnetajax.radcontrols.2010.Q1/telerik.aspnetajax.radgrid.2010.Q1/custom-option-for-filtering.html help file.

I have 3 columns (name=text,startdate=datetime,enddate=datetime).  The name column is set to VaryByDataType. On the startdate, I want the filter item nofilter, equalto and greaterthanorequalto.  For the enddate, I would like nofilter, equalto and lessthanorequalto.

I can't seem to get it right without affecting the other columns.
Protected Sub RadGrid1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.Init         
        Dim menu As GridFilterMenu = RadGrid1.FilterMenu 
        Dim i As Integer = Menu.Items.Count - 1 
        While i >= 0 
            If menu.Items(i).Text = "NoFilter" Or menu.Items(i).Text = "Contains" Or menu.Items(i).Text = "GreaterThanOrEqualTo" Then 
                'menu.Items.RemoveAt(i) 
            ElseIf menu.Items(i).Text = "Custom" Then 
                menu.Items(i).Text = "LessThanOrEqualTo" 
            Else 
                menu.Items.RemoveAt(i) 
            End If 
            System.Math.Max(System.Threading.Interlocked.Decrement(i), i + 1) 
        End While 
 
    End Sub 


Thanks,
Khanh
Khanh
Top achievements
Rank 1
 answered on 19 May 2010
1 answer
61 views
I changed the Location propertyies's Add,Clear,.Delete,Remove and Select.But it displays only part of the chinese words.I don't know how to fix it.Anybody here can give some advices? Thanks! There is a attachment which points the problem.

<telerik:RadUpload ID="RadUpload1" runat="server" ToolTip="上传附件" Width="100%"  
                        AllowedFileExtensions="增加附件"  CssClass="RadUploadFont" > 
                        <Localization Add="添加附件" Clear="清空" Delete="删除" Remove="去除" Select="选择" /> 
                    </telerik:RadUpload> 



Kamen Bundev
Telerik team
 answered on 19 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?