Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
186 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
105 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
98 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
239 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
4 answers
982 views
hey guys,

    i want to filtering using combobox inside my radgrid without using sqldatasource
how can i do this?
Eyup
Telerik team
 answered on 27 May 2013
3 answers
158 views
Hi
HtmlChart Has a bug in this senario:
v2013.1.417.45

<%@ Page Language="C#" %>
 
<!DOCTYPE html>
 
<script runat="server">
    protected void btnDetail_Click(Object sender, EventArgs e)
    {
        double[] ValuesArray = { 26.6, 26.5, 25.8, 24.3, 24.9, 23.2, 22.0, 22.4, 22.9, 21.7, 21.2, 20.2 };
        RadHtmlChart1.DataSource = ValuesArray;
        AreaSeries area1 = new AreaSeries();
        RadHtmlChart1.PlotArea.Series.Add(area1);
        RadHtmlChart1.DataBind();
        MultiView1.SetActiveView(View2);
    }
     
    protected void btnBack_Click(Object sender, EventArgs e)
    {
        MultiView1.SetActiveView(View1);
    }
</script>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <Telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Panel1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </Telerik:RadAjaxManager>
        <asp:Panel ID="Panel1" runat="server">
            <asp:MultiView ID="MultiView1" runat="server"
                ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <asp:Button ID="btnDetail" runat="server" Text="Show Details" OnClick="btnDetail_Click" />
                    <div style="display:none;">
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TextBox1" runat="server" />
                        <Telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" />
                    </div>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" />
                    <Telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" />
                </asp:View>
            </asp:MultiView>
        </asp:Panel>
    </form>
</body>
</html>

Danail Vasilev
Telerik team
 answered on 27 May 2013
1 answer
133 views
Hi,
I'm tryng to insert th following in the html view (dnn 6.2). mt.aspx generates a thumb of the picture.

<a rel="img_group" href="/Portals/0/figura2.jpg">
<
img class="thumbnail" style="float:left;" alt="" src="/mt.aspx?u=/Portals/0/figura2.jpg">
</
a>

but when saving the result is.

a rel="img_group" href="/Portals/0/figura2.jpg">
<img class="thumbnail" style="float:left;" alt="" src="/Portals/0/figura2.jpg">
</a>

I also tried to uncheck theremovescript option an to set the AllowScripts property on True. but no chance.

any idea?
Slav
Telerik team
 answered on 27 May 2013
1 answer
89 views
Hi,
      Is it possible to have two colors in a single bar in bar chart (one on top of the other)? Say, if there is a bar with Y value of 100, i want to show 50 of it in red and the top 50 in blue. Is it possible ?

Thanks.
Evgenia
Telerik team
 answered on 27 May 2013
1 answer
95 views
Hello

I want to upgrade our Asp.Net application to a current Telerik Ajax version

Our current production version is: 2012_2_607

The tested version is: 2013_1_417

In the old version, the focus-state of a comboBox was removed, after the user moved on to the next field, or even clicked somewhere else on the page

In the new version the state, once active, stays permanently. Even if there are more then one comboBoxes each one will have the focus-state active

Example:
In the attached image you can see three comboBoxes on a page
The first one was clicked, but nothing was selected (it should turn back to the normal state, like the third one)
In the second one, something was selected, still in focused-state
The third one is untouched

Only a AutoPostBack on the comboBox would make them to return to normal state, this wasn't necessary with the old Telerik version

Code for a comboBox:
<telerik:RadComboBox ID="ddlCountryPhone"
    runat="server"
    DataTextField="display"
    DataValueField="phone_code"
    MarkFirstMatch="true"
    AllowCustomText="False"
    Width="140"
    EmptyMessage="Translate:Country Code Watermark"
    CssClass="margin_down"
    ExpandAnimation-Type="None"
    CollapseAnimation-Type="None" />

How can I fix this behavior?

Kind regards
Jürgen
Nencho
Telerik team
 answered on 27 May 2013
1 answer
60 views

I am using Telerik Grid in my project.I set the "EnableHeaderContextMenu="true" to Hide/Show the Grid Columns. My requirement we are hiding some columns from Grid, I want to know which Columns are hided.




Andrey
Telerik team
 answered on 27 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?