Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
We have a multi culture applicaiton. The design has custom controls that inherits from RADcontrols. One of them is the RADDateInput control.

We attempted to change the culture. We modified the culture of the field from "en-US" to "zh-CN". The dates were automatically displayed in new culture. One abberation I noticed. In US culture following text entered was displayed correctly

Entered Text
3 Feb                --> 2/3/2009 (US Culture)
3 Feb                --> 3/3/2009 (CN Culture).

I tested it on the demo site and the Culture works for the entered text for "US"/"Germany" but for french I noticed the same behaviour described above.

Am I  missing something here?

Ravi
Pavlina
Telerik team
 answered on 11 Mar 2009
3 answers
198 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
154 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
199 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
120 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
176 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
315 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
503 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
417 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
138 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?