Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
162 views
Hi

Please help urgently!

I have been working on a project for many months, the site is live and working fine.
I booted up this morning and tried to add a Telerik control to a page in Visual Studio. 
In design view, nothing happens, in source view, I get the dreaded 'Operation could
not be completed'.

I tried the advice already in the forums, but no solution so far. Work has come to a grinding
halt with Telerik controls.

As a test I then created a new web site using the RadControls template.
When I try to add controls to the default page, I get the same error, so it is not project
dependent apparently.

I guess this may be a vidual studio problem but can anyone tell me how to fix it?
This is not a new installation! Worked fine until today.
Setup is Windows vista ultimate, IIS7, Q2 2009 RadControls, VS 2008.

Please help!

Thanks
Clive


.

Erjan Gavalji
Telerik team
 answered on 06 Aug 2010
1 answer
141 views
hi there,
i'm having a trouble in radtreeview, and i'm so confused about it.
i'm using radtreeview to load data from SQL DB, and checkbox involves.
i have three level of employee (it mean i have 3 level of nodes)  and i display all employees on my radtreeview,
i want to click to checkboxes to select employees id, then insert into my DB.
but, when i click to my employees's level 3, ( it mean : this node at 3th level )
i can not refer to parent of this node ( refer to manager of this employee ) to select  value of node.
can you help me to resolve this proplem.
thanks,
ps: best regards.
this is my code :
AspTree.aspx
--

<

 

div class="center" style="width:500px; height:auto; float:left;">

 

 

 

&nbsp;<br />

 

 

<radt:radtreeview id="RadTreeView1" runat="server" CheckBoxes="True"

 

 

OnNodeClick="NodeClick"

 

 

OnNodeCheck="RadTreeView1_NodeCheck" AfterClientCheck="AfterCheck"

 

 

 

></radt:radtreeview>

 

 

<br />

 

 

<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text=" Cp Nht " />

 

 

</div>

 


--
AspTree.aspx.cs
 ----

RadTreeNode

 

parentNode = node.Parent;

 

 

string PNode = parentNode.Value;

 

#region

 

comment

 

 

if (RadTreeView1.Nodes.FindNodeByValue(PNode).Checked)

 

{
    // do something if parent node checked.

}
-----
Yana
Telerik team
 answered on 06 Aug 2010
2 answers
77 views

I have two radgrids on the same page being populated with data. On each grid I have this setting:
PagerStyle-Position="Bottom"
However, on postbacks it seems that the pager display will appear on the top and bottom of both grids. I don't set this anywhere else in the code. What would cause the property to reset? How can I get it to maintain its value? I can post any code that is needed. Thanks.

 

Pavlina
Telerik team
 answered on 06 Aug 2010
1 answer
147 views
Radsplitter will not take up even half the  height of page.   It is stuck at 400px in height, width is not affected.  I can make it smaller but not bigger.  I would like it ideally to fill 90% of the page.  The splitter has two panes, radlist in one pane and radeditor in the other.  Would like 90% of page width covered by rad splitter, and would like it to stay at that percentage even if the browser dimensions change.

Tried the splitter.resize(x,y) in client side script; again I can't get height over 400px, although I can make it smaller. 

Thank you all in advanced.

Attached is screen shot, and below is aspx file;
<%@ Page Title="NVSS Manuals - Edit" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Edit.aspx.cs" Inherits="NVSS_Manual.Edit" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
 
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
 
    
    </style>
 
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
</telerik:RadScriptManager>
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
</telerik:RadStyleSheetManager>
 
<telerik:RadSplitter ID="RadSplitter1" Runat="server" SplitBarsSize=""
    Width="100%" Height="100%" ResizeMode="Proportional" FullScreenMode="True"
        LiveResize="True" VisibleDuringInit="False">
   <telerik:RadPane ID="RadPane1" Runat="server" Width="20%" Height="100%" >
       <telerik:RadListBox ID="RadListBox1" runat="server" AllowReorder="True"
           AutoPostBack="True" Height="90%"
           onselectedindexchanged="lbManualIndex_SelectedIndexChanged"
           Sort="Ascending" Width="99%"
           AllowDelete="True" AutoPostBackOnDelete="True"
           ondeleted="RadListBox1_Deleted">
       </telerik:RadListBox>
       <telerik:RadTextBox ID="RadTextBox1" Runat="server" Width="50%">
       </telerik:RadTextBox>
       <asp:Button ID="btnAdd" runat="server" onclick="Add_Click" Text="Add" />
    </telerik:RadPane>
   <telerik:RadSplitBar ID="RadSplitBar1" Runat="server" CollapseMode="Forward" ></telerik:RadSplitBar>
   <telerik:RadPane ID="RadPane2" Runat="server" Width="80%" Height="100%"
        Scrolling="None">
       <telerik:RadEditor ID="RadEditor1" Runat="server" BackColor="White"
           ForeColor="White" Height="95%" Width="98%" BorderColor="Black"
           ontextchanged="RadEditor_TextChanged" OnClientLoad="OnClientLoad"><Content>
           </Content><CssFiles><telerik:EditorCssFile Value="~/Assets/Styles/RadEditorOverrides.css" /></CssFiles><CssClasses><telerik:EditorCssClass Name="redtext" Value=".redtext" /><telerik:EditorCssClass Name="Section 1." Value=".MajorHeading_1_Dot" /><telerik:EditorCssClass Name="Part 1.A" Value=".MajorHeading_1_Dot_A" /><telerik:EditorCssClass Name="Main Topic 1.A.1" Value=".MajorHeading_1_Dot_A_Dot_1" /><telerik:EditorCssClass Name="Sub topic 1.A.1.a" Value=".MajorHeading_1_Dot_A_Dot_1_Dot_a" /><telerik:EditorCssClass Name="First Subdivision 1.A.1.a.(1)" Value=".MajorHeading_1_Dot_A_Dot_1_Dot_a_Dot_1" /><telerik:EditorCssClass Name="Second Subdivision 1.A.1.a.(1).(i)" Value=".MajorHeading_1_Dot_A_Dot_1_Dot_a_Dot_1_Dot_i" /></CssClasses></telerik:RadEditor></telerik:RadPane>
</telerik:RadSplitter>
 
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadEditor1">
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
<script type="text/javascript">
    function ResizeSpliterHeight() {
        alert("<%= RadSplitter1.ClientID %>");
        var splitter = $find("<%= RadSplitter1.ClientID %>");
    }
    function OnClientLoad(editor, args) {
        editor.attachEventHandler("onkeydown", function (e) {
            //alert("Content area key down " + e.keyCode);
            //debugger
           //if (e.keyCode == 50) {
           //     SetCookie('SaveTheEditorFlag', 'true', 1);
           // }
        });
       // ResizeSpliterHeight();
    }
    function SetCookie(cookieName,cookieValue,nDays) {
       var today = new Date();
       var expire = new Date();
       if (nDays==null || nDays==0) nDays=1;
       expire.setTime(today.getTime() + 3600000*24*nDays);
       document.cookie = cookieName+"="+escape(cookieValue)
           + ";expires="+expire.toGMTString();
}
 
 
</script>
 
</asp:Content>
Dobromir
Telerik team
 answered on 06 Aug 2010
1 answer
98 views
My application currently has a RadGrid that is connected to a database with additional two GridButtonColumns.  Both of the buttons have 'Delete' commandNames so they both access the same class when the delete command bubbles.  I wanted them to access seperate classes based on which button they will click. 
Does anyone have any ideas I am currently stuck.
Thank you!
Jessica
Tsvetoslav
Telerik team
 answered on 06 Aug 2010
1 answer
83 views
Hi,
I am using 2009.3.1314.20. When i filter for  only "%" character with "contains" filter function, filter do not works (It do not throw any error). But when use any other character with "%" like "10 %" it's showing me correct records. I do not want to change version. Anybody solved this issue, Please let me know.

Thanks,
Yogesh
Tsvetoslav
Telerik team
 answered on 06 Aug 2010
1 answer
101 views
I have a hierarchical RadGrid that is editable.  If you edit a row that is expanded, the row collapses once in edit mode.  Once its in edit mode, you can expand it again and it remains in edit mode. This can be seen in the Telerik demos (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx) so I'm guessing this is the way it was designed, and is not a bug.  But is there a way I can prevent a row from collapsing when it enters edit mode?

Thanks,
Justin
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2010
1 answer
169 views
Hi,

why following code is not changing the header background color?
<HeaderStyle Font-Bold="true" BackColor="#FF9900"/>

Many thanks 
MG
Radoslav
Telerik team
 answered on 06 Aug 2010
1 answer
219 views
My requirement is to open a Detail Table in a Hierachy RadGrid from a double click.  We have the expand arrow working fine for this, but would also like to have Row Double click do the same thing. 

Here is sample of what we currently have:

Designer:

<telerik:RadGrid ID="rgvOrderHistory"
                 runat="server"
                 AllowPaging="True"
                 AllowCustomPaging="true"
                 AllowSorting="true"
                 AutoGenerateColumns="false"
                 AllowFilteringByColumn="false"
                 OnSortCommand="rgvOrderHistory_SortCommand"
                 OnNeedDataSource="rgvOrderHistory_NeedDataSource"
                 OnItemDataBound="rgvOrderHistory_ItemDataBound"
                 OnDetailTableDataBind="rgvOrderHistory_DetailTableDataBind"
                 CssClass="rgvOrderHistory"
            onitemcommand="rgvOrderHistory_ItemCommand" >
    <MasterTableView DataKeyNames="OrderNumber"
                     AllowPaging="true"
                     PageSize="10"
                     PagerStyle-AlwaysVisible="true"
                     PagerStyle-Mode="NextPrevAndNumeric"
                     AutoGenerateColumns="false"
                     AllowFilteringByColumn="false"
                     Name="OrderHistoryMaster">                              
            <Columns>
                 //SOME BOUND COLUMNS
   </Columns>
                
                     <DetailTables>
                        <telerik:GridTableView AutoGenerateColumns="false"
                                               AllowPaging="false"
                                               AllowFilteringByColumn="false"
                                               CssClass="rgvOrderHistoryDetails"
                                               Name="OrderHistoryDetail"
                                               DataKeyNames="ProductID" >
                       <Columns>
                            //SOME BOUND COLUMNS
  </Columns>
</MasterTableView>
   <ClientSettings></ClientSettings>
</telerik:RadGrid>

Code Behind:

   protected void rgvOrderHistory_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            try
            {

                if (e.IsFromDetailTable) return;

                int virtualItemCount;
                rgvOrderHistory.DataSource = GetOrderHistoryDataSource(out virtualItemCount);
                rgvOrderHistory.VirtualItemCount = virtualItemCount;
            }         
            catch (Exception ex)
            {
                //some code
            }
        }

  protected void rgvOrderHistory_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
        {
            try
            {

                GridDataItem dataItem = e.DetailTableView.ParentItem;
                int orderNumber = (int) dataItem.GetDataKeyValue("OrderNumber");
                int virtualItemCount;

                e.DetailTableView.DataSource = GetOrderHistoryDetailDataSource(orderNumber, e.DetailTableView.PageSize,
                                                                               e.DetailTableView.CurrentPageIndex,
                                                                               out virtualItemCount);
                e.DetailTableView.VirtualItemCount = virtualItemCount;

            }
            catch (Exception ex)
            {
                //some code
            }
        }






Some Help Please Thanks!
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2010
1 answer
139 views

Hi,

i'm using radgrid to display, insert, edit and delete record. i'm using latest telerik dll of vs2010. and i'm working in vs2008.
i'm using SqlDatasource as datasourceid.
To insert new record i'm using EditFormSettings. i have button event specified in CommandItemTemplate.
Insert, Update, Delete functionality works fine. but it creating problem with insert button.
when i click on insert button Insert record template displayed on last page of grid.
suppose i have 2 pages in radgrid. currently i'm on first page and click on insert button then insert template is displayed on top of the 2nd page. it should display on top of the first page.

Please guide me on this issue.

thanks
Sweta
Princy
Top achievements
Rank 2
 answered on 06 Aug 2010
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?