Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
this function was working ok in a previous build but it seems now that 
- GetRadWindow()._invokeDialogCallBackFunction()

now closes the radwindow, which is not what i want to happen since i am not using the radwindow as a popup dialog.

my page works like this.

on page load, the window shows a web page. if the use selects an edit option from a treeview on the same page as the radwindow then i display the edit form in the radwindow. when they complete the edit and click OK, i process updates on the edit page and then invoke the client callback function when that page reloads. this callback function restores the original state of the radwindow. however, when i call it now, the window has been closed somehow (without me calling the close method).

any idea why this is happening?

thanks,
rob
Georgi Tunev
Telerik team
 answered on 10 Nov 2008
2 answers
83 views
Using the Telerik example, I tried to get the grid to show Master / Detail data.  The master data binds fine, but the detail data doesn't show up at all.
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager runat="server" OutputCompression="AutoDetect">  
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px"   
            Width="100%">  
 
    <asp:Button ID="ParseButton" runat="server" Text="Parse" /><br /> 
        <asp:TextBox ID="AcknowledgementTextBox" runat="server" Height="166px"   
            TextMode="MultiLine" Width="100%"></asp:TextBox> 
          
        <telerik:RadGrid ID="OutputGrid" runat="server" Skin="Web20" AutoGenerateColumns="false" AllowMultiRowSelection="false" GridLines="None">  
            <MasterTableView DataKeyNames="SegmentOrdinal" DataMember="Ak3">  
               <DetailTables> 
                    <telerik:GridTableView DataKeyNames="ElementOrdinal" DataMember="Ak4" Width="100%" runat="server" > 
                        <ParentTableRelation> 
                            <telerik:GridRelationFields DetailKeyField="SegmentOrdinal"   
                            MasterKeyField="SegmentOrdinal" /> 
                        </ParentTableRelation> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="ElementPosition" HeaderText="Element Position" UniqueName="ElementPosition" /> 
                        <telerik:GridBoundColumn DataField="ElementReferenceNumber" HeaderText="Element Reference Number" UniqueName="ElementReferenceNumber" /> 
                        <telerik:GridBoundColumn DataField="ElementErrorCode" HeaderText="Element Error Code" UniqueName="ElementErrorCode" /> 
                        <telerik:GridBoundColumn DataField="BadData" HeaderText="Bad Data" UniqueName="BadData" /> 
 
                    </Columns> 
                    </telerik:GridTableView> 
               </DetailTables> 
               <Columns> 
                    <telerik:GridBoundColumn DataField="SegmentIdCode" HeaderText="Segment ID Code" UniqueName="SegmentIdCode" /> 
                    <telerik:GridBoundColumn DataField="SegmentPosition" HeaderText="Segment Position" UniqueName="SegmentPosition" /> 
                    <telerik:GridBoundColumn DataField="LoopIdCode" HeaderText="Loop ID Code" UniqueName="LoopIdCode" /> 
                    <telerik:GridBoundColumn DataField="SegmentErrorCode" HeaderText="Segment Error Code" UniqueName="SegmentErrorCode" /> 
               </Columns> 
               </MasterTableView> 
        </telerik:RadGrid> 
        <asp:Label ID="ErrorLabel" runat="server" ForeColor="Red"></asp:Label> 
            </telerik:RadAjaxPanel> 
    </div> 
      
    <telerik:RadAjaxManager runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="OutputGrid" /> 
                    <telerik:AjaxUpdatedControl ControlID="ErrorLabel" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
              </AjaxSettings> 
    </telerik:RadAjaxManager> 
    </form> 
</body> 
    Protected Sub ParseButton_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles ParseButton.Click  
        Try 
            ErrorLabel.Text = "" 
            'Dim interchange As New AnsiClient.InterchangeControl(AcknowledgementTextBox.Text)  
            'AcknowledgementTextBox.Text = interchange.ToString.Replace(interchange.Delimiters.SegmentDelimeter, interchange.Delimiters.SegmentDelimeter & Environment.NewLine)  
            'Dim ack = DirectCast(interchange.FunctionalGroups(0).Transactions(0), Acknowledgment)  
            'ParseAcknowledgement(ack)  
            Dim ds As New System.Data.DataSet  
            ds.ReadXml("C:\test.xml")  
            OutputGrid.DataSource = ds  
            OutputGrid.DataBind()  
        Catch ex As Exception  
            ErrorLabel.Text = ex.ToString  
        End Try 
    End Sub 
The data in "C:\test.xml"
<?xml version="1.0" standalone="yes"?>  
<Data xmlns="http://tempuri.org/Data.xsd">  
  <Ak3> 
    <SegmentIdCode>EB</SegmentIdCode> 
    <SegmentPosition>40</SegmentPosition> 
    <LoopIdCode>2110C</LoopIdCode> 
    <SegmentErrorCode>SegmentHasDataElementErrors</SegmentErrorCode> 
    <SegmentOrdinal>1</SegmentOrdinal> 
  </Ak3> 
  <Ak3> 
    <SegmentIdCode>EB</SegmentIdCode> 
    <SegmentPosition>42</SegmentPosition> 
    <LoopIdCode>2110C</LoopIdCode> 
    <SegmentErrorCode>SegmentHasDataElementErrors</SegmentErrorCode> 
    <SegmentOrdinal>2</SegmentOrdinal> 
  </Ak3> 
  <Ak4> 
    <ElementPosition>9</ElementPosition> 
    <ElementReferenceNumber>673</ElementReferenceNumber> 
    <ElementErrorCode>ConditionalRequiredDataElementMissing</ElementErrorCode> 
    <BadData>VS</BadData> 
    <SegmentOrdinal>1</SegmentOrdinal> 
    <ElementOrdinal>1</ElementOrdinal> 
  </Ak4> 
  <Ak4> 
    <ElementPosition>9</ElementPosition> 
    <ElementReferenceNumber>673</ElementReferenceNumber> 
    <ElementErrorCode>ConditionalRequiredDataElementMissing</ElementErrorCode> 
    <BadData>VS</BadData> 
    <SegmentOrdinal>2</SegmentOrdinal> 
    <ElementOrdinal>2</ElementOrdinal> 
  </Ak4> 
</Data> 

Any help is always appreciated, thanks.
bill
Top achievements
Rank 1
 answered on 10 Nov 2008
3 answers
168 views
I was wondering if I can find a way to put my tabStrip in a master page and add tabs from the content page in design time.

If there is such a functionality please let me know.

Regards,
Masoud Tabatabaei
http://www.tabatabaei.info
Missing User
 answered on 10 Nov 2008
2 answers
151 views
In RadWindows with RadGrids there always seems to be a horizontal scrollbar.  Any ideas on getting rid of this?

Thanks.
Michael
Top achievements
Rank 1
 answered on 10 Nov 2008
1 answer
45 views
When you group by resources vertical, the all day row don't disappear correctly. We had the same problem with the first releases of Q2 and here are the thread we discussed in back then. It's exatly the same problem now. The problem was resolved in last release of Q2 but when we updated too Q3 the bugg was there again.

Old thread

/Anders Spetz
Dimitar Milushev
Telerik team
 answered on 10 Nov 2008
3 answers
237 views

I am using a radGrid for Customer Orders. To each order I can attach uploaded files. Because I was having difficulties with radUpload and Ajax I decided to do the uploading using a radWindow.

Two pieces of information are required to attach the uploaded documents to the Order; CustomerID and OrderID.

I assign the CustomerID to a hidden field in the ItemDataBound event of the grid.

The grid uses GridTemplateColumn with teh "form fields" laid out in this single column. A second GridTemplateColum is used for the button to attach files:

<telerik:GridTemplateColumn UniqueName="GridTemplateColumn" HeaderText="GridTemplateColumn">  
    <ItemTemplate>  
        <button id="btnShowDlg" onclick="showDialog();return false;" type="submit">Click here to attach files</button>   
    </ItemTemplate>  
</telerik:GridTemplateColumn> 

RadWindow manager is used to open a window passing the CustomerID as an argument from the hidden field. This works fine.

Where I run into trouble is trying to get the OrderID from the grid row on which the button was clicked. I have tried various methods using Javascript found on this site without success.

Using OnClick on the button allows me open the window and pass the CustomerID as an argument but I just can't figure out how to get the OrderID from the row whose button was clicked.

All suggestions welcome.

Declan
 

Declan
Top achievements
Rank 2
 answered on 10 Nov 2008
1 answer
144 views

Hello,

i have a simple grid with template columns. In the did template of a column i use a RadNumericTextBox.

When editing, the spinbuttons display the text "Spin UpSpin Down" behind the spin images...

when looking at the HTML i can see the following:

<class="spinbutton up" href="javascript:void(0)" id="SN_Interface1_Content_102_SN_Planning_Unloading_AddEdit_HatchAddEdit1_RadGrid1_ctl00_ctl02_ctl03_rnt_Ton_SpinUpButton"><span>Spin Up</span></a>  
<class="spinbutton down" href="javascript:void(0)" id="SN_Interface1_Content_102_SN_Planning_Unloading_AddEdit_HatchAddEdit1_RadGrid1_ctl00_ctl02_ctl03_rnt_Ton_SpinDownButton"><span>Spin Down</span></a>  
 

Why??

It ONLY happens in inline editing, when i use popup, its a goner...

This is my declaration in the aspx:

<telerik:GridTemplateColumn HeaderText="Hatch" SortExpression="Luiknummer" UniqueName="Luiknummer" > 
    <ItemTemplate> 
        <asp:Label runat="server" ID="lbl_Luiknummer" Text='<%# Eval("Luiknummer", "{0:N0}") %>'></asp:Label> 
    </ItemTemplate> 
    <EditItemTemplate> 
        <telerik:RadNumericTextBox ID="rnt_Luiknummer" runat="server" Type="Number" MaxValue="8" MinValue="1" MaxLength="1" ShowSpinButtons="True" NumberFormat-DecimalDigits="0" Skin="Office2007" DbValue='<%# Bind("Luiknummer") %>' Width="40px"></telerik:RadNumericTextBox> 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator_rnt_Luiknummer" runat="server" ErrorMessage="&nbsp;*" ControlToValidate="rnt_Luiknummer" Display="Dynamic" ></asp:RequiredFieldValidator>                      
    </EditItemTemplate> 
    <HeaderStyle HorizontalAlign="Right" Width="100px" /> 
    <ItemStyle HorizontalAlign="Right" /> 
</telerik:GridTemplateColumn> 
 

FYI: "Luiknummer" is "hatchnumber" in english... :-)
Dimo
Telerik team
 answered on 10 Nov 2008
1 answer
213 views
Is there a way to set the imageurl in the web config so it applies to all radwindows and radspell dialogs?  I don't want to update every radwindow/radwindowmanager tag to do this.  I noticed if you set the image url to a non valid image, no image appears.  Is that the proper way to hide the image?
Georgi Tunev
Telerik team
 answered on 10 Nov 2008
1 answer
202 views
Hi, I'm using radwindows to show message in my pages. I found a code to close windows and after redirect to other page, I want this but I need close the windows with a message and refresh the parent page. I use this code.

VB code to open rawindows_message.aspx
System.Web.UI.ScriptManager.RegisterClientScriptBlock(UpdatePanel1, Me.GetType(), "SCRIPT""openRadWindow('rawindows_message.aspx')"True

click to show message, close and reload the parent page.
 ScriptManager.RegisterStartupScript(MeMe.GetType(), "alert""<script type='text/javascript'>Sys.Application.add_load(function(){radalert('you will be redirected to Default.aspx');})</script>"False
  aspx code:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
      <AlertTemplate>  
        <div class="windowpopup radalert">            
            <div class="dialogtext">  
            {1}               
            </div>  
              
            <div>  
                <a  onclick="$find('{0}').close(); window.location.href = 'Default.aspx';"  
                class="radwindowbutton" href="javascript:void(0);">  
                    <span class="outerspan">  
                        <span class="innerspan">##LOC[OK]##</span>  
                    </span>  
                </a>                  
            </div>  
        </div>  
</AlertTemplate>  
    </telerik:RadWindowManager> 

I need close the rawindows_messagea.aspx and reload the parent page (default.aspx)
Svetlina Anati
Telerik team
 answered on 10 Nov 2008
4 answers
149 views
Is there a Hierarchy with the controls that can be linked to one-another?

The reason I ask is because I have a RadSplitter that contains 2 RadPanes separated by a RadSplitBar. The first RadPane (left) contains a RadTreeView control and when the user clicks a node in the tree I want to change the ContentURL of the second RadPane (right).

The problem occurs when I add a RadAjaxManager and in the first pane I select the RadTreeView as the control I want to initiate the callback. I then select the second RadPane as the receiver.

When the user clicks a node in the tree the following error pops up,

Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_ContentPlaceHolder_radPaneContentPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

I was wondering if it was the hierarchy causing the problem as in the RadPane receiving the callback is one level above the RadTreeView initiating it in terms of the control hierarchy,

 - radSplitter
      - radPaneNavigation
           - radTreeView
      - radSplitBar
      - radPaneContent

If it's not that then could someone please explain what the hell is going on...?

To get around the problem I even tried to setup the XJAXing programatically directly on the tree nodes themselves when I dynamically create them but that didn't seem to work at all and I've opened another thread on that topic (Configuring RadAjaxManager Programatically).

One of these ways has to work. Am I doing something really stupid???
Maria Ilieva
Telerik team
 answered on 10 Nov 2008
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?