Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
418 views
Hi,
I have 2 levels(Master and Details) in my grid.
Both levels should have check boxes.
I would like check all 2nd level(details table) the check boxes using c# server side code.
Could any one help me out..?

Thanks
 
Shinu
Top achievements
Rank 2
 answered on 25 Nov 2009
2 answers
166 views
Whenever a panel is opened using an animation effect, like Linear, the panel stutters at first - it flashes very quickly as if it were not supposed to animate and then resumes the normal animation from where it would have been had it not stuttered. Closing the panel with animation doesn't have any negative effects.

Any ideas what might cause this? My assumption is that is has to do with the way I'm declaring the panel - through code.

radAccordion = new RadPanelBar();  
radAccordion.ID = "RadPanelBar1";  
radAccordion.Skin = RadSkin;  
radAccordion.Width = new Unit(500, UnitType.Pixel);  
radAccordion.ExpandMode = PanelBarExpandMode.MultipleExpandedItems;  
radAccordion.CollapseAnimation.Type = AnimationType.Linear;  
radAccordion.CollapseAnimation.Duration = 200;  
radAccordion.ExpandAnimation.Type = AnimationType.Linear;  
radAccordion.ExpandAnimation.Duration = 200;  
radAccordion.EnableViewState = false;  
 
...  
 
radAccordion.DataSource = listItems;  
radAccordion.DataTextField = TitleField  
radAccordion.DataFieldID = "ID";  
radAccordion.DataFieldParentID = GroupByField  
radAccordion.DataBind();  
 
...  
 
radPanel = new RadAjaxPanel();  
radPanel.ID = "RadPanel1";  
radPanel.LoadingPanelID = "RadLoadingPanel1";  
radPanel.Controls.Add(radAccordion);  
 
radLoadingPanel = new RadAjaxLoadingPanel();  
radLoadingPanel.ID = "RadLoadingPanel1";  
radLoadingPanel.Transparency = 30;  
radLoadingPanel.BackColor = System.Drawing.Color.AliceBlue;  
 
Controls.Add(radPanel);  
Controls.Add(radLoadingPanel); 


All of this is done inside of a MOSS Webpart during the OnLoad event.
Paul
Telerik team
 answered on 25 Nov 2009
3 answers
238 views
Right now I have the below code:

<telerik:GridTemplateColumn UniqueName="DetailArrow" ItemStyle-Width="250"> 
    <ItemTemplate> 
        <telerik:RadMenu ID="menuTools" runat="server" Flow="Horizontal" OnInit="menuTools_Init" OnItemClick="menuTools_Click" EnableEmbeddedSkins="true" EnableAjaxSkinRendering="true" CssClass="menuZ"> 
            <Items> 
                <telerik:RadMenuItem Value="Edit" ImageUrl="/images/Edit.png" ToolTip="Edit this criteria" /> 
                <telerik:RadMenuItem Value="Delete" ImageUrl="/images/trash.png" ToolTip="Remove this criteria" /> 
                <telerik:RadMenuItem Value="Notify" ImageUrl="/images/NotifyOff.png" ToolTip="Turn the notify on" OnLoad="NotifyMenuItem_Init" /> 
            </Items> 
        </telerik:RadMenu> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 
 

I need to show Images in my grid row that performs the above functions (Edit, Delete, Notify) and some others that I took off to keep it short. What is the best way to do this?

Some of my buttons call JavaScript to open a radWindow. Some of them call a server method to delete or change the record somehow. To load a Radmenu on all of these records seem crazy.. Any ideas?
Shinu
Top achievements
Rank 2
 answered on 25 Nov 2009
3 answers
213 views
hi all i have got the fileexplorer rad control installed on a site i work with everytime i try to upload a file or delete i get "the selected folder cannot be deleted because the application does not have enough permissions" i have given the network service full control over the folders where the fileexplorer files are and also to the folders i want to upload to.

anyone any ideas for me to try im at my witts end lol.

thanks
kevin
Fiko
Telerik team
 answered on 25 Nov 2009
2 answers
196 views
Hi ,

We are using RadGrid ,and have an requirement like merging column headers. trying to merge column headers in Itemcreated event,but we are missing all the grid functionality like grouping,reordering,sorting,filtering.I have attached the screenshot.
Please help us to fix this.Very Urgent..

Thanks in Advance,
Bhaskar.
bhaskar
Top achievements
Rank 1
 answered on 25 Nov 2009
1 answer
97 views

Rad editor is having problem with firefox and saffari . It is not working as expected.

Rad editor for share point column is not reflecting in share point list with multi line text box  - still showing as sharepoint editor.

We have actived both features of Rad for sharepoint list and for browser.

Based on the USer and Hardware we do experience strange behaviour in the Rad editor.

Any help will be appreciated .



Thanks and Regards,

----------------------------------------------------------

Velu

Project Delivery Manager

Phone :  (+91-80) 40767777 Ext-302

Mobile: +91 9739979692

Optimus BT | Bangalore

Microsoft Certified Technology Specialist - Share Point.

www.optimusbt.com

   
Stanimir
Telerik team
 answered on 25 Nov 2009
2 answers
287 views
Hi All,

Please any one send me a sample in c# for working with footer template in grid at server side.

Like adding footer template for grid at server side which should contain drop down and text boxes for some columns. 

Thanks in advance.

 
pradeep k
Top achievements
Rank 1
 answered on 25 Nov 2009
1 answer
104 views

I am trying to create a hierarchy grid programmatically based on a xml file. I am successful in adding three hierarchies. It seems that there is some problem in the way I added the third hierarchy because the properties (font color, bold) i applied are not showing up in third hierarchy (strangely it shows up in second hierarchy and second hierarchy is created by same code block that created third hierarchy) . Also, when I added the fourth hierarchy it throws error in 'DetailTableDataBind' because it cannot find the datakey values in the third hierarchy.  The code snippet is here.



        public void GenerateGrid(RadGrid radGrid1) 
        {
            //loading xml file
            chartXml = XElement.Load(FilterPath, LoadOptions.PreserveWhitespace); 
            title = chartXml.Attribute("title").Value; 
 
            radGrid1.MasterTableView.PageSize = 10; 
 
            foreach (XElement chartElement in chartXml.Elements()) 
            { 
                if (chartElement.Name.LocalName != null && chartElement.Name.LocalName == "Filters") 
                { 
                    if(chartElement.Attribute("referencePath") != null) 
                        referencePath = chartElement.Attribute("referencePath").Value; 
 
                    bool topFilter = true; 
 
                    foreach (XElement filterElement in chartElement.Elements()) 
                    { 
                        if (topFilter) 
                        { 
                            radGrid1.MasterTableView.Width = Unit.Percentage(100); 
                            radGrid1.MasterTableView.BorderWidth = 2; 
                            radGrid1.MasterTableView.BorderColor = System.Drawing.Color.Red; 
 
                            if(filterElement.Attribute("name") != null) 
                                radGrid1.MasterTableView.Name = filterElement.Attribute("name").Value;                           
 
                            if(filterElement.Attribute("dataKeyNames") != null) 
                                radGrid1.MasterTableView.DataKeyNames = filterElement.Attribute("dataKeyNames").Value.Split(','); 
 
                            string[] columnNames = filterElement.Attribute("columns").Value.ToString().Split(','); 
                            foreach (string columnName in columnNames) 
                            { 
                                GridBoundColumn boundColumn = new GridBoundColumn(); 
                                radGrid1.MasterTableView.Columns.Add(boundColumn); 
                                boundColumn.UniqueName = columnName; 
                                boundColumn.DataField = columnName; 
                                boundColumn.HeaderText = columnName;                                 
                            } 
 
                            lastAddedDetailTable = radGrid1; 
                            topFilter = false; 
                        } 
                        else 
                        { 
                            GridTableView tableView = new GridTableView(radGrid1); 
 
                            tableView.Width = Unit.Percentage(100);                          
                            tableView.Font.Bold = true; 
                            tableView.BorderWidth = 2; 
                            tableView.BorderColor = System.Drawing.Color.Red; 
 
                            if (filterElement.Attribute("name") != null) 
                                tableView.Name = filterElement.Attribute("name").Value; 
 
                            if (filterElement.Attribute("dataKeyNames") != null) 
                                tableView.DataKeyNames = filterElement.Attribute("dataKeyNames").Value.Split(','); 
 
                            if (lastAddedDetailTable.ID == "RadGrid1") 
                            { 
                                radGrid1.MasterTableView.DetailTables.Add(tableView); 
                            } 
                            else 
                            { 
                                ((GridTableView)lastAddedDetailTable).DetailTables.Add(tableView); 
                            } 
 
                            string[] columnNames = filterElement.Attribute("columns").Value.ToString().Split(','); 
 
                            foreach (string columnName in columnNames) 
                            { 
                                GridBoundColumn boundColumn = new GridBoundColumn(); 
                                tableView.Columns.Add(boundColumn); 
                                boundColumn.UniqueName = columnName; 
                                boundColumn.DataField = columnName; 
                                boundColumn.HeaderText = columnName;                                 
                            } 
 
                            lastAddedDetailTable = tableView;                            
                        }                        
                    } 
                }                
            } 
        } 

The sample xml file is this.
<?xml version="1.0" encoding="utf-8" ?> 
<Chart title="Customer Order Details"> 
    <Filters referencePath="GetCustomerOrders1"> 
        <Filter name="Customers" dataKeyNames="CustomerId" columns = "CustomerId,CustomerName,CustomerAddres" /> 
        <Filter name="Orders"  dataKeyNames="OrderId" columns = "OrderId,OrderDate,CustomerId" /> 
        <Filter name="OrderDetails" dataKeyNames="ProductId" columns = "ProductId,OrderDetailsId,UnitPrice,ProductName" /> 
        <Filter name="ProductDetails" dataKeyNames="ProductId" columns = "ProductName,ProductDesc,ProductId" /> 
    </Filters> 
</Chart> 


Help appreciated.

Thanks,
Gijo Joseph.
Yavor
Telerik team
 answered on 25 Nov 2009
4 answers
300 views
Hi,

I am going a bit crazy trying to accomplish the following formatting for Excel exports:

1. set row (or cell) height
2. set column width
3. set row (or cell) backcolor and forecolor
4. If using ExcelML, removing the dropdowns from the header row.
5. If using ExcelFormat-html, setting font size (and color).

It seems like there should be a way to do this.  I have tried:
1. Using ExcelML format and setting styles in the ExcelML style events - I can get the backcolor/forecolor changed, but not width or height.
2. Using ExcelFormat=html and trying to set the attributes in the radgrid columns as well as in the ExcelExportCellFormattingEvent.

If I'm missing something or if there is a guide to formatting, please let me know!

I am running into similar problems with PDF export as well.  In fact, I can't seem to get any kind of color styling in PDF.

Thanks much,
Michael

Rosen
Telerik team
 answered on 25 Nov 2009
8 answers
216 views
Hello,

I am replacing my ASP.NET AJAX ModalPopupExtender panels with the RadWindow.

I am attempting to use the 'Border' and 'CssClass' attributes of the RadWindow to create a custom window without the default borders provided with the TitleBar. This would be the equivalent of using a regular Panel and setting its CssClass to define the borders.

I have attempted to set EnableEmbeddedSkins="false", VisibleTitleBar="false", and then set the BorderStyle, BorderWidth, CssClass, etc., to customize the window. Unfortunately this results in a window with no styling or borders at all. I don't want to create a custom skin to achieve a simple CSS-based theme. Is there any way to achieve this?
Georgi Tunev
Telerik team
 answered on 25 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?