Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
455 views
Version: RadControls for ASPNET AJAX Q1 2008.
I created a custom control (.ascx) containing a RadEditor. Like this: wucNewsCompose.ascx
<asp:UpdatePanel ID="UpdatePanelDetail" runat="server">
<ContentTemplate>
<
telerik:RadEditor ID="redtContentText" runat="server" Width="690px" Height="590px" 
Skin="Vista" ToolsFile="~/RadControls/RadEditorTools.xml" EnableViewState="true"
     <CssFiles> 
           <telerik:EditorCssFile Value="~/RadControls/MCWFEditorSkin/editorstyle.css" /> 
     </CssFiles> 
     <Tools> 
           <telerik:EditorToolGroup > 
                  <telerik:EditorTool Name="FlvVideoManager" /> 
           </telerik:EditorToolGroup> 
     </Tools> 
</telerik:RadEditor> 
<script type="text/javascript">                                            
     Telerik.Web.UI.Editor.CommandList["FlvVideoManager"] = function(commandName, editor, args) 
     { 
          var myCallbackFunction = function(sender, args) 
          { 
               editor.pasteHtml(String.format("<href={0}>{1}</a> ", args.href, args.text)) 
          }                                               
     };                                                                          
</script> 
</ContentTemplate>
</asp:UpdatePanel>
 

I created a css file and embedded into masterpage:

<link href="../RadControls/MCWFEditorSkin/editorcustomtools.css" rel="stylesheet" type="text/css" /> 
 
The editorcustomtools.css contain: 
 
.rade_toolbar.Vista .FlvVideoManager 
    background-image: url('../../Flvplugin/FLVIcon.gif'); 
    background-repeat: no-repeat;    
 
 

This control is loaded dynamically into page. And there is some problem:
- Icon not displayed
- When clicked the newly created custom button, an alert pop up: "The command FlvVideoManager is not implemented yet" and nothing happened.

Anyone can explained why and how to make it work well?
Thanks for your supporting.
Rumen
Telerik team
 answered on 03 Dec 2008
2 answers
126 views
I have to format columns in my RadGrids based on user-selected formatting, so I can't always format columns in the aspx page, I have to do it in the code behind.

With that in mind, I have a couple of helper functions which I use to format columns in a RadGrid

However, I'm not sure what the best way would be to format columns in a DetailTable. Could someone let me know if this is the best way of achieving this?


Public Shared Sub RadGridColumnFormatDate(ByRef RadGrid1 As RadGrid, ByVal ColumnName As String)
            Dim col As GridBoundColumn

            For Each detailtable In RadGrid1.MasterTableView.DetailTables
                Try
                    col = detailtable.Columns.FindByUniqueName(ColumnName)
                    col.DataFormatString = "{0:" & GetDateFormatStr & "}"
                Catch
                End Try
            Next

            Try
                col = RadGrid1.Columns.FindByUniqueName(ColumnName)
                col.DataFormatString = "{0:" & GetDateFormatStr & "}"
            Catch
            End Try
        End Sub
Rick
Top achievements
Rank 1
 answered on 03 Dec 2008
2 answers
108 views
I have one radsplitter in my page with three RadPanes.
In the first radpane I have inserted a CreateUserWizard.
When I switch to the design view of visual studio I get this error message in the RadSplitter control :

Error Creating Control - RadSplitter1
There can only be one CreateUserWizardStep in your WizardSteps

Any ideas?
Thank you.
(In the first CreateUserWizard in the first radpane I am using two CreateWizardSteps)
Tsvetie
Telerik team
 answered on 03 Dec 2008
8 answers
223 views
Hi,

I am using a panel bar object and using dynamic template with few controls (drop-down list, text area). I need to access these controls inside the template in client-side. I am not sure how to do that. Can you point me in the right direction?

I have tried getting the control's (inside the temple) id as attribute in the item (during pre-render) and tried accessing it using the id in client-side. But it does not seem to be working perfectly. Control's rendering id is different from the id I am getting in the PreRender event of the page.

Thanks
Senthil
Senthil
Top achievements
Rank 1
 answered on 03 Dec 2008
1 answer
74 views
It appears that set_target() and get_target() have been removed from the client RadTreeNode. They are listed in the help, http://www.telerik.com/help/aspnet-ajax/tree_clientradtreenode.html, but they don't exist.

I had planned on traversing the tree and setting the target on all nodes because sometimes the nodes are created without the target attribute even though I have set it in the server code (I think this is because of a bug on the TreeView control).

Thanks,
Fredrik Josefsson
Atanas Korchev
Telerik team
 answered on 03 Dec 2008
1 answer
188 views
Hi,
I have one small problem with RadWindows positions. When I set window position and Modal = true then window appears on center ,not on my seted position
there is my code
<telerik:RadWindowManager ID = "RadWindowmanager1" runat = "server"  
        Modal = "true" Skin = "eApskaitaWindow" EnableEmbeddedSkins="False" Top = "23px"
        <Windows> 
            <telerik:RadWindow ID = "RemindWindow" Behavior="Move, Resize, Close" Height="150px"  
                Width = "500px" runat="server" VisibleStatusbar ="false" VisibleTitlebar = "true" > 
            </telerik:RadWindow>                                                         
        </Windows> 
    </telerik:RadWindowManager> 

Thanks in addition.
Martin
Telerik team
 answered on 03 Dec 2008
1 answer
80 views
Hi ,

I am unable to set the focus on RadColorPicker control on Client Side. 
My code is:
document.getElementById('<%=radIndexScore.ClientID %>').focus()
but this doesnot work. Please let me know, how to set the focus on RadColor Picker?

Thanks,
Mariyam
Tsvetie
Telerik team
 answered on 03 Dec 2008
3 answers
78 views
Hello. I am trying to use group by feature of your grid. My database has a millions of rows so I want to let the SQL server to count the grouping. Thus my sql should looks like that:

select something from something GROUP BY something. (group by expression is included directly in a sql query)

I dont want to let your grid to count the groups aggregates.

Is it possible?
All your examples I have found are about "select columns from table" and group by expressions are declared elsewhere.

Thank you very much.

Tomas
Yavor
Telerik team
 answered on 03 Dec 2008
1 answer
101 views
  1. Firefox 3,  we have two page  main,aspx  and test.aspx main.aspx have 
    <iframe id="Main" onload="MainLoad()" name="Main" src="Test.aspx" frameborder="0" width="100%"></iframe> and some link
    <a href="test.aspx" main="Main">test</a> <a href="test2.aspx" main="Main">test2</a>
    Test.aspx have an button and we are use Decorator. now  when we click "test" width working well sometimes we can see width:75px was be add on A tag style attribute, but some times we can't see it the A tag  style attribute is width:atuo .
    IE7 can work well always.  If we are direclty enter test.aspx on Firefox 3 button working well. it is seems Drcorator load function no be fire.
  2. Button no work in PageView. always (IE7,firefox)
Martin
Telerik team
 answered on 03 Dec 2008
1 answer
165 views
The error message:

Sys.WebForms.PageRequestManagerParserErrorExeption: The message received from the server could not be parsed.  Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.  Details:  Error parsing near '<!DOCTYPE html P''.

We have experienced this error with only the latest Ajax control.  I have read the following blog post (http://blogs.telerik.com/blogs/07-06-24/Firewalls_breaking_ASP_NET_AJAX.aspx) about this issue, but we use SonicWall not Watchguard.  Is there anything we can do to the Firewall to stop this?

Sebastian
Telerik team
 answered on 03 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?