Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
253 views
Hi guys.

I need some help to implement this scenario: OnButton1_Click I need to close radwindow, and redirect the parent page.

Thnx in advance
Marin Bratanov
Telerik team
 answered on 16 Oct 2014
2 answers
147 views
Hi,

I am trying to toggle the visibility of a searchbox on my page using a button.
but for some reason the searchbox never disappear.

<asp:ImageButton
    ImageUrl="Images/zoom-search-2-icon.png"
    AlternateText="Search"
    ToolTip="Search"
    Height="32"
    Width="32"
    runat="server"
    CssClass="iconImageStyle"
    OnClientClick="Search_Click()" />
 
<telerik:RadSearchBox
    ID="CmbBx_Search"
    runat="server"
    Width="550px"
    EmptyMessage="Search..."
    OnClientSearch="PerformSearch"
    ShowSearchButton="true">
    <DropDownSettings Height="400" Width="300" />
    <WebServiceSettings Path="Main.aspx" Method="GetResults" />
</telerik:RadSearchBox>
 
<script type='text/javascript'>
    function Search_Click() {
        toggle_visibility('CmbBx_Search');
    }
 
    function toggle_visibility(id) {
        var e = document.getElementById(id);
        if (e.style.display == 'block')
            e.style.display = 'none';
        else
            e.style.display = 'block';
    }
</script>

From the code behind if I change the Visibility, it works.
But I do not want to do this from the code behind. I need to do it from client-side javascript.
Mickael
Top achievements
Rank 1
 answered on 16 Oct 2014
1 answer
215 views
Hi,

Is there a good way of implementing a way of selecting one of the uploaded files (e.g. with radio button) that an action will be performed on?
Optimally I would like to see it in the the list of files, for example in front of the file names.

Currently I am doing this by filling a RadCombobox box with the list of file names, but the UI is somewhat cluttered and not very transparent.

Thanks,
Markús
Boyan Dimitrov
Telerik team
 answered on 16 Oct 2014
3 answers
111 views
hello,
I was trying to test your demo's Grid - Batch Editing.
But I found the problem in GridNumericColumn..

I changed UnitPrice Column's Value
15.00 -> 15.99
But the cell's focus out.
Value is back to 15.00 (originally value)

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Please test that
Milena
Telerik team
 answered on 16 Oct 2014
1 answer
113 views
Hi all -

I'm new to these controls.

I have a page that is using three grid controls.  One of the three controls is dependent upon successful data selection by the user from one of the other grids; the user selects the desired parameters via checkboxes and then clicks a button to populate the third grid. While all three are initially populating successfully, that third grid can have a lengthy result set and when I attempt to move to another page the grid empties and I get the default 'no data' message that I assigned to the 'NoMasterRecordsText' property although none of the other data on the page has changed.  Do I need to do something specific in the postback perhaps to get the pagination to work correctly?

Thanks in advance!
Eyup
Telerik team
 answered on 16 Oct 2014
1 answer
120 views
I have a RadGrid, where on Click of "Add new record", I have a textboxe and a button. The text box acts like google search. On typing on it, it searches and displays records accordingly. For this, I have the following onPrerender
    
AjaxControlToolkit.ToolkitScriptManager.RegisterStartupScript(this, typeof(string), this._TbName.ClientID, "DelegateSearch();", true);

But the JQuery method DelegateSearch() is never called!
Radoslav
Telerik team
 answered on 16 Oct 2014
1 answer
135 views
I have a grid that using a combobox.  When I try to retrieve the values of the selected row, the GridBoundColumn work perfect, but the combobox comes up empty.  Here's my code:  

Thank you, Steve

Server Code:
public void AddReplenish(RadGrid gridReplenish)
{
    var replenish = iso.Get<Crane.OMS.ORM.OMS.Replenish>();

    foreach (GridDataItem dataItem in gridReplenish.Items)
    {
        if (dataItem.Selected)
        {
            GridDataItem steve = gridReplenish.Parent.Parent as GridDataItem;
            var rp = new Crane.OMS.ORM.OMS.Replenish();
            rp.Area = dataItem["area"].Text;
           rp.Area = dataItem["type"].Text;   **** this comes up empty

            replenish.Add(rp);
        }
    }
}


Client Code:
<div class="galGridViewWrapper">
                    <telerik:RadGrid ID="gridReplenish"
                        runat="server"
                        AutoGenerateColumns="false"
                        PageSize="7"
                        AllowPaging="true"
                        AllowMultiRowEdit="False"
                        EnableViewState="true"
                        GridLines="None"
                        OnPreRender="gridReplenish_PreRender"
                        OnNeedDataSource="gridReplenish_NeedDataSource">

                        <PagerStyle Visible="False" />
                        <MasterTableView EditMode="Batch" BatchEditingSettings-EditType="Row">
                            <Columns>
                                <telerik:GridBoundColumn DataField="ReplenishId" HeaderText="ReplenishId" Visible="false" >
                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn DataField="Area" HeaderText="Area" ReadOnly="true">
                                </telerik:GridBoundColumn>

                                <%--                     <telerik:GridDropDownColumn UniqueName="Type" runat="server" ListTextField="Text" 
                                    ListValueField="Value" HeaderText="Type" DropDownControlType="RadComboBox" DataSourceID="XmlDataSource1">
                                </telerik:GridDropDownColumn>--%>


                                <telerik:GridTemplateColumn  UniqueName="Type" HeaderText="Type">
                                    <ItemTemplate>
                                        <telerik:RadComboBox runat="server" ID="Type"  AutoPostBack="true" DataTextField="Text" DataValueField="Value" DataSourceID="XmlDataSource1"></telerik:RadComboBox>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="CreateDateTime" HeaderText="CreateDateTime" Visible="false">
                                </telerik:GridBoundColumn>

                            </Columns>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="false">
                            <Selecting AllowRowSelect="True"></Selecting>
                            <ClientEvents />
                        </ClientSettings>
                    </telerik:RadGrid>
Eyup
Telerik team
 answered on 16 Oct 2014
7 answers
463 views
Hi all,

I am trying to export a radgrid which contain multi template columns, most columns just contain a Label,  except two columns. One contain a combo box and the other is textbox.

When excel export button is clicked I want to export combobox.SelectedItem.Text and textbox.Text. I followed the following post's solution:
http://www.telerik.com/forums/exporting-a-radgrid-template-column-control-data-to-excel
but I still cannot get the text for the two special columns display on the excel file, where all other columns are fine without issue.

Thanks in advance.

-Chris
Daniel
Telerik team
 answered on 16 Oct 2014
2 answers
217 views
Hi Telerik Team,

I have a Radgrid with GridDateTimeColumn, when i click on edit the calendar should have specific days disabled.
Can you pls help me out on how to achieve this.

Thanks
​
Eyup
Telerik team
 answered on 16 Oct 2014
3 answers
440 views
Good morning,

I'm writing because of problems with making RadMaskedTextBox to be readonly from client side (jQuery). I'm able to set readonly attribute on standard RadTextBox without problems.

function setReadOnly()
           {
               var TextBox1 = $find("<%= RadTextBox1.ClientID %>");
               TextBox1._textBoxElement.readOnly = true;
           }
           function clearReadOnly()
           {
               var TextBox1 = $find("<%= RadTextBox1.ClientID %>");
               TextBox1._textBoxElement.readOnly = false;
           }

or 

TextBox1._element.readOnly = true;

Same steps are not working for RadMaskedTextBox control...

Please help me to solve this issue.

Best regards

Vasssek


​
Eyup
Telerik team
 answered on 16 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?