Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
167 views
I would like to have a panel bar and on item selected, I would like to show or hide a asp:panel control (ie panel1.visible = true).  Each item selected will show a separate panel, so when selecting a new item, the old panel will hide and the new panel will show.  Can someone help with this? 
Yana
Telerik team
 answered on 06 Aug 2010
3 answers
240 views
Hi,

I have recently opened a project I was working on that utilizes Rad Controls for ASP.NET AJAX. The upgrade wizard informed me there was a newer version of the DLL on my computer than the project was using, so I upgraded the project. I also allowed the wizard to upgrade the toolbox. However, the log informed me that the toolbox upgrade failed with the message:

"Upgrade Toolbox: Requested registry access is not allowed."

I am running Windows 7 Ultimate on a domain. My domain user has admin rights to my PC.

How can I get the wizard to upgrade my toolbox? Failing that, how do I upgrade the toolbox manually?

Thanks in advance,

Michael
Michael Fielding
Top achievements
Rank 1
 answered on 06 Aug 2010
3 answers
922 views
Hi,

I have a grid with a GridImageColumn, now I would like to make a change. It is sometimes possible that the image the column wants to show does not exist, and I cannot check this server side before or during databind.

I found some javascript code which allows to set a new "default" image src in case the url it is pointing to does not exist, but the problem is that I do not know how to access the html <img /> element inside the GridImageColumn.

My question: is there a way to set the javascript OnError function if the <img /> element inside a GridImageColumn row either server side or client side? So I would like to be able to edit the attributes of that <img /> element which is about to be rendered... How to do this?

Kind Regards,
Kristof
Kristof
Top achievements
Rank 1
 answered on 06 Aug 2010
1 answer
265 views
Hi ,
RadWindow is not showing the Behavior properly in both IE and Chrome  below is the code what i used and kindly see the is attached picture .

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Telerik"
    Behaviors="Resize, Move" Behavior="Default" InitialBehavior="None" >
    <Windows>
        <telerik:RadWindow ID="ImageWindow" runat="server" Title="Item record" Height="500px"
            OnClientClose="ListBoxLoad" Width="835px" Left="150px" ReloadOnShow="False" ShowContentDuringLoad="false"
            Modal="true"  Behavior="Default" KeepInScreenBounds="true" VisibleStatusbar="false">
        </telerik:RadWindow>
        <telerik:RadWindow ID="RadWindow1" runat="server" Title="Bill Of Materials" Height="700px"
        VisibleStatusbar="false" Width="1000px" Modal="true" Behaviors="Move, Resize,Close"
        VisibleTitlebar="true"  Behavior="Default" InitialBehavior="None" Left="" style="display:none;" Top="" >
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
Georgi Tunev
Telerik team
 answered on 06 Aug 2010
7 answers
151 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
137 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
70 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
142 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
73 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
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?