Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views


Hi

I need to have headers as below for my requirement.

--------------------------------------------------------------------------------
                                      Section1                      section2
--------------------------------------------------------------------------------
Column1  column2        column3   column4     Column5  column6
---------------------------------------------------------------------------------

visually column3 and column4 are under section1 header, Column5 and column6 will be under Section2 header

Can you please tell me how to achieve this?

Regards,
Satya.
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2009
1 answer
177 views
Hello,

I have a radupload in a radgrid's edit form template and I've set the allowed file extensions in the properties window as well as set them in the validating file event method.  I also have a radupload in a form on my page outside of the grid and I don't think the allowed file extensions property worked correctly with that one either but it didn't matter because I have java script that I use in a custom validator  that took care of that along with making the upload a required field.  Do I have to have java script and the custom validator to have the allowed file extensions property to work or should I just have to set the files to be allowed in the property window?  If I do need to use the java script and custom validator how do I find a control that is in a grid's edit form template using javascript?

Thanks for the help,
Kirk
Genady Sergeev
Telerik team
 answered on 22 Oct 2009
1 answer
115 views
Hi,

The height of the header of my grid is not predefined. When all headers are single-row it's OK. But when some headers are two-row (the column header text something like this: First row<br/>Second row) it looks poorly: just above the vertical scrollbar it is single-row which produces unneccessary lines. See an example in the attached little print-screen.
This is when using IE, Chrome, Opera and Safari. When using FireFox it looks OK - the space above the scrollbar is colored as grid.BackColor, which is acceptable.

I'm using RadControls for ASP.NET AJAX Q2 2009.

Best regards
Tomasz
tmlipinski
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
99 views
How can i block Every last tuesday in Every Month..
Princy
Top achievements
Rank 2
 answered on 22 Oct 2009
2 answers
163 views
Hi there,

I try to use the RADEditor in a SharePoint PageLayout as a substiture for the PublishingWebControls:RichHtmlField.

First I tried to use telerik:RadHtmlField instead of the default MOSS-Tag. But I want to set my own, individual (dynamical) paths for the Editor's ImageManager, DocumentManager, etc. so I can't use the config-file. As a matter of this, I created my own class which has Telerik.SharePoint.FieldEditor.RadHtmlField as base-class and a public method that returns the radEditorControl:

    public class SLRADHtmlField : Telerik.SharePoint.FieldEditor.RadHtmlField 
    { 
        public MOSSRadEditor GetMOSSRADEditorControl() 
        { 
            return radEditorControl; 
        } 
    } 


Now I can replace <telerik:RadHtmlField id="..." FieldName="Resolution".../> by my own tag <sl:SLRadHtmlField id="..." FieldName="Resolution".../>

In the overridden OnLoadComplete-Method in my CodeBehind-Class now I have access to the RadEditor-Control by using the following code:

MOSSRadEditor RadEditor = SLRADHtmlField.GetMOSSRADEditorControl(); 


After this, I can modify ImageManager-settings and so on...

First trying seemed to be successful, the entered text was saved after submitting. So I tried some little more like formatting in bold, italic, underline. That was successfully too.. partial. The underline-style was not saved. After that, I tried to insert an image. Adding the image to the editor-field was successful too but after saving, the image was gone.

I had a look to the html-tab in the editor and both, the <span>-tag for the underlining and the <img>-tag were removed.
After a lot of googling and reading other threads in this forum, I found this page about contentfilters. Now I added this line to my code:

RadEditor.ContentFilters = EditorFilters.None; 


It prevents that the underline-tag is stored as <span> but remains as <u>-tag.
This solved the problem with the disappearing underline but not with the disappearing <img>-tag.

It seems that some special tags (like <span> or <img>) are stripped out completely but I haven't looked yet which other tags are also removed.

Meanwhile I don't have any ideas no more...

Could you please give me some guidance?

I installed the radeditormoss.wsp and added references in my Visual Studio project to the RadEditorSharePoint.dll Version 5.5.1.0 and because of that to the Telerik.Web.UI.dll Version 2009.2.826.20.

Greetings from Germany,
Ricky Mattischeck
Ricky Mattischeck
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
93 views
We've been using the ASP.NET Ajax RadTabStrip (and other controls) since it came out to great success. We use RadTabStrip on our main "Dashboard" page, where users can organize their screens of data by assigning them to different tabs. Users can create as many tabs as they want.

Some users have more tabs than will fit on screen, so to conserve precious space we've set ScrollChildren="true", and use scrollIntoView() whenever necessary so that users can always see the selected tab. However, the scrollIntoView function now throws a Javascript error ('getTab(...)' is null or not an object) since we upgraded to ASP.NET 3.5 and RadControls for AJAX build 2009.2.826. Previously we were using 2009.1.527 and scrollIntoView worked fine for us.

Further testing (on a very basic page with static tabs) revealed that the error only occurs when PerTabScrolling is false (the default). While setting PerTabScrolling to True would seem like a simple answer, it doesn't work for us because scrolling through 10-20 tabs at one tab per click is not practical, plus the tabs jump rather than move, making it confusing to the user as to what just happened.

I also tried manually manipulating ScrollPosition, but alas, this only works when PerTabScrolling is true. At least that behavior is in the documentation.

Is there a workaround until this is fixed in an upcoming build? It's a real deal-breaker for us.

Regards,

John Greenstreet, Consultant
Automotive Resources Inc.
Paul
Telerik team
 answered on 22 Oct 2009
1 answer
137 views
I have a control hierarchy that looks like the following:

RadWindow
    -> asp.net page (using a masterpage)
        -> web user control (inside a ContentPlaceHolder)
            -> RadPanelBar
                -> RadPanelItem
                    -> ItemTemplate
                        -> RadToolBar (Controls the formview insert/edit modes)
                        -> FormView (same level as the RadToolBar)
                            -> EditItemTemplate
                                -> TextBox

The problem is with the TextBox. When the FormView is bound to data, the Textbox behaves as if it were readonly. In fact, any input control that allows typing behaves as if it were readonly. For example, a RadDatePicker control will not accept typed input, but it will allow you to select a value using the Calendar control attached to it.

As a test, I placed a textbox in a separate RadPanelItem and as soon as the formview binds to a datasource, the textbox becomes "readonly".

It's almost as if the focus of the textbox is lost as soon as you select it. If you click rapidly on the textbox while mashing the keyboard, sometimes letters make it through to the textbox.

Let me know if you require additional information.
Paul
Telerik team
 answered on 22 Oct 2009
2 answers
154 views
Hi there,

I am writing a component that involves dragging nodes from the one tree to another, as in the drag-and-drop example given in the demos at http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx.  I make all the changes on the client and then commit them to the server when the user presses a button, using the client-side tree.trackChanges() and tree.commitChanges() functions.  In my component, only changes to the right-hand tree are kept.  Initially, the two trees are the same, and the right-hand one is my "true" version.

After each postback, I need to synchronise the two trees again.  The trouble is that I can't find the right place in the page life-cycle to do so.  I have tried putting code in the Page_Load() or Page_PreRender() methods, but the trees haven't been updated (with the client-side changes) by that point, so this doesn't work.  Can you advise me?

All answers gratefully received,

Ed
Ed
Top achievements
Rank 1
 answered on 22 Oct 2009
6 answers
184 views
Hi
Just started mocking up some Telerik combo boxes works a treat.
Disabled Javascript on the browser and the telerik controls are dead in the water.
I was sure that they were able to 'fall back' to a dumber version.
At the moment I am adding
"<noscript><asp:DropDownList  /></noscript>"
 controls on the page which is unwanted duplication but until a solution is found for the Telerik control settings that all I can so.

I have searched the site for key workds like "javascript disabled", "<noscript>" but get nothing.
What do I do ?

 

 

 

Paul
Telerik team
 answered on 22 Oct 2009
2 answers
209 views
The functionality I am trying to obtain here is that when my ImageButton is clicked, I'd like my RadTextBox's height to be resized by a few more lines.  I've attempted this using this Count function in javascript, however, when it gets called - the height is not changed, the RadTextBox is only moved 2000px to the bottom of the panel.  I am wondering if there is an easier way to accomplish this? 


<style type="text/css">     
#expandButton 
    { 
        position: absolute; 
        top: 20px; 
        right: 5px; 
    } 
</style> 
 
<script type="text/javascript">  
    function clearText(field) {  
  
        if (field.defaultValue == field.value) field.value = '';  
        else if (field.value == '') fieldfieldfield.value = field.defaultValue;  
    }  
  
  
    function Count() {  
        var text = document.getElementById('<%=txtUserNote.ClientID%>');  
        text.style.height = "2000px";  
          
              
    }  
  
</script>  
<body bgcolor="#F4F4F4" runat="server" id="MainBody">  
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%">  
            <asp:Literal ID="notesHeader" runat="server">  
            </asp:Literal>  
            <telerik:RadTextBox ID="txtUserNote" runat="server" TextMode="MultiLine" Width="99%"  
                Height="15px" Visible="False" Value="Click to Enter New Note" Font-Size="10px" OnFocus=  
                "clearText(this)">  
            </telerik:RadTextBox>  
              
            <div id="expandButton">  
            <asp:ImageButton runat="server" ID="expandTbButton" ImageUrl="images/expand.gif" OnClientClick="Count(); return false;"/>  
            </div>  
             
    </telerik:RadAjaxPanel>  
</body> 
 

Lindsey Kelly
Top achievements
Rank 1
 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?