Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hello,

I have a radwindow inside which I have a radeditor.  I load the radeditor with content from a database.  I have a preview button in the radwindow and when I click that it opens another radwindow.  When I close this radwindow it deletes the content in the radeditor.  It does not affect the rest of the controls in the radwindow.  It just affects the radeditor.  How do I fix this.

Here is my code with both the radwindow- 

<tlrk:RadWindow ID="Dialog1" runat="server" Width="900px" VisibleStatusbar="false" Behaviors="Close,Move">
  <ContentTemplate>
   <asp:UpdatePanel ID="Dialog1UpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
     <div class="DialogBase DialogShading1" style="width:100%">
      <br />
      <asp:Label ID="lblSql" runat="server" Text =""/>
      <table class="center" style="width: 100%;">
       <tr>
        <td align="left" style="padding:10px"><strong>Help ID</strong> <br />
         <asp:TextBox ID="D0_txtHelpID" runat="server" Width="300px"  /></td>
        <td align="left"><strong>Title</strong> <br />
         <asp:TextBox ID="D0_txtTitle" runat="server" Width="500px"  /></td>
       </tr>
       <tr valign="top">
        <td align="left" style="padding:10px"><strong>Module</strong> <br />
         <asp:TextBox ID="D0_txtModule" runat="server" Width="300px"  /><br /><br />
         <strong>Page</strong><br />
         <asp:TextBox ID="D0_txtPage" runat="server" Width="300px"  /><br /><br />
         <strong>Dialog</strong><br />
         <asp:TextBox ID="D0_txtDialog" runat="server" Width="300px" /><br /><br />
         <strong>Item</strong><br />
         <asp:TextBox ID="D0_txtItem" runat="server" Width="300px" /> <br /><br />
         <strong>Note</strong><br /> 
         <asp:TextBox ID="D0_txtNote" runat="server" Width="300px" TextMode="MultiLine" Height="100px" />
        </td>
        <td align="left"><strong>Article</strong> <br />
         <tlrk:RadEditor ID="D0_RadArticle" runat ="server" Width="530px"  /> 
        </td>
       </tr>       
      </table>
      <div class="DialogFooter"> 
      <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
         <td align="left" style="width: 500px">
          <asp:Button ID="D0_Preview" runat="server" Text="Preview"  CssClass="DialogButton" OnClientClick="Preview_Click();return false;" />
         </td>
         <td align="right">
          <asp:Button ID="D0_OK" runat="server" Text="Save" OnClick="D0_OK_Click" CssClass="DialogButton"/>
          <input type="submit" value="Cancel" onclick="OI.Dialog.CloseDialog('<%= Dialog1.ClientID %>');return false;" class="DialogButton" />
         </td>
        </tr>
       </table>
      </div>     
     </div>
    </ContentTemplate>
   </asp:UpdatePanel>
  </ContentTemplate> 
 </tlrk:RadWindow> 

  <%-- Help --%>
  <tlrk:RadWindow ID="HelpDialog" runat="server" Width="416px" Height="508px" VisibleStatusbar="false" Behaviors="Close,Move" Title="Help" 
   IconUrl="../Images/Ribbon/Buttons/help_16_normal.gif">
    <ContentTemplate>
     <div class="HelpDialogContent">
      <div class="DialogToolbar">
       <div class="HelpBackForwardOffset">
        <oi:RibbonButton ID="HelpBack" runat="server" ButtonType="Back22" OnClientClick="OI.Help.Back();return false;" FloatDirection="Left" ButtonSpacing="1" Enabled="false" Style="position:relative;" />
        <oi:RibbonButton ID="HelpForward" runat="server" ButtonType="Forward22" OnClientClick="OI.Help.Forward();return false;" FloatDirection="Left" ButtonSpacing="1" Enabled="false" Style="position:relative;" />
        <img alt="" id="HelpThrobber" src="../Images/Utility/throbber_blue.gif" style="float: right; padding-right: 3px; padding-top: 1px;" />
       </div>
      </div>
      <div id="HelpTitle">&nbsp;</div>
      <div id="HelpScroll" class="scrollVertical_386">
       <div id="HelpArticle" style="padding:10px;">
      <div style="height:170px;"></div>
      <div style="vertical-align:middle;text-align:center;">Loading... <img alt="" src="../Images/Utility/spinner_aero_16.gif" /></div>
     </div>
    </div>
     </div>
    </ContentTemplate>
   </tlrk:RadWindow>
Misho
Telerik team
 answered on 04 Jun 2013
1 answer
96 views
At the moment I'm having problems with my current Session timeout scheme.  2 questions.

1.  Do I understand correctly?  This control will refresh the Session (and keep the Session variables from expiring) without reposting the whole page?

2. If I did start using this, I would still have a problem.  I have a Dot Net 4.0 Web app that uses Telerik controls.  It also uses the window.radopen command to create popup editing windows.  If I implement the Notification control in the main window, how do I do a reset from the popup?  Say, for example, reset the timer on every keystroke in an editing field.
Slav
Telerik team
 answered on 04 Jun 2013
0 answers
93 views
deleted
Ryan
Top achievements
Rank 1
 asked on 04 Jun 2013
0 answers
74 views
deleted
Ryan
Top achievements
Rank 1
 asked on 04 Jun 2013
1 answer
76 views
Hi
How can I get the unique name of the filtering column?

Allen
Princy
Top achievements
Rank 2
 answered on 04 Jun 2013
6 answers
547 views
I Have rad grid Inside ,I have 5 column, In that one column consist , Rad text Box ,in "insert Item" template ,And also I have Rad window Inside  ,The Rad window manager ,In the rad window  content template consist of the ,rad text Box 2, user give value and click on, OK Button ,I want transfer the value to "Rad Text  Box" Inside the rad grid . I want to These operation "In rad grid and edit mode".
In Need these operation using "javascript" .
How to access the rad-grid,column and controls in it,using java script  
ex:-
1.rad grid1-->master table---> 5 columns-->1 column--> item template
                                                                                      insert item template
                                                                                                     <rad text box>

2.rad window manager-->windows-->rad window-->content template-->Rad Text Box---> access

Radtextbox1.text=RadTextBox2.text;

How to access the both ,in using java script
like
<"%=radgrid1.client-id%=">

Help me telerik team.
Sairam
Top achievements
Rank 1
 answered on 04 Jun 2013
1 answer
121 views
Perhaps someone can help with this.

I'm currently trying to upload some files to be inserted into a db table.  The files are linked to a parent record id in a different table.

Appointment <= (Many) Attachments

So one appointment can have many attachments.

Within a radgrid the user enters details for a new appointment and can then upload attachment files.  The attachment files are to be inserted  with the new appointment record id.

The problem I have found is that the File Upload triggers before the insert of the new record (which is inserted using an entitydatasource).

My thinking is that if I can capture the insert of the record and use PostbackTriggers, I can insert the new appointment, capture the newly generated appointment id, then trigger the upload of the files which will now be able to be inserted with the appointment id.

If anyone could point me to an example where you can capture the PerformInsertButton button click on the insert form and then trigger the upload in this order it would be considerable help at the moment.

The nearest example code I can find for what I want to do seems to be Scotts code in this post :

http://www.telerik.com/community/forums/aspnet-ajax/async-upload/retain-uploaded-files-for-display-after-postback.aspx

Thanks.
Hristo Valyavicharski
Telerik team
 answered on 04 Jun 2013
1 answer
202 views
First of all, I'm using a RadMaskedTextBox inside of the Edit Template of a Radgrid.  SelectionOnFocus is set to "SelectAll" but that doesn't seem to be working. When I type in numbers, it doesn't replace the mask, but overwrites it instead. 

For example, the mask I have is "xx-xxx-xxxx".  So it looks like this in the textbox: __-___-____   However, when I place the cursor at the beginning and type, it shows something like: 353435__-___-____ or _34343_-___-____.   I am creating this textbox at Design Time.  I've read the RadControls for ASP.NET AJAX  documentation, but it doesn't seem to help with this problem.  Any suggestions? Thanks.

 

<EditItemTemplate>

 

<telerik:RadMaskedTextBox ID ="_tbLocationNumberMasked" runat="server"

Mask="##-###-####" SelectionOnFocus="SelectAll" >
</EditItemTemplate>




Using Visual Studio Extensions for RadControls for ASP.NET AJAX  Version 2011.1.519.0
Vasil
Telerik team
 answered on 04 Jun 2013
1 answer
488 views
Hi
     Would like to know if I can I retrieve cell value in itemdatabound event. If yes can somebody guide me how.

thanks
Savyo
Princy
Top achievements
Rank 2
 answered on 04 Jun 2013
2 answers
106 views
First of all, I'm using a RadMaskedTextBox inside of the Edit Template of a Radgrid.  SelectionOnFocus is set to "SelectAll" but that doesn't seem to be working. When I type in numbers, it doesn't replace the mask, but overwrites it instead.

For example, the mask I have is "xx-xxx-xxxx".  So it looks like this in the textbox: __-___-____   However, when I place the cursor at the beginning and type, it shows something like: 353435__-___-____ or _34343_-___-____.   I am creating this textbox at Design Time.  I've read the RadControls for ASP.NET AJAX  documentation, but it doesn't seem to help with this problem.  Any suggestions? Thanks.

 

<EditItemTemplate>

 

<telerik:RadMaskedTextBox ID ="_tbLocationNumberMasked" runat="server"

Mask="##-###-####" SelectionOnFocus="SelectAll" >
</EditItemTemplate>




Using Visual Studio Extensions for RadControls for ASP.NET AJAX  Version 2011.1.519.0
Kostadin
Telerik team
 answered on 04 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?