Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
196 views
Hi,

I am trying to "Ajaxify' my Radgrid. This page works without the RadAjaxPanel but not with?

<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
 
        <script type="text/javascript"
            //<![CDATA[
            function openWin() {
                var oWnd = radopen("ColumnsPopup.aspx", "RadWindow1");
            }
            function OnClientClose(oWnd, args) {
                __doPostBack('__Page', 'PostbackFromJs');
            }
            //]]> 
        </script> 
 
    </telerik:RadCodeBlock> 
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" 
        ReloadOnShow="true" runat="server" Skin="Sunset"
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" Behaviors="Close" OnClientClose="OnClientClose" 
                NavigateUrl="ColumnsPopup.aspx" runat="server"
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
  
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px"
        <input value="Open Popup" type ="button" onclick="openWin();" /> 
    <asp:Button ID="Button1" runat="server" Text="pdf" /> 
    <telerik:RadGrid ID="ResultsGrid" runat="server" EnableHeaderContextMenu="True" GridLines="None" 
        PageSize="3" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" 
        AllowMultiRowSelection="True"
        <ExportSettings ExportOnlyData=true IgnorePaging=false  Pdf-AllowAdd=true > 
            <Pdf PageHeight="11in" PageWidth="36in" /> 
             
        </ExportSettings> 
        <MasterTableView AutoGenerateColumns="true"
            <Columns> 
                <telerik:GridClientSelectColumn> 
                </telerik:GridClientSelectColumn> 
            </Columns> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
        </MasterTableView> 
        <ClientSettings AllowColumnsReorder="True"
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
    </telerik:RadAjaxPanel> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" 
        SelectCommand="SELECT * FROM [Customers]"></asp:SqlDataSource> 
    <div> 
    </div> 
    </form> 
</body> 
</html> 
 

this is the code behind:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 
        BindGrid() 
        ResultsGrid.DataBind() 
    End Sub 
 
    ''' <remarks></remarks
    Protected Sub BindGrid() 
        Dim sqlconnection As SqlConnection = New SqlConnection(SqlDataSource1.ConnectionString) 
        sqlconnection.Open() 
        Dim ds As DataSet = New DataSet() 
        Dim da As SqlDataAdapter = New SqlDataAdapter("select * from customers", sqlconnection) 
        da.Fill(ds) 
        ResultsGrid.DataSource = ds 
    End Sub 
 
 
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 
        ResultsGrid.MasterTableView.ExportToPdf() 
    End Sub 


thanks

Dirk
Pavlina
Telerik team
 answered on 24 Nov 2009
1 answer
113 views
Hi,

I created a custom tool for insertion of YouTube embed code.
pasteHtml works perfect but how do I refresh the editor screen after the pasteHtml command?

When I switch to Code and the back to Design then the screen is updated with the movie placeholder.

Thanks,
Marc
Rumen
Telerik team
 answered on 24 Nov 2009
5 answers
606 views
hello,
we are using templates with radwindowmanager.
After update from version 1125 to 1314 we have radwindow problems.
The confirmation popup is shown correctly, after a button is pressed (cancel) we get a error message
(no sourcecode for this error available). In Version 1125 all works correctly.

Codesnippet:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" InitialBehavior="None" Modal="True">
        <ConfirmTemplate>
            <div class="windowpopup radconfirm">
                <div class="dialogtext">
                    {1}
                </div>
                <div>
                    <a onclick="$find('{0}').callBack(true);" class="radwindowbutton" href="javascript:void(0);">
                        <span class="outerspan"><span class="innerspan">##LOC[OK]##</span> </span></a>
                    <a onclick="$find('{0}').callBack(false);" class="radwindowbutton" href="javascript:void(0);">
                        <span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span> </span>
                    </a>
                </div>
            </div>
        </ConfirmTemplate>
        <AlertTemplate>
            <div class="windowpopup radalert">
                <div class="dialogtext">
                    {1}
                </div>
                <div>
                    <a onclick="$find('{0}').close();" class="radwindowbutton" href="javascript:void(0);">
                        <span class="outerspan"><span class="innerspan">##LOC[OK]##</span> </span></a>
                </div>
            </div>
        </AlertTemplate>
    </telerik:RadWindowManager>
Georgi Tunev
Telerik team
 answered on 24 Nov 2009
1 answer
88 views
First question is, is there a way to set which mode you want the editor to start in server side? I want my editor to come up in preview mode by default.

Second question, when in html or preview mode I want to be able to define a toolgroup that is not in read only mode, aka my print button for example. should be useable in all modes.
Princy
Top achievements
Rank 2
 answered on 24 Nov 2009
1 answer
73 views
Hi,

I'm having a problem with the RadAjaxManager that is very odd.

I have a page that attempts to send an alert message to the browser using

RadAjaxManager1.Alert("alert message text"

but the message never shows up in Internet Explorer. In Firefox, the message appears, but then the controls on the page dissappear.

This page is loaded in a modal RadWindow. In Firefox, when the RadWindow is closed, the grayed out overlay on the main page never goes away. If I reload the page, it reloads the main page's header content, but not the content of the main RadWindow control that houses the main content.

The only way to get the content to re-appear is to close Firefox and then open it again.

This all worked fine before upgrading to the Q3-2009 release, and yes, I have the 'official' release, not the Beta.

Any help would be greatly appreciated.

Thanks,

Charlie
Pavel
Telerik team
 answered on 24 Nov 2009
1 answer
146 views
I'm using a Line chart, and when the values I pass in are all 0's then I see both positive and negative values on the Y axis.  I'm trying to  prevent this so that all I see are positive values. 

I've tried setting IsZeroBased="true" and MinValue="0" but neither seem to take effect unless I set AutoScale="false".  I have no idea what the values might be so I really need the autoscale feature.  I do know that they'll never be negative.


here's the "Y AXIS" portion of my markup:

  <YAxis IsZeroBased="true" >
            </YAxis>

Thanks...

--Matt



Giuseppe
Telerik team
 answered on 24 Nov 2009
1 answer
90 views
Hello,

I have a RadTabStrip in my Masterpage..

How can i set the selected Tab from Codebehind in a Site when my RadTabStrip is in the Masterpage ???

When i open a Content Site like test.aspx in this Site in CodeBehind (Page_Load) i will set the
active Tab where i wish ???
I Page Load Event on my Content Page i will say does (Demo) the myPictures Tab is now set as active
and the RadTabStrip is in my Masterpage ...

Can you help me please with a VB Code Snipet ??

Tahnks
Shinu
Top achievements
Rank 2
 answered on 24 Nov 2009
5 answers
207 views
An invalid or illegal string was specified" code: "12

Hi my program is quite simple i have this textbox :

   <telerik:RadTextBox ID="Metier_Input" EmptyMessage="Métier" ToolTip="Métier" runat="server" Width="125px" Enabled="false"></telerik:RadTextBox> 

And in the  Button click Event  handler i'm doing
 Metier_Input.Text = "0380;12541;0720"
 

Everything is fine but when i'm adding :
this in my AjaxManagerProxy
         <telerik:AjaxSetting AjaxControlID="PopUpClose_Btn"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="Metier_Input" LoadingPanelID="RadAjaxLoadingPanel2"/> 
                    </UpdatedControls>
                </telerik:AjaxSetting>

If i click on the "PopUpClose_Btn" to set my Textbox Value to xx
I have a javascript Error "An invalid or illegal string was specified" code: "12""
and the control disappear

Mira
Telerik team
 answered on 24 Nov 2009
1 answer
105 views
hello..
here is an example in Telerik for  export to Excel,Export to Xml,Export to Word and Export to CSV  on this link
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx
is here any Example available for Import to Excel,Import to Word and Import to csv????????????
plz reply...
Princy
Top achievements
Rank 2
 answered on 24 Nov 2009
1 answer
105 views

 

Hi,

I've the foll. piece of code for my context menu to work even for left click.
With Q2 till yesterday, this code worked fine.

but today, after I installed q3, this code doesn't works. It throws Javascrit telerik exception.

<
telerik:RadScriptBlock runat = "server">

 

 

<script type="text/javascript">

 

 

 

// the below js function is used to set the context menu even for left click.

 

 

function showMenu(e)

 

{

 

var contextMenu = $find("<%= m_radContextMenu.ClientID %>");

 

 

if (contextMenu != null)

 

{

 

if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget)))

 

{

contextMenu.show(e);

}

$telerik.cancelRawEvent(e);

}

}

</

 

script>

 

</

 

telerik:RadScriptBlock>

 

Yavor
Telerik team
 answered on 24 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?