Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
152 views

Folks,

Environment: VS 2008 SP1, RadControls for ASP.NET AJAX Q3 2009, WIN XP SP3, IE7, SQL SERVER 2005.

Based on below post, showimagecs.aspx will be in the same folder as RadUpload in an Ajaxified Grid. But I do not see it there. Only files I see under the folder RadUploadInAjaxifiedGrid are:

a) Default.html b) DefaultCS.aspx c) DefaultCS.aspx.cs d) DefaultVB.aspx e) DefaultVB.aspx.vb .

Am I missing some thing?

http://www.telerik.com/community/forums/aspnet-ajax/upload/using-radupload-in-an-ajaxified-grid-showimagecs-aspx.aspx


Is it possible to upload: a) .doc b) .xls c) .pdf d) .Jpg files from Radupload into SQL 2005 Table and allow users to preview the uploaded files (using double click) from Rad Grid?

In my sql Table, I have a table name call AttachmentFiles with 3 columns:

a) Id Int unique Primary Key
b) File Description Nvarchar (255)
c) Data  (Uploaded file Data).

Any example or a prototype project will be highly appreciated.

Thanks

GC_0620

Genady Sergeev
Telerik team
 answered on 10 Feb 2010
4 answers
106 views
Hi,

I am a new user of Telerik (Still using the evaluation version at the moment, just about to buy licences).

I have one, I guess trivial, problem with the RadComboBox control.  Everywhere it is used in our application, when clicked the list of values appears to the right of the control.  (Please see attached screenshot)

This occurs when the format is auto generated, and also when I code the control manually, eg:

  <telerik:RadComboBox Height="140px" 
                                Width="220px"                                               
                                ID="RadComboBox2" 
                                runat="server" 
                                SelectedValue='<%#Bind("OFFER_STATUS") %>'>
                                 <Items>
                                  <telerik:RadComboBoxItem Text="Active" Value="Active" />
                                  <telerik:RadComboBoxItem Text="Inactive" Value="Inactive" />
                                 </Items>
                            </telerik:RadComboBox>

Could this be a problem in ContentMaster.master, as it happens on every page?  Any hints on how I might debug this would be greatly appreciated.

Thanks!
Kamen Bundev
Telerik team
 answered on 10 Feb 2010
1 answer
112 views
HI all, the content on my rotator is being indent and I do not know how to align it to the left. I have tried css margin and positions but none seem to work. I looked at the code and it has some markup that I do not understand:

<style type="text/css">
   <!--@page { margin: 2cm }P { margin-bottom: 0.21cm }A:link { so-language: zxx }-->
</style>
<ul>
 <li>
    <p style="margin-bottom: 0cm; line-height: 150%;" align="LEFT"><font face="Arial, sans-serif">My Content Is HER</font></p>
 </li>
</ul


Where does that @page stuff come from, and how do I disable it?
Fiko
Telerik team
 answered on 10 Feb 2010
1 answer
91 views
Hi,

I wonder if I can use the Telerik "ASP.NET AJAX library" and the "Ajax Control Toolkit" simultaneously on the same website?

Will there any performance issues ? I mean ; Related to multiples script resources that had to be downloded

Because I like the ExtenderValidator of Ajax Toolkit and this is something that is not present in the library for Telerik.

Best regards
Sebastian
Telerik team
 answered on 10 Feb 2010
2 answers
126 views
Hello,

I have one page e.g. New Item Create Page. on which there is combo for Category and next to it button to add new category. on clicking on button RAD window is opened as modal window for adding new category. But when I close this modal window the main page refreshes which whole page and clears the values in the controls.
I need to keep this controls to keep their values.
So, I want such help like onClientClose of the modal window only combobox gets refreshed.


Thanks in Advance.
Zinith Patel
Top achievements
Rank 1
 answered on 10 Feb 2010
1 answer
208 views

Hi

I have a content page (main.aspx) which launches rad windows through a RadWindowManager.  Each of these child windows can also launch "grandchild" RadWindows, but by using the RadWindowManager on the parent page.  This is essential as I want each "grandchild" window to be freely moveable outside the bounds of the child window.

The content of each RadWindow is a separate .ASPX page which runs from a Master Page.  This MasterPage has its own RadAjaxManager and the window content page has a RadAjaxManagerProxy. 

The parent page and the child windows have RadGrids, and I want to rebind these when the "grandchild" editing window is closed. A typical sequence might involved:

1. Button clicked on main.aspx to launch child.aspx in window
2. Button clicked on child.aspx to launch grandchild.aspx in window
3. Data edited on grandchild.aspx and grandchild.aspx closed
4. Grid in child.aspx rebound when grandchild.aspx is closed.
5. Data edited in child.aspx and child.aspx closed.
6. Data grid in main.aspx rebound.

Rebinding is done using the OnClientClose JavaScript method and a RadAjaxManager. Essentially, the jS method generates a Ajax Request which is handled in a code-behind handler function which performs the  necessary rebinding. 

Here is the problem - the OnClientClose JS function MUST be on the main.aspx as this is where the RadWindowManager is.  Whenever the child.aspx windows or grandchild.aspx windows are closed, this OnClientClose function fires as expected - BUT the AjaxRequest is ALWAYS handled by main.aspx - this is presumably because the RadAjaxManager.GetCurrent(Page) method always returns the manager on the main.aspx page.

function Window_OnClientClose(oWnd, eventArgs) {  
 
            var Rebind = oWnd.get_contentFrame().contentWindow.GetRefreshValue();  
            var Argument = oWnd.get_contentFrame().contentWindow.GetArgumentValue();  
 
            if (typeof (Rebind) !== 'undefined' && Rebind != null) {  
                if (Rebind == "True") {  
                    var AjaxManager = $find("<%=RadAjaxManager.GetCurrent(Page).ClientID %>");  
                    if (AjaxManager) {  
                        AjaxManager.ajaxRequest(Argument);  
                    }  
                }  
            }  
        } 

The Rebind and Argument variables above are for dealing with the rebinding and not important to the basic functionality.  I am using code similar to this on the main.aspx page and in the child windows for dealing with the AjaxRequest:

        Public Sub Page_Load(ByVal Sender As Object, ByVal e As EventArgs) Handles MyBase.Load  
 
            Dim Manager As RadAjaxManager = RadAjaxManager.GetCurrent(Page)  
            AddHandler Manager.AjaxRequest, AddressOf AjaxManager_AjaxRequest  
 
        End Sub 

Protected Sub AjaxManager_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs)  
 
            Select Case e.Argument.ToString  
 
                Case "Product" 
                    ProductsGrid.Rebind()  
 
            End Select 
 
        End Sub 


If a window has a radgrid that needs to be rebound (or any other action when its child window is closed), then I need to be able to handle an AjaxRequest on this page that is generated from the main.aspx in the window, NOT on the main.aspx page.

Essentially, I need to be able to reference the RadAjaxManager in the child windows from the main page

How can I do this?

Iana Tsolova
Telerik team
 answered on 10 Feb 2010
1 answer
85 views

   When i used radwindow using javascript i phase 1 problem i.e when i take value from the radwindow to my radtextbox at that time it is not assigned but when i click on that textbox than it is assigned. why it is happened?.
Reply me

Sadhna
 
Shinu
Top achievements
Rank 2
 answered on 10 Feb 2010
1 answer
150 views
According to the documentation the OnRowSelected client event fires after the row is selected. There is a defect becuase when you call the rebind() method on the grid inside of this client side function the currently selected row (client side) is not reflected server-side.

The work around is to use the OnRowClick event instead. When calling the rebind() on the grid inside this client side function the currently selected row is properly reflected server-side.

 
        function onUserSelected(sender, eventArgs) {  
            var mTable = sender.get_masterTableView();  
            mTable.rebind(); // after this is called check the server-side needs data source event and the row currently selected client-side is not what is reflected server-side  
        }  
 
...  
 
<telerik:RadGrid ID="UsersGroupsGrid" runat="server"  OnNeedDataSource="UsersGroupsGrid_NeedDataSource">  
   <ClientSettings EnableRowHoverStyle="True">  
      <Selecting AllowRowSelect="True" /> 
      <ClientEvents OnRowSelected="onUserSelected" /> 
   </ClientSettings> 
</telerik:RadGrid> 

Thanks,
Joey
Tsvetoslav
Telerik team
 answered on 10 Feb 2010
3 answers
131 views
Hi

Should the editor ever change the content from something like this:
 "This is the name of an <actor type='test'>Actor</actor> and this is the name of <movie>Movie</movie>"

 


to this:
"This is the name of an <actor type=\"test\" />Actor and this is the name of <movie />Movie"

This is happening in my current project, however, I created a second test project and do not see that behavior exibited. 

In both projects I am setting the content with a button (the real project is in an XMLHttpPanel, the test one is just using a normal postback).  If I look at the content in both projects after the load, they are both set correctly.

I then retrieve the content using a second button (again, real one is doing a partial page postback), the test one is doing a normal postback, and if I look at the content from the real project, it changes to <actor type="\test\"/> while the test project correclty shows <actor type='test'>Actor</actor>..

I copied the radeditor from the real project to the test one, except for the toolsfile, to ensure that there wasn't something set on the editor which might be causing this. 

Any ideas?

Rumen
Telerik team
 answered on 10 Feb 2010
1 answer
87 views
Any reason why RadInputManager doesn't work with standard HTML controls?  For AJAX sites not doing postbacks, there's no reason to have server controls...which unnecessarily cause extra work for because of control IDs.
Dimo
Telerik team
 answered on 10 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?