Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
I've went through the 3 steps here:

http://www.telerik.com/support/kb/article/b454K-eda-b454T-kb-b454c-kb.aspx

Still, I get a permission denied error when I try to modify or delete any files using the treeview.  I have it working in other scenarios, but I think my permissions may be fouled up, or I'm overlooking something.  The full error is:

Access to the path is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Access to the path is denied.

Source Error:

Line 412:            string dir = txtFile.Text;
Line 413: System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(dir);
Line 414: di.Attributes = FileAttributes.Normal;
Line 415: if (di.Exists)
Line 416: {

Erjan Gavalji
Telerik team
 answered on 25 Jul 2008
3 answers
488 views
Hi. I have a problem with handling onchange event in input element of RadComboBox. My custom combobox control derived from RadComboBox and overrides OnLoad server event:

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.Page.ClientScript.RegisterStartupScript(this.GetType(),"blabla","$get('"+ this.ClientID + "_Input').onchange=\"AfterUpdate('" + this.ClientID + "')\";",true);
}

In resulted html I see:

<INPUT class="rcbInput" id="ctl00_hldrMain_ctl00_cmbDirectors_Input" style="DISPLAY: block" onchange="AfterUpdate('ctl00_hldrMain_ctl00_cmbDirectors')" name="ctl00$hldrMain$ctl00$cmbDirectors_Input" autocomplete="off" value="" />

onchange present but does not work. Please help.

Anatoly
Top achievements
Rank 1
 answered on 25 Jul 2008
3 answers
442 views
Hi Guys,

I am having a hard time putting an asp:CheckBox control inside of a GridTemplateColumn and subscribing to the CheckedChanged event for it... The checkbox posts back when I click on it, but the event never gets fired...

Here's the code:

<telerik:RadGrid ID="rgPublicFields" runat="server" Skin="Vista"> 
    <MasterTableView AutoGenerateColumns="false"> 
        <Columns> 
            <telerik:GridBoundColumn UniqueName="PublicFieldID" DataField="PublicFieldID" Visible="false"></telerik:GridBoundColumn> 
             
            <telerik:GridTemplateColumn HeaderText="Include" UniqueName="Active"> 
                <ItemTemplate> 
                    <asp:CheckBox ID="cbInclude" runat="server" Checked='<%# System.Convert.ToBoolean(int.Parse(Eval("Active").ToString())) %>' Text='<%# Eval("PublicFieldID") %>' AutoPostBack="true" OnCheckedChanged="cbInclude_CheckedChanged" /> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
             
            <telerik:GridBoundColumn HeaderText="Field Name" UniqueName="FieldName" DataField="FieldName"></telerik:GridBoundColumn> 
             
            <telerik:GridTemplateColumn HeaderText="Display As" UniqueName="DisplayName"> 
                <ItemTemplate> 
                    <asp:TextBox ID="tbDisplayName" runat="server" Text='<%# Eval("DisplayName") %>'></asp:TextBox> 
                    <asp:Button ID="btnUpdate" runat="server" CommandName="UpdateDisplayName" CommandArgument="" Text="Update" /> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 

And the codebehind:

        protected void Page_Load(object sender, EventArgs e) 
        { 
            DataSet ds = new DataSet(); 
            ds.Tables.Add(); 
 
            ds.Tables[0].Columns.Add("PublicFieldID"); 
            ds.Tables[0].Columns.Add("Active"); 
            ds.Tables[0].Columns.Add("FieldName"); 
            ds.Tables[0].Columns.Add("DisplayName"); 
 
            ds.Tables[0].Rows.Add(new object[] { 1, 1, "Email", "Email Address" }); 
 
            rgPublicFields.DataSource = ds; 
            rgPublicFields.DataBind(); 
        } 
 
        protected void cbInclude_CheckedChanged(object sender, EventArgs e) 
        { 
            CheckBox cb = (CheckBox)sender; // I have a breakpoint set here that never stops 
 
 
        } 

If anyone could help me identify why this is happening, it would be greatly appreciated.
Shinu
Top achievements
Rank 2
 answered on 25 Jul 2008
1 answer
176 views
I am trying to implement a CardView Grid  Programmaticly using an ITemplate and OnDemand Datasourcing and run into an error telling me that the datasource is null when I try to expand a detail table.  I went ahead and implement a null check into the template to bypass the error but when this occurs EVERY table except for the one I expanded is empty.  Below is my Programmic ITemplate for the Cardivew along with my RadGrid.  Anyone have any ideas?

        public RadGrid SearchGrid  
        {  
            get  
            {  
                if (m_radGrid == null)  
                {  
                    m_radGrid = new RadGrid();  
                    m_radGrid.ID = "searchGrid";  
                    m_radGrid.Skin = "Office2007";  
 
                    m_radGrid.ClientSettings.Resizing.AllowColumnResize = true;  
                    m_radGrid.ClientSettings.AllowColumnsReorder = true;  
 
                    //No Records Template  
                    m_radGrid.MasterTableView.NoRecordsTemplate = new NoRecordsTemplate();  
 
                    //Row Format Template  
                    if (m_view.RowFormat)  
                    {  
                        m_view.AllowSelect = false; //Don't Allow Selects on Row Format  
                        m_radGrid.MasterTableView.ItemTemplate = new RowFormat();  
                    }  
 
                    //Select Row Option  
                    if (m_view.AllowSelect)  
                    {  
                        m_radGrid.AllowMultiRowSelection = true;  
                        m_radGrid.ClientSettings.Selecting.AllowRowSelect = true;  
                        m_radGrid.ClientSettings.Selecting.EnableDragToSelectRows = true;  
                        m_radGrid.MasterTableView.Columns.Add(SelectColumn);  
                    }  
 
                    //Set options to allow Paging  
                    m_radGrid.AllowPaging = true;  
                    m_radGrid.PageSize = m_view.PageSize;  
                    m_radGrid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;  
 
                    m_radGrid.MasterTableView.HeaderStyle.CssClass = "GridMasterHeader";  
 
                    //Set options to enable Group-by   
                    m_radGrid.AllowSorting = true;  
                    m_radGrid.GroupingEnabled = true;  
                    m_radGrid.ShowGroupPanel = false;  
                    m_radGrid.ClientSettings.AllowDragToGroup = true;  
                    m_radGrid.ClientSettings.AllowColumnsReorder = true;  
 
                    //Heirachrcal data Demo  
                    var tableViewArea = new GridTableView(m_radGrid);  
                    tableViewArea.DataSource = msdl;  
                    tableViewArea.HierarchyDefaultExpanded = false;  
                    tableViewArea.Width = Unit.Percentage(100);  
                    tableViewArea.HierarchyLoadMode = GridChildLoadMode.Client;  
                    tableViewArea.ItemTemplate = new RowFormat();  
                    m_radGrid.MasterTableView.DetailTables.Add(tableViewArea);  
 
                    //Data Sources  
                    m_radGrid.NeedDataSource += NeedDataSource;  
                    m_radGrid.DetailTableDataBind += DetailTableDataBind;  
                }  
                return m_radGrid;  
            }  
 
            set { m_radGrid = value; }  
        } 


        public class RowFormat : ITemplate  
        {  
            public void InstantiateIn(Control container)  
            {  
                var items = ((GridTableView)(container.Parent.NamingContainer));  
                var RowIndex = ((GridDataItem)(container.NamingContainer)).ItemIndex;  
                if (items.DataSource != null)  
                {  
                    var o = ((ArrayList) items.DataSource)[RowIndex];  
                    var properties = o.GetType().GetProperties();  
 
                    var tbl = new Table {CssClass = "CardviewTable"};  
 
                    foreach (var p in properties)  
                    {  
                        var row = new TableRow {CssClass = "CardviewRow", BorderWidth = 0};  
                        var cell1 = new TableCell {CssClass = "CardviewCol1", BorderWidth = 0};  
                        var cell2 = new TableCell {CssClass = "CardviewCol2", BorderWidth = 0};  
 
                        var col1 = new Label {Text = p.Name};  
                        var col2 = new Label {Text = p.GetValue(o, null).ToString()};  
 
                        cell1.Controls.Add(col1);  
                        cell2.Controls.Add(col2);  
                        row.Controls.Add(cell1);  
                        row.Controls.Add(cell2);  
                        tbl.Controls.Add(row);  
                    }  
                    container.Controls.Add(tbl);  
                }  
            }  
        } 

Yavor
Telerik team
 answered on 25 Jul 2008
1 answer
105 views
I can't seem to figure this out. 

  I have a Grid with a GridCheckBoxColumn.  It is bound to a Boolean field in a table.

  I've enabled the checkbox in the ItemDataBound event.

  The Grid has paging turned on. 

  When a user selects a checkbox, and moves to the next page.  How do I get the values from the row that was checked? 

  I tried using the ItemEvent event and went so far as to iterate through all the items, but it only tells me the original status of the checkbox field.  It doesn't tell me that the user changed a checkbox.

  How do I find this?  I've been reading tons of documentation, but I can't seem to find what I'm after.






Thanks
Kevin
Vlad
Telerik team
 answered on 25 Jul 2008
1 answer
112 views

I am running into this issue which I am unable to resolve. Within an aspx page (that uses a master page), I have a slider control (Test1). The page is initially presented with Test1. But once it is undocked (Test1 moves up and hides), clicking on Test1 doesn't display it again.

Please help. I have provided the code below.
*****************************************
******************ASPX******************
*****************************************

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <font class="MainPageTitleCORP">Submission Tracking</font>
    <br /><br />

<RadSplit:RadSplitter ID="RadSplitter2" runat="server" Width="1200" Height="600">

    <RadSplit:RadPane ID="MiddlePane1" runat="server" Scrolling="None">
        <RadSplit:RadSplitter ID="RadSplitter1" runat="server" Height="400" Width="700" Orientation="Vertical">
            <RadSplit:RadPane ID="RadPane1" runat="server" Height="22" Scrolling="none" Locked="true">
                <RadSplit:RadSlidingZone id="RadSlidingZone1" runat="server" SlideDirection="Bottom">
                    <RadSplit:RadSlidingPane id="RadSlidingPane1" runat="server" Height="150">

Test1
                    </RadSplit:RadSlidingPane>
                </RadSplit:RadSlidingZone>
            </RadSplit:RadPane>
Test2
            <RadSplit:RadPane ID="Grid" runat="server">
        </RadSplit:RadPane>
</RadSplit:RadSplitter>
</RadSplit:RadPane>
</RadSplit:RadSplitter>

</asp:Content>

*****************************************
****************VB CODEBEHIND*********
*****************************************

        RadSplitter1.Width = Unit.Percentage(100)
        RadSplitter1.Orientation = Telerik.WebControls.RadSplitterOrientation.Horizontal

        RadPane1.Width = Unit.Pixel(55)
        RadPane1.Style("height") = "auto"
        RadPane1.Scrolling = Telerik.WebControls.RadSplitterPaneScrolling.None

        RadSlidingZone1.ClickToOpen = True
        RadSlidingZone1.Style("height") = "auto"
        RadSlidingZone1.Width = Unit.Pixel(22)

        RadSlidingPane1.EnableResize = False
        RadSlidingPane1.Width = Unit.Pixel(252)
        RadSlidingPane1.Height = Unit.Pixel(210)
        RadSlidingPane1.Title = "Search Criteria"
        RadSlidingPane1.Scrolling = Telerik.WebControls.RadSplitterPaneScrolling.X

        RadSlidingZone1.DockedPaneId = RadSlidingPane1.ClientID

R N
Top achievements
Rank 1
 answered on 25 Jul 2008
0 answers
125 views
I am using ExtJS's ViewPort and putting a RadMenu into the North region (header).  Dropdown menus are hidden behind the panel the RadMenu is in.  Is there a way to fix this?  Is RadMenu rendered with absolute positioning?  I tried setting the z-index but doesn't seem to work. 
Jacky Chau
Top achievements
Rank 1
 asked on 24 Jul 2008
0 answers
90 views

EDIT: This has been solved by adding:

<link href="Skins/Office2007/Menu.Office2007.css" rel="stylesheet" type="text/css" />

When I click the filter icon on my grid, the menu pops up and I see a list of items, but there is no background to the menu.

My grid has EnableEmbeddedSkins set to "false".  Whenever I set it to "true" it works, so the problem has something to do with that.

I am using the Office2007 skin, and I have all of the Office2007 images and the Office2007 CSS file inside the correct directory:

mySite/Skins/Office2007/

Thanks for your help.


Ed Bassin
Top achievements
Rank 1
 asked on 24 Jul 2008
4 answers
388 views
Hi,

 I using Vs2008/3.5 framework and creating new web application and when  i tested a Telerik example code in that solutions,i'm getting a script error that RadAjaxManager is null when i use the following code.

  $find(

"<%= RadAjaxManager1.ClientID %>").ajaxRequest();

even i replaced web.config with Telerik example web.config.still i m getting error. 

what could be the reason?

Lyle Groome
Top achievements
Rank 2
 answered on 24 Jul 2008
2 answers
190 views
I've created the grid on runtime with code below in an acsx file.  whenever I am inserting a new record it will recognize the new record being inserted but the grid will not update the database.

But everytime I click the refresh button on the commandline it actually refreshes my grid with the updated data.

Rebind() does not work if you bind your datasource manually, my company does not allow any drag and drop datasources.
Vladimir
Top achievements
Rank 1
 answered on 24 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?