Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
102 views
I have a situation where I am dragging a list box item to one of two scheduler controls on the page.  How would I determine which of the two schedulers was the destination location.  I have followed the Drag and Drop example with the scheduler and datagrid controls.
Andy
Top achievements
Rank 1
Iron
 answered on 26 Jun 2012
1 answer
87 views

I've been stuck on this problem for a few hours now.
I need to save the value of a textbox on a form on ASPX Child Page which may contain html markup. The page also contains multiple Formviews bound to different datasources.
When I try and submit I get a "potentially dangerous request" error.  I tried setting ValidateRequest="false" in the page header, but to no avail.
I assume the answer would be to strip the tags from the value before posting back to the server in javascript, but I cannot figure out a way to make the form perform a submit operation.  I tried the page.submit() ; but it did nothing. And when I tried using the form control I get a javascript error stating submit is not a function.





<
asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
...
     <asp:FormView ID="TwoWeekForm" runat="server" DataSourceID="TwoWeekDataSource"
        DataKeyNames="ID" >
    <ItemTemplate>
 ...
    </ItemTemplate>
    <EditItemTemplate>
 ...
                <asp:TextBox ID="TwoWeekText" runat="server" Text='<%# Bind("Extended") %>' TextMode="MultiLine" CssClass="KeyEvent" style="color:Black"></asp:TextBox>
 ...   
    </table>
    </EditItemTemplate>
...  
    </asp:FormView>

 
<telerik:OpenAccessDataSource ID="TwoWeekDataSource" runat="server"
       EnableDelete="False" EnableInsert="False"
       ObjectContextProvider="CNTracker.OpenAccess.EntitiesModel, CNTracker.OpenAccess"
       TypeName="CNTracker.OpenAccess.Interaction"
       Where="this.Project == @Project AND this.Type == 17">
       <WhereParameters>
           <asp:SessionParameter DefaultValue="1" Name="Project"
               SessionField="CurrentProject" />
          
       </WhereParameters>
   </telerik:OpenAccessDataSource>
Ady
Telerik team
 answered on 26 Jun 2012
1 answer
80 views
using 2012 Q1 trial
for AutoGenerated column, if I have column name UserName, header automatically converted to User Name. how can I stop that doing automatically. If I have IPManagement  as column name, it is converting to I P Management . very annoying.

Please help me to fix this.
Arijit Chatterjee
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Jun 2012
1 answer
72 views
My boss would like to place the month and year navigation buttons on the top left conner of scheduler without the datepicker as shown in the attached image, and have tooltips to show the description of the buttons when mouseover the "<<", "<". ">" and ">>" buttons, would you please give me some hints about how to do it?

Thanks !!!
Sun Lai
Peter
Telerik team
 answered on 26 Jun 2012
1 answer
102 views
If you have a css attribute of 

body { height: 100% }

then the RadEditor will grow with each keypress if you set AutoResizeHeight=true. I put this in my page header as a temp fix:

body { height: auto !important; }

I'd prefer to be more selective than the entire body and I've tried .RadEditor and iframe, as well as a few other css selectors. Is there a better selector or an alternate fix.

Note that this issue is in Firefox 13. Internet Explorer 9 does not have this problem. Q3 2011 SP1 version of ASP.NET Ajax.
Rumen
Telerik team
 answered on 26 Jun 2012
1 answer
84 views
Hai all,

I have a radgrid. I need to remove the grid default column filters when the grid is in Edit mode. How can I do that?

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 26 Jun 2012
2 answers
117 views
Ok I'm kinda new to the Telerik tools so hope this doesn't sound too strange...

I created a user control with the RadWindowManager and a jscript function to open the window as below:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="RadWindowManager.ascx.vb" Inherits="Controls_RadWindowManager" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadWindowManager 
    runat="server" 
    RestrictionZoneID="offsetElement" 
    EnableShadow="true" 
    ShowOnTopWhenMaximized="false" 
    VisibleStatusbar="false"
    Behaviors="Close, Move, Resize, Maximize" 
    Opacity="99" 
    Height="400" 
    Width="400" >
</telerik:RadWindowManager>
 
<script type="text/javascript">
    function OpenRadWindow(urltitlewidthheightmodalonBeforeCloseEventonCloseEvent) {
        if (url == null) { url = "" }
        if (title == null) { title = "" }
        if (width == null) { width = 400 }
        if (height == null) { height = 400 }
        if (modal == null) { modal = true }
 
        var wnd = window.radopen(urlnull);
        wnd.SetTitle(title);
        wnd.setSize(widthheight);
        wnd.set_modal(modal);
        if (onBeforeCloseEvent != null) {
            wnd.add_beforeClose(onBeforeCloseEvent);
        }
        if (onCloseEvent != null) {
            wnd.add_onClose(onCloseEvent);
        }
 
        return false;
    }
</script>

The idea was to not have to declare it all over the place as we have many popups in our system and some require different variables than others.

Anyways Part 2:

In one of my pages I have a popup that requires some inputs and such and needs to refresh the main page when it closes.

<%@ Register Src="~/Controls/RadWindowManager.ascx" TagName="RadWindowManager" TagPrefix="uc3" %>
<uc3:RadWindowManager ID="RadWindowManager" runat="server" />
function OpenAddProduct() {  
            var url = <%= """" & ResolveUrl("~/Levels/Products.Aspx?Popup=1") & """" %>;
            OpenRadWindow(url"Manage Products"765500truenullalert("This is supposed to be a close event..."));
        }

Obviously what I am expecting is when the window is closed an alert to popup with that message, however what I am getting is that as soon as the window opens it is firing the OnClose event the same goes for the OnBeforeClose as well.

Am I just doing something wrong here declaring the window or is there more to it???
John
Top achievements
Rank 1
 answered on 26 Jun 2012
1 answer
120 views
Hello,

In our app, we allow users to select among default Telerik skins. We now created a custom Skin, wrapped up in a .dll, and we want that skin to be available to the users as well. So, User 1 will be using the Telerik skin Sunset, whereas User 2 will be using our Custom skin.

However, I could not find a way to register our skin dll and use it side-by-side with the default skins.

How can we implement this scenario?

Best regards.
Galin
Telerik team
 answered on 26 Jun 2012
0 answers
32 views
Hello friends,

I want to set up my security system to call out wireless to the monitoring center, at the moment it is calling out on land-line which I want to disconnect, I know I need a voip router connected to my security system, but how does the computer or modem receive the signal and how does it dial out?

Best regards
Steven Dilley
Steven
Top achievements
Rank 1
 asked on 26 Jun 2012
15 answers
221 views
Hi Tsvetina,

I've been trying to reply to you on the following topic

How to display background colour on RadNumericTextBox and RadGrid cell after a value is entered?

but I always got a server error.

Regards,
Herman
Vasil
Telerik team
 answered on 26 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?