Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
When I use RadEditor to create a HTML content something strange is happening after I store the content into the database. It was not happening before I think, but since I installed the latest version.
When I need to type a space character, after the content is stored into the database, I get this one in the place of the space: Â If someone knows how to fix that, I would greatly appreciate. I already used the suggestion about the "greek characters after pasting from word", but I think it's not my case.

Thanks,
Ivan
Ivan Stoilkov
Top achievements
Rank 1
 answered on 22 Oct 2009
3 answers
343 views
I have a problem with CSV / Excel-export from RADGrid (Q2 2009).

At my customers site, the export ends up as an Excel appl. completely embedded in the browser window.
The browser window is a RadWindow ... so I end up with an Excell sheet I cannot control at all (no menus).

If I access the site from my own PC, Excel is started as a standalone application - and my customer wants that as well.
I am pretty sure I could solve the problem if I was Administrator on the site (although I dont know yet exactly where to change which setting).

In other areas of the application I have coded my own CSV Export - and it works as the customer wants (Standalone Excel).

I have grabbed the HTTP Response headers from the RadGrid-Export, and found this:
"Content-Disposition: inline;filename="%52%61......"
and this:
Content-Type: application/vnd.ms-excel

In my own CSV-export I use this:
Response.AppendHeader("Content-Disposition", "attachment;filename=Job.csv")
Response.ContentType = "application/download"

Is there somehow a possibility that I can change the way RadGrid does the export ?

Thanks
Daniel
Telerik team
 answered on 22 Oct 2009
1 answer
78 views

Afternoon, please forgive the laymens manner of the question.

When viewing any appoitment in the sceduler or diary views there is a function that allows an appointment to be extended usually at the rhs or base of the particulat appointment.

 

I would like to know if its possible to apply this function to both sides of an appitment, so an appintment could be shortened and lengthed from both sides - Thanks

T. Tsonev
Telerik team
 answered on 22 Oct 2009
2 answers
154 views
I have a RadWindow opened and I can click on the 'X' or Click on a Close button.  The OnClientClick event basically does a oWnd.close().  

The problem is I need to be able to close this window from the 'Close' button when the user hits the Enter key. When I do this it causes a postback.  Normally I would return false.  But I can't return false because the window.close() method takes me out of context. 

Anyone?
Robert
Top achievements
Rank 1
 answered on 22 Oct 2009
2 answers
310 views
Hi

I am using the web blue skin from q3 2008. PLease can you tell me how i can make the expand/collapse column smaller in width. I created a custom skin based on the web blue skin and i have tried to make the width smaller like so

.RadGrid_SureTrack

 

.rgExpand

 

{

 

background-position:2px -722px;

 

 

width: 15px;

 

}



but to no avail.

Many thanks
Jeff Mikla
Top achievements
Rank 1
 answered on 22 Oct 2009
2 answers
201 views
Hi,
 I have the rad masked input text box and when the page is loaded and the masked text box is empty i see the position of _ lines shrinked and when i start typing it moves along. Can any one help please.I ma using telerik 2009
     <telerik:RadMaskedTextBox MaxLength="11" ID="inpID" runat="server" PromptChar="_" 
                Skin="WebBlue" Mask="###-##-####" Height="15px" Width="65px" BorderColor="black"> 
                <ClientEvents OnFocus="Focus" /> 
            </telerik:RadMaskedTextBox>&nbsp;<br /> 
 
 
   
         function Focus(sender, eventArgs) 
            { 
               sender.selectAllText(); 
            } 
         


Thank you
John
Top achievements
Rank 1
 answered on 22 Oct 2009
5 answers
216 views
I have an object that has two complex subobjects that are references to other objects.

    [Telerik.OpenAccess.Persistent(IdentityField = "deploymentID")] 
    public class Deployment 
    { 
        enum DeploymentStatus { Offline = 0, Running = 1, Deploying = 2 }; 
 
        private int deploymentID; 
        public int DeploymentID 
        { 
            get { return deploymentID; } 
            set { deploymentID = value; } 
        } 
 
        private Application deployedApplication; 
        public Application DeployedApplication 
        { 
            get { return deployedApplication; } 
            set { deployedApplication = value; } 
        } 
 
        private Server deployedServer; 
        public Server DeployedServer 
        { 
            get { return deployedServer; } 
            set { deployedServer = value; } 
        } 
... 


I want the Grid to allow me to create, edit and delete this object. I have utilized the GridDropDownColumn

<Columns> 
        <telerik:GridBoundColumn DataField="DeploymentID" DataType="System.Int32" HeaderText="DeploymentID" ReadOnly="True" SortExpression="DeploymentID" UniqueName="DeploymentID"> 
        </telerik:GridBoundColumn> 
        <telerik:GridDropDownColumn DataField="DeployedServer" HeaderText="Server" UniqueName="DeployedServer" DropDownControlType="DropDownList" DataSourceID="odsServers" ListTextField="ServerName" ListValueField="ServerID"></telerik:GridDropDownColumn> 
        <telerik:GridBoundColumn DataField="BuildServerURI" HeaderText="BuildServerURI" SortExpression="BuildServerURI" UniqueName="BuildServerURI"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CurrentBuild" DataType="System.Int32" HeaderText="CurrentBuild" SortExpression="CurrentBuild" UniqueName="CurrentBuild"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Location" HeaderText="Location" SortExpression="Location" UniqueName="Location"> 
        </telerik:GridBoundColumn> 
        <telerik:GridTemplateColumn DataField="Application" UniqueName="TemplateColumn"> 
        </telerik:GridTemplateColumn> 
    </Columns> 


Of course this doesn't work because when editing this the GridDropDownColumn doesn't return the Server object it returns the ServerID (int).

What is the best way to accomplish what I want? Any suggestions?

I have tried creating a DeployedServerID property that would grab the object when passed an id from the dropdown. But then I get a OpenAccess error that two different ObjectScopes tried to manage the same object.

private Server deployedServer; 
        public Server DeployedServer 
        { 
            get { return deployedServer; } 
            set { deployedServer = value; } 
        } 
 
        public int DeployedServerID 
        { 
            get 
            { 
                if (deployedServer == null) 
                    return -1; 
                else 
                    return deployedServer.ServerID; 
            } 
 
            set 
            { 
                deployedServer = (from servers in DataModel.ObjectScope().Extent<Server>() where servers.ServerID == value select servers).First<Server>(); 
            } 
        } 


Thanks,
   Josh



Joshua Kent
Top achievements
Rank 1
 answered on 22 Oct 2009
2 answers
181 views
Hi,

I have a RadGrid with a GridTemplateColumn.  I want my header when I am in Edit or Insert mode, to be aligned to the top vertically?  I searched the forums but found not a single thread on how to do it.  Is everyone else just accepting that the HeaderText is aligned to the middle vertically?  Any help is much aprpeciated.  Thank you.

- Randy
Randy
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
116 views
I'm using a javascript redirect to send the user to on the next page and I'd like to have the RadAjaxLoadingPanel display while this is happening.  I tried this code but currentLoadingPanel is showing up as null.  It would be even better if I could make the panel display from the CodeBehind, otherwise if someone could tell me what I'm doing wrong here, javascript would be fine.

 

var currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");

 

var currentUpdatedControl = "loginArea";

currentLoadingPanel.show(currentUpdatedControl);

 <form id="form1" runat="server">  
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
 
            <script type="text/javascript">  
                function forwardUser(page) {  
                    var currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");  
                    var currentUpdatedControl = "loginArea";  
                    currentLoadingPanel.show(currentUpdatedControl);  
 
                    window.parent.navigate(page);  
                }  
        </script>    </telerik:RadCodeBlock> 
          
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
          
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Web20" /> 
          
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">  
          <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" MinDisplayTime="1000"></telerik:RadAjaxLoadingPanel> 
            <div style="font-size: 8pt; font-family: Tahoma; color: #222222;" id="loginArea">  
              
                <img src="images/Solutions7-Logo.png" alt="" /> 
                  
                <div style="margin-top:5px; text-align: left; width: 150px; margin-left: auto; margin-right: auto">  
                    <telerik:RadTextBox ID="txtUsername" runat="server" EmptyMessage="username"   
                        InvalidStyleDuration="100" Width="125px" MaxLength="25"></telerik:RadTextBox> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"   
                        ControlToValidate="txtUsername" ErrorMessage="Username is required"  Display="Dynamic" EnableClientScript="true" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator> 
 
                    <telerik:RadTextBox ID="txtPassword" style="margin-right:0px;" Runat="server" 
                        Width="125px"  AutoCompleteType="None"   
                        Textmode="Password" SelectionOnFocus="SelectAll" Height="15px"   
                        MaxLength="25"></telerik:RadTextBox><asp:Button ID="Button1" runat="server" 
                            Text="Log In" UseSubmitBehavior="true" /> 
                          
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"   
                        ControlToValidate="txtPassword" ErrorMessage="Password is required" Display="Dynamic" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator> 
                </div> 
                <p> 
                    <asp:Label ID="Label1" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label> 
                </p> 
                <p style="margin-top:15px">  
                    Having trouble? Please <a href=# style="color: #222222">click here</a> for assistance.  
                </p> 
                <p style="margin:5px; vertical-align: bottom;">  
                    <img src="images/microsoft_certified.jpg" /> 
                </p> 
            </div> 
              
              
        </telerik:RadAjaxPanel> 
    </form> 
Daniel
Telerik team
 answered on 22 Oct 2009
1 answer
93 views
Hello,
I want to set a row of my RadGrid to EditMode when I select it.
I write this script function that occour OnRowSelected clientevent
function RowClick(sender, eventArgs)  
                 {  
                  if(editedRow && hasChanges)  
                  {  
                   if(confirm("Update changes?"))  
                   {  
                    hasChanges = false;  
                    $find("<%= GridName.MasterTableView.ClientID %>").updateItem(editedRow);  
                   }  
                   else 
                   {  
                    hasChanges = false;  
                   }  
                  }  
                    
                  if(eventArgs != null){  
                    alert("eventOK");  
                  }else{  
                    alert("eventNULL");  
                  }  
                    
                  editedRow = eventArgs.get_ItemIndexHierarchical();  
                    
                  $find("<%= GridName.MasterTableView.ClientID %>").editItem(editedRow);  
                      
                 } 
My problem is that the eventArgs is always NULL. Can you tell me why this occour? I search on internet a different method to access to the selected row for open it in editmode onrowselected event but I can't find anything.
Best Regards
archimede 
Pavlina
Telerik team
 answered on 22 Oct 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?