Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
301 views
What is the proper way to set focus to a RadDropDownList using the client-side API?
Shinu
Top achievements
Rank 2
 answered on 28 May 2013
1 answer
89 views
Hi,

I have a strange problem with positioning the background image in IE. It's working OK in Chrome.

I found one thread here and it helpde me, but now I have a new problem in IE.

Here's the CSS code:

.RadTreeView_CRM .rtPlus,
.RadTreeView_CRM .rtMinus {
 background-position:0 0 !important;
 height: 24px !important;
 width: 10px !important;
}

.RadTreeView .rtPlus  {background-image: url('common/show.png') !important; background-position:0 0 !important; height: 24px !important; width: 10px !important; }

.RadTreeView .rtPlus:hover { background-image: url('common/showHover.png') !important; background-position:0 0 !important; height: 24px !important; width: 10px !important; }

.RadTreeView .rtMinus {background-image: url('common/hide.png') !important; background-position:0 0 !important; background-position:0 0 !important; height: 24px !important; width: 10px !important;}

.RadTreeView .rtMinus:hover {background-image: url('common/hideHover.png') !important; background-position:0 0 !important; height: 24px !important; width: 10px !important;}

First the image size was 10px X 10px, but since I was unable to position it in the middle, I've changed the height to 24px. In IE still looks like the image is 10px X 10px (it's still positioned on top).

Any ideas?

Thx.

Uros

Uros
Top achievements
Rank 1
 answered on 27 May 2013
3 answers
158 views
Hello,

I'm evaluating the RadOrgChart control. I set up a simple demo to begin working with the server side object model, but it appears that arguments passed to the NodeDrop handler are always null. Can you help me identify what's not working? Thanks.

<telerik:RadOrgChart ID="RadOrgChart2" runat="server" Skin="Sitefinity" Font-Bold="True" EnableDragAndDrop="True" OnNodeDrop="RadOrgChart2_NodeDrop" DataFieldID="OBJECT_ID" DataFieldParentID="PARENT_ID" DataTextField="Name">
        <RenderedFields>
            <NodeFields>
                <telerik:OrgChartRenderedField DataField="DESC4" Label="TEAM"/>
            </NodeFields>
            <ItemFields>
                <telerik:OrgChartRenderedField DataField="DESC3"/>
            </ItemFields>
        </RenderedFields>
</telerik:RadOrgChart>
protected void bindChart()
        {
            var pathCode = (ConfigurationManager.AppSettings["PathCode"] == "PROD" ? Common.PathCode.PROD : Common.PathCode.TEST02);
            var visDA = new Visibility(pathCode);
             
 
            RadOrgChart2.DataSource = visDA.VisibilityData.GetDataTable("SELECT OBJECT_ID, PARENT_ID, DESC1 + ', ' + DESC2 AS Name, DESC3, DESC4 FROM dbo.HIERARCHY WHERE CLASS_NAME='ORG'", "", 0);
            RadOrgChart2.DataTextField = "Name";
            RadOrgChart2.DataFieldID = "OBJECT_ID";
            RadOrgChart2.DataFieldParentID = "PARENT_ID";
            RadOrgChart2.DataBind();
 
        }
 
        protected void RadOrgChart2_NodeDrop(object sender, Telerik.Web.UI.OrgChartNodeDropEventArguments e)
        {
            var sourceNode = e.SourceNode.ID;
            var destinationNode = e.DestinationNode.ID;
            bindChart();
        }
Philippe GRACA
Top achievements
Rank 1
 answered on 27 May 2013
1 answer
91 views

We are using telerik(2012.3.1016.40) 

In our application we have a custom control which acts as a wrapper for telerik Rad editor.
In that editor we have the image manager button. On clicking "Image Manager" button it opens the Image manger dialog. We select a image from the list and try to insert. instead of inserting it in the editor, it is being inserted in web page outside the editor.Any help on rectifying this is very much appreciated.

Marin Bratanov
Telerik team
 answered on 27 May 2013
2 answers
149 views
Hi, first of all, I'm soory for my bad english ^^,
So, when i run the page  the border of the table tag, are like dotted border, even if i used a style that masks the borders.


here's the code C#:

string txt = "<style type=text/css> table{border=0;}</style>" +
                  "<table>  <tbody><tr> <td>name</td><td>:</td> <td> Sara </td> </tr>" +        
                   "</tbody></table>" ;
RadEditor1.Content=  txt ;



ps: I used also this style but it still doesn't work:
 "<style type=text/css> table{frame:void; rules:none;}</style>"


and the code ASP:

  <telerik:RadEditor runat="server" ID="RadEditor1"   Width="850px"  Height="1265px"  EnableResize="false"  >
          <Content>      </Content>   
  </telerik:RadEditor>  
   
         
                
   
                  
              
Amina
Top achievements
Rank 1
 answered on 27 May 2013
2 answers
100 views

 We are using telerik(2012.3.1016.40)

In our application we have a custom control which acts as a wrapper for telerik Rad editor.

In radeditor Image and hyperlink are working normally when I am not using any server events but when I use any events like 
'OnCommandExecuted'  or 'OnFocus' or 'OnTextChanged' , image manager and hyperlink manager aren't working as expected.
ImageManager will paste the image to somewhere on the page instead of pasting it inside Editor, creating a link is not at all possible using hyperlink manager.

Both these (ImageManager and HyperlinkManager ) are working fine if they are used with client-side events.
Please give some suggestions on rectifying the issue.

Marin Bratanov
Telerik team
 answered on 27 May 2013
1 answer
169 views
hi, im newbie in telerik, i want to ask my problem

i have a grid, textbox and button in parent form.
the button in parent form will show the radwindow when we clicked it, and we can choose the griditem in that radwindow .
when we closed it,  its automatically set field to textbox in parent form AND changed the grid in parent form too, depanding value in  radwindow argument.

the parent form
<telerik:RadScriptBlock runat="server" ID="rsb1">
        <script type="text/javascript">
            function OnClientClose(oWnd, args) {
                var arg = args.get_argument();
   
             if (arg) {
                              
                var tb = document.getElementById('<%=TextBox1.ClientID %>');
                              tb.value = arg.NamaUser;                             
             }
 
         }
        </script>
    </telerik:RadScriptBlock>
             <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" runat="server" >
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Width="650" Height="480" Behaviors="Close"  OnClientClose="OnClientClose" Modal="True" ReloadOnShow="True"
                NavigateUrl="umpilihuserpopup.aspx">
            </telerik:RadWindow>
             
        </Windows>
 
    </telerik:RadWindowManager>
            <div style="background-color: #e6e6e6;">
       
                   Choose User <telerik:RadButton ID="btnlistuser" runat="server" onclick="openWin(); return false;"></telerik:RadButton>  
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>





but when i refresh parent page with "getRadWindow().BrowserWindow.location.reload()"  after that radwindow close, the argument in radwindow can't be read to textbox

in child menu
<script type="text/javascript">
 
        function getRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
 
 
        function closeWindow() {
            getRadWindow().close();
        }
 
 
        function RefreshParentPage() {
           getRadWindow().BrowserWindow.location.reload();
          
        }
 
        function GetFirstDataItemKeyValues() {
            var grid = $find("<%=RadGrid1.ClientID %>");
 
            var masterTable = grid.get_masterTableView();
 
            var selectedRows = masterTable.get_selectedItems();
 
            for (var i = 0; i < selectedRows.length; i++) {
                var row = selectedRows[i];
                var cell = masterTable.getCellByColumnUniqueName(row, "USER_NAME");
                var cell2 = masterTable.getCellByColumnUniqueName(row, "USER_ID");
 
 
 
                var oArg = new Object();
                oArg.myName = document.getElementById("myName").value;
                oArg.Kode = cell2.innerHTML;
                oArg.NamaUser = cell.innerHTML;
 
 
                var currentWindow = getRadWindow();
 
                currentWindow.close(oArg);
 
                RefreshParentPage();
            }



anybody can help me?
thanks before
Marin Bratanov
Telerik team
 answered on 27 May 2013
1 answer
83 views
Hi,
I want to replace the '&' character with 'And' string when a new folder is created or an existing folder is renamed in RadFileExplorer or ImageManager of RadEditor. my goal is to do not allow the users to enter '&' character.

Best Regards,
Jafar Amiri

Dobromir
Telerik team
 answered on 27 May 2013
1 answer
82 views
i have followed RadBinaryImage and RadBarcode example according the following link http://www.telerik.com/help/aspnet-ajax/barcode-outputtype.html.
but there are no definition for LineWidth  and .GetImage() method 


code:

    RadBarcode barcode = new RadBarcode();
barcode.LineWidth = 2;           
barcode.GetImage();
Shinu
Top achievements
Rank 2
 answered on 27 May 2013
3 answers
208 views
Is there is setting that will allow me to show the treeview with the files directly under the folder/sub-folder they belong to when i have FileTree mode enabled?

top level folder
+-file1.jpg
+-file2.jpg
+-sub folder
   +-another1.jpg

We have lots of sub folders and files at both levels, right now the users cant see the files as they are so far away from the folder they belong to - OR - they think the files belong to the last sub folder in the list :(

We have already implemented custom providers, so that we can implement custom sorting over the folders and custom sorting of the files,... 
Dobromir
Telerik team
 answered on 27 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?