Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
195 views
I am trying to create raddock's dynamically. The code I am using is the code from sample "Dock/ Dynamically Created Docks," sub "CreateRadDock," except that I do not want the raddock's default commands. I also do not want a postback. This is the code:

Private Function CreateRadDock() As RadDock

        Dim docksCount As Integer = CurrentDockStates.Count
        Dim dock As New RadDock()

        dock.DockMode = DockMode.Docked
        dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None
        dock.AutoPostBack = False
        dock.UniqueName = Guid.NewGuid().ToString()
        dock.ID = String.Format("RadDock{0}", dock.UniqueName)
        dock.Title = "Dock"
        dock.Width = Unit.Pixel(300)

        Return dock
 End Function


The problem is that, even though I have "AutoPostBack = False," it still does a post back during drag, or if I simply click on any of the dynamic RadDocks. Am I missing something?

Thanks,

Ivan



Gido Geek
Top achievements
Rank 2
 answered on 20 Dec 2009
6 answers
205 views
I'm trying to achieve a very simple layout with a header on the top of the page and a splitter with 3 columns below. I've attached sample code below.

It lays out fine in Firefox...initially, but scrollbars appear when I resize the window.

In IE I always get scrollbars, though if I remove the 3 border properties on the outer splitter I don't get them initially, but do get them when I resize the window.

I'd like to also add a 1-pixel border along the top of the lower section, but when I add a border-top to either the bottom pane or the bottom splitter, the scrollbar problem gets worse.

 

<%

@ Page Language="C#" AutoEventWireup="true" %>

<%

@ 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 id="Head1" runat="server">

 

<title>Test</title>

<style>

 

.header

 

{

background-color: green;

}

</style>

</

head>

<

body>

 

<form id="Form1" method="post" runat="server">

 

<asp:ScriptManager ID="ScriptManager1" runat="server" />

 

<telerik:RadSplitter id="topBottomSplitter" runat="server" Orientation="Horizontal" BorderStyle="None" BorderWidth="0"

BorderSize="0" FullScreenMode="true">

 

<telerik:RadPane id="topPane" CssClass="header" runat="server" Height="50px">

 

Header

</telerik:RadPane>

 

<telerik:RadPane id="bottomPane" runat="server">

 

<telerik:RadSplitter id="bottomSplitter" runat="server" Width="100%">

 

<telerik:RadPane id="BottomLeft" runat="server">

 

Left

</telerik:RadPane>

 

<telerik:RadSplitBar id="SplitterBarLeft" runat="server" collapsemode="Forward" />

 

<telerik:RadPane id="BottomCenter" runat="server" Width="50%">

 

Middle

</telerik:RadPane>

 

<telerik:RadSplitBar id="SplitterBarRight" runat="server" collapsemode="Backward" />

 

<telerik:RadPane id="BottomRight" runat="server">

 

Right

</telerik:RadPane>

 

</telerik:RadSplitter>

 

</telerik:RadPane>

 

</telerik:RadSplitter>

 

</form>

 

</

body>

</

html>


Malinda
Top achievements
Rank 1
 answered on 20 Dec 2009
2 answers
346 views
Hi
I am having trouble getting this to close the window after a time delay, from within the window content.
Can't see what i am doing wrong. Can anyone help?
Thanks
Clive
<head runat="server">  
    <title>Untitled Page</title> 
<script type="text/javascript">  
function closeWindow()     
{     
    var oWindow = GetRadWindow();     
    oWindow.close();     
}     
function GetRadWindow()        
{     
  var oWindow = null;     
  if (window.radWindow)     
     oWindow = window.radWindow;     
  else if (window.frameElement.radWindow)     
     oWindow = window.frameElement.radWindow;     
  return oWindow;     
}       
</script>    
 
</head> 
<body onload="setTimeout(closeWindow(), 3000);">  
    <form id="form1" runat="server">  
    <div> 
      
        Close this window after downloading your file if it does not close automatically</div> 
    </form> 
Clive Hoggar
Top achievements
Rank 1
 answered on 19 Dec 2009
1 answer
144 views

I have a page with Captcha and with RadAjaxManager that updates some content (comboboxes) on the page.

When I open the page, select comboboxes (that make partial postback) and then enter correct code (I'm 100% sure) then I get the wrong code message. When I reenter code, it works. 

It happens every time I open that page. Maybe when combobox get selected and ajax request is done, the captcha image is no longer up to date and that's why I got the error. Is there any solution to that?

Pero
Telerik team
 answered on 19 Dec 2009
4 answers
190 views
I have a simple RadGrid with one DetailTable and when I click on the expanding arrow the whole RadGrid collapses (even the MasterTable) and all i see is a line, like the one you see when you have a RadGrid without datasource.

    <telerik:RadGrid  
        ID="RadGrid1"  
        runat="server"   
        DataSourceID="ObjectDataSource1"  
        AutoGenerateColumns="False" 
        GridLines="None"> 
        <MasterTableView 
            DataSourceID="ObjectDataSource1"  
            DataKeyNames="Id"> 
            <Columns> 
                <telerik:GridBoundColumn DataField="Id" HeaderText="#" UniqueName="ID"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="ClientName" HeaderText="Client" UniqueName="ClientName"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="ContactPerson" HeaderText="Contact" UniqueName="ContactPerson"> 
                </telerik:GridBoundColumn> 
            </Columns> 
            <DetailTables> 
                <telerik:GridTableView  
                    DataSourceID="ObjectDataSource2"  
                    DataKeyNames="ClientId"> 
                    <ParentTableRelation> 
                        <telerik:GridRelationFields DetailKeyField="ClientId" MasterKeyField="Id" /> 
                    </ParentTableRelation> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id"></telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Text" HeaderText="Text" UniqueName="Text"></telerik:GridBoundColumn> 
                    </Columns> 
                </telerik:GridTableView> 
            </DetailTables> 
        </MasterTableView> 
    </telerik:RadGrid> 

Pavlina
Telerik team
 answered on 19 Dec 2009
3 answers
90 views
Hi, just wondering if that is possible, the e.HtmlElement returns undefined on AListingsGrid_RowDrop event.
thanks
Dimo
Telerik team
 answered on 19 Dec 2009
1 answer
101 views

I have created an inherited version of the Telerik RadGrid to process programmatic column configuration and build the grid from this.
The grid itself has a column which is templated and contains a link button with the CommandName set to "Select", this is used to fire the SelectedIndexChange event, on which the application redirects the user to another page in the application.  This inherited Grid seems to be working fine in all scenarios apart from 1 I have identified.

If the user clicks on a link in the grid they are redirected to a new page, however if they click the Browser back button and click a different link (to go to a different page) the SelectedIndexChanged event is not fired, neither is the LinkButtons click event, the application just posts back to the currently displayed page.

The inherited control is performing all the processing of the column building in an overridden OnInit event if that has any impact on the issue im not sure.

Any help would be most appreciated.

Regards,

Stuart

Iana Tsolova
Telerik team
 answered on 19 Dec 2009
1 answer
74 views
Hiii

Iam using radajaxmanager to avoid postbacks,in my page am having a radgrid and inside the radgrid edititemtemplate's there are so many controls,when am giving ajaxcontrolid as radgrid1,and updatedcontrolid as radgrid1.it is avoiding postbacks but the values are getting null for radcombobox,hiddenfields etc when am inserting,am using objectdatasource for inserting and updating.
Mira
Telerik team
 answered on 19 Dec 2009
7 answers
489 views
Hi,

I'm using my own popups to create/edit appointments.  When I close my popup, I'd like to tell the scheduler control to refresh itself (via Ajax, if possible).  How do I do that?

Thanks,
Alvaro
T. Tsonev
Telerik team
 answered on 19 Dec 2009
5 answers
178 views
Hi Telerik,
when I want to open a file using DBContentProvider, there is an issue with the opening RadWindow:
The file can't be loaded into this window. This is not a problem in my application, but I don't find a routine to prevent opening this RadWindow.

Best regards,
Andreas
Fiko
Telerik team
 answered on 19 Dec 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?