Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
188 views
Hello.

I'm using a asp:DetailsView to show some data. This data has some attached material that I display in a RadTreeView, using a TemplateField. Sometimes, however, this field should not be visible, so I set its "Visible" property to false. If I do that, I get a javascript error here:


The error occurs on the line marked with red, because the variable "_23a" is null. As said, this error only occurs if the TemplateField in the DetailsView is set to Visible=false. If set to true, there's no problem. A solution would be much appreciated, as being able to hide fields in a DetailsView seems like something that shouldn't be prohibited.

EDIT: For some reason, when setting the color on the row in the code block, it jumped out of its box (above) and ended up at the very bottom of my post. This seems a bug too, if you ask me. ;-)

... 



 



Telerik.Web.UI.RadTreeView._preInitialize=function(_239,_23a){ 



var _23b=$get(_239); 



_23b.scrollTop=_23a; 



if(Telerik.Web.UI.RadTreeView._isRtl(_23b)){ 



Telerik.Web.UI.RadTreeView._initializeRtl(_23b); 







}; 



 



... 



Veselin Vasilev
Telerik team
 answered on 11 Mar 2009
3 answers
147 views
Hi,
Is it possible to make the currently selected item unselectable? If so how would I go about this, my panelbar is bound to a datasource.
Thanks
Gareth
Paul
Telerik team
 answered on 11 Mar 2009
3 answers
193 views
Newbie, I am trying the examples, and get error from VS2008:

Javascript:
var panel = $find( "<%=RadPanelBar1.ClientID %>" );

Error:
The Controls collection cannot be modified because the control contains codeblocks (i.e. <% ... %>).

How do I fix this? ($find( "RadPanelBar1" ) is OK)

--------------------------------------------------------------------------------------------------------
Here is my partial web page:

<telerik:RadPanelBar  ID="RadPanelBar1">
    <Items>
        <telerik:RadPanelItem>
            <Items>
                <telerik:RadPanelItem>
                    <ItemTemplate>
                       <telerik:RadTreeView ID="RadTreeView1" runat="server">
                        </telerik:RadTreeView>
                    </ItemTemplate>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
....

How do I get to get to RadTreeView1 to manipulate the tree?

Thanks.




Paul
Telerik team
 answered on 11 Mar 2009
1 answer
117 views
Hi,

while implementing radgrid, double Borders are comming. How to remove the borders from the grid.


Nirakar.
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2009
2 answers
166 views
Hi,

I addedcode in the Grid <ClientEvents> to call a javascript function. The javascript function is as below:
function RaiseCommand(sender,args)
{

    if(args.get_commandName()=='Page' || args.get_commandName()=='Sort')
    {
        if('<%= grdOrders.MasterTableView.IsItemInserted %>' == 'True')
        {
            if(confirm("Some of the data entered may be lost. Do you want to continue?"))
            {
                 args.set_cancel(false);
            }
            else
            {
                args.set_cancel(true);
            }
        }
    }
}

As seen from the above, this is to alert the user that a data will be lost in the InsertItem if the page is changed or sorted.

The issue is that, this function is called correctly and also the alert is displayed.
But let's say that there are just 2 pages in the grid and in the insertitem is on page 2 and I chose to navigate to page 1. When I click on 'Prev' icon the confirm message comes up and I cancel it i.e. choose not to navigate. Now when I want to navigate to Page 1, the pager doesnt work. The page navigates to page 1 when I click on 'Next' icon and not on 'Prev' icon. This is incorrect. Also the footer message is getting changed to Page 1 of 2 even in the event of I cancelling the Command.

Any pointers?

Brindavan
Sebastian
Telerik team
 answered on 11 Mar 2009
5 answers
306 views
Hello!

When I enter something into the radComboBox the dropdown list automatically opens. How can I disable this behavior? The list should only when user presses the arrow for the combobox.

Thanks in advance and regards
Markus Weber
Numan
Top achievements
Rank 1
 answered on 11 Mar 2009
1 answer
495 views
Just a shared tip, that may be handy to someone doing a search.

We had trouble getting the Rad controls to offer intellsense in the ASPX source code environment.   Site built fine, all worked fine, just no intellisense.

We had installed the Telerik.Web.UI into the GAC and had the following entry in our web.config
       
   <system.web> 
        <pages > 
            <controls> 
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> 
 

which was our problem ... it needed to be specific (version, etc) to get intellisense:

   <system.web> 
        <pages > 
            <controls> 
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2008.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> 
 

If we've made a mistake with this observation, we'd welcome the comment.

Thanks.
Veselin Vasilev
Telerik team
 answered on 11 Mar 2009
2 answers
411 views
Hi,

I wanted to open a radwindow after my button is clicked based on certain condition from server side.
For that I have written

    Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
        'Me.ClientScript.RegisterStartupScript(Me.GetType, "startup", "radopen('google.com');", True)
        Me.ClientScript.RegisterClientScriptBlock(Me.GetType, "startup", "radopen('google.com');", True)
    End Sub

It is throwing me a javascript error undefined !
Neither RegisterStartupScript nor RegisterClientScriptBlock is working !

after that I have opened my radwindow after 1000 milisecond and it is working fine
means I have written

    <script type="text/javascript">
        function showMatrixWindow()
        {
            radopen('http://google.com');
        }
    </script>

on my aspx page and written

        Me.ClientScript.RegisterStartupScript(Me.GetType, "startup", "setTimeout(showMatrixWindow,1000);"
, True)

Things working fine now but why should I wait my client for even 1second.

I have even tried to bind radopen function when my document is in ready state but there it is also throwing error !

Help me out !

Thanks
Divyesh Chapaneri
Fiko
Telerik team
 answered on 11 Mar 2009
1 answer
137 views
How do I set, GridButtonColumn to ItemStyle-HorizontalAlign="Center", in the default skin file?

Thanks,
Rich

 

Shinu
Top achievements
Rank 2
 answered on 11 Mar 2009
3 answers
143 views
Hi,

I am trying to mke use of your Grid within a page that contains two divs,  the first div has no sidth set on it, floats: left the seconond Div has a width preset and floats right.  I am placing your grid within the first div, The grid displays put occupies the full width of the browser window and not only the width of the first div, minus the width of the second DIV that I want to foloat right..  Below is the ocde,  could you please tell me what I'm doing wrong..

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zzz-Default2.aspx.cs" Inherits="zzz_Default2" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <style type="text/css">  
         
       #col_content  
{  
    background-position: #F7F6F2;  
    padding: 0 0 0 10px;  
    border-left: 3px solid #DFDCCB;  
    background: #F7F6F2;  
    float: left;  
    width:auto;  
    height: auto;  
}  
 
#col_right  
{  
    background-position: #F7F6F2;  
    padding: 0 0 0 10px;  
    border-right: 1px solid #CAC7B8;  
    border-left: 1px solid #CAC7B8;  
    background: #F7F6F2;  
    width: 200px;  
    float: right;  
    height: auto;  
}  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
    <div> 
    <div id="col_content">Content <telerik:RadGrid ID="RadGrid1" runat="server"   
            GridLines="None" AutoGenerateColumns="False"   
            onneeddatasource="RadGrid1_NeedDataSource">  
<HeaderContextMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
<MasterTableView> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
</MasterTableView> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
    </telerik:RadGrid> 
        <br /> 
         
    <br /> 
      
      
    <br /> 
 
    <br /><div align="center"></div> 
&nbsp;  
</div> 
<div id="col_right" >Right</div> 
    </div> 
    </form> 
</body> 
</html> 
 


Thanks,
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2009
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?