Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
204 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
189 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
93 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
279 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
100 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
287 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
199 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
3 answers
198 views
Hi,

Thanks in advance for any help. This is going to basically decide if I can use the Telerik controls for a big project I am working on (and thus, whether or not we buy licenses).. So any help is greatly appreciated!

What I want to do is dynamically add docks to a dock zone, and then add child controls into these docks based upon user selection. I have followed along with the example @ http://www.telerik.com/help/aspnet-ajax/dock_dockwidgets.html and I have this basically working. However, the problem that I am running into is that I cannot seem to get those child components to persist. Since all of the dock actions do an ajax postback, I end up losing all but my last dock's child controls.

Essentially I want to be able to do these steps:
1. Click a button/linkbutton to dynamically create a dock within a dockzone.
2. Create child controls within that new dock, type depending upon which button was clicked,
3. Continue steps 1-2 until the user has added all of the docks they need (these correspond to fields for a database table).
4. The user should be able to go through the docks and set values into the various child controls and then be able to submit it to the server where I can then access all the various controls and process it from there.

It is the child control persistence that has me stumped.

I hope my explanation makes sense; I'm new to the Telerik suite of tools and still finding my way around. Any help or example code (even a very simple example) would be massively appreciated. I might even send you a cookie! :)

Thanks in advance!
Pero
Telerik team
 answered on 25 Nov 2009
2 answers
110 views
I'm sure that this will sound like a ridiculous question to experienced c# programmers, but here goes.  I would like to be able to dynamically create splitter panels from database table entries, but cannot name the new instance of the RadSlidingPlane class as the correct type.  The logic of what I want to do is below. 

 

 

_conn.Open();

 

SqlCommand command = new SqlCommand("SELECT ID,TabTitle,Description FROM WidgetTypes", _conn);

 

 

SqlDataReader widgettypelist = command.ExecuteReader();

 

 

if (widgettypelist.HasRows)

 

{

widgettypelist.Read();

 

 

RadSlidingPane "SlidingPane" + widgettypelist["ID"].ToString() = new RadSlidingPane();

 

SlidingPaneX.Scrolling =

SplitterPaneScrolling.None;

 

SlidingPaneX.Title = widgettypelist[

"TabTitle"];

 

Radslidingzone1.Controls.Add(SlidingPaneX);

 

WidgetGalleryControl1.WidgetType = widgettypelist[

"ID"];

 

}

_conn.Close();

All help greatfully received.

Paul
Top achievements
Rank 1
 answered on 25 Nov 2009
2 answers
225 views

In my project I need to set right to left at page load time. Is there a way to access RADControl collection on current page so I can use a general function to set all controls’ RTL property?

Here is my unsuccessful code snippet:

 

        protected void Page_Load(object sender, EventArgs e)  
        {  
            //testing Right-to-left layout for Rad Control  
            SetRControlsRightToLeftLayout(thistrue);  
 
        }  
 
        protected void SetRControlsRightToLeftLayout(Control context, bool isSetRightToLeft)  
        {  
            foreach (Control c in context.Controls)  
            {  
                Control rControl = c as Control;//RadControl rControl = c as RadControl;  
                if (rControl != null)  
                {  
                    if (rControl.GetType().ToString().StartsWith("Telerik.Web.UI",StringComparison.Ordinal))  
                    {  
                        System.Diagnostics.Debug.WriteLine(rControl.GetType());  
                    }  
                    if (rControl.HasControls())  
                    {  
                        SetRControlsRightToLeftLayout(rControl, isSetRightToLeft);  
                    }  
                }  
            }  
        } 

Waleed Seada
Top achievements
Rank 2
 answered on 25 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?