Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
465 views

I've got one page with four grids, wrapped in a user control.  The client side filtering has been tough because the javascript methods I had were stepping on each other.  The rest of it works, I just can't get the filter value typed in the textbox when they click on the filter icon.  In the code below I've got the code to target the correct grid, I just need to get the filter value.  tableView.get_filterExpressions(); is coming up dry.

Telerik.Web.UI.dll = 2017.3.913.45

 

<telerik:GridBoundColumn DataField="COMPM_ADDRESS" FilterControlAltText="Filter Name column" AutoPostBackOnFilter="true"
    HeaderText="ADDRESS" SortExpression="COMPM_ADDRESS " UniqueName="COMPM_ADDRESS" AllowFiltering="true">
    <ItemStyle HorizontalAlign="Left" Width="130px" />
    <HeaderStyle HorizontalAlign="Left" Width="130px" />
 
    <FilterTemplate>
        <telerik:RadTextBox ID="txtFilterCompAddress" runat="server" Width="100px" onkeyup="CompAddressOnKeyUp(this, event)"
            Text='<%# Container.OwnerTableView.GetColumn("COMPM_ADDRESS").CurrentFilterValue %>'>
            <ClientEvents OnKeyPress="CompAddressKeyPress" />
        </telerik:RadTextBox>
 
        <asp:ImageButton ImageUrl="/images/filter2.png" runat="server" ID="ImageButton1"
            Value="<%#((GridItem)Container).OwnerTableView.ClientID%>" OnClientClick="ApplyFilterIcon(this); return false;" />
 
        <telerik:RadScriptBlock ID="radScriptAddress" runat="server">
            <script type="text/javascript">
 
                var _columnNameAddress = "COMPM_ADDRESS";
 
                // filter icon clicked
                function ApplyFilterIcon(sender)
                {
                    var masterTableId = $(sender).attr('Value');
                    var tableView = $find(masterTableId);
 
                    debugger;
                    var filters = tableView.get_filterExpressions();  // EMPTY
 
                    var filterValue = "553";  // <<<  I NEED THIS VALUE, WHAT THEY TYPED IN TEXTBOX
                                                     //BELOW WORKS
                    tableView.filter(_columnNameAddress, filterValue, Telerik.Web.UI.GridFilterFunction.Contains, true);
                }
 
                // just checks for an empty filter textbox on backspace and return to clear the filter
                function CompAddressOnKeyUp(sender, evt)
                {
                    onKeyUpFilterGridClear(sender, evt, "<%#((GridItem)Container).OwnerTableView.ClientID%>", _columnNameAddress);
                }
                // on a keypress; check for return to fire the filter
                function CompAddressKeyPress(sender, evt)
                {
                    onKeyPressReturnTrigger(sender, evt, "<%#((GridItem)Container).OwnerTableView.ClientID%>", _columnNameAddress);
                }
            </script>
        </telerik:RadScriptBlock>
 
    </FilterTemplate>
</telerik:GridBoundColumn>
Steven
Top achievements
Rank 1
Iron
 answered on 12 Dec 2019
1 answer
255 views

Dear All,

i have created Telerik Hierarchy Rad Gridview.

>> first level Employee Name

>> second level Employee Role

>> third level Employee Designation

but i am using single table. EmployeeMaster(only one table)

i want out put:

Employee Name
                     (expand) Employee role
                                    (expand) Employee Designation


Attila Antal
Telerik team
 answered on 12 Dec 2019
6 answers
994 views
Hi,

I have a panelbar and within that I have a textbox. When user entered a value into that textbox, I want to get that value and save when user click on submit. Rightnow I have this issue. Soon after user click on submit the user input value is wiped off from text box. When I debugged the debugger is also not reading that value. It is just displaying as an empty.

How can I read that value and save it?

Thank you.
Edgar
Top achievements
Rank 1
 answered on 12 Dec 2019
2 answers
1.5K+ views
Hi,

I want to disable password save option from browser. i used autocomplete="off" and AutoCompleteType="Disabled". It is working my local machine. but when i moved to server it is not working. it is chrome browser. Please check my code and attached screenshot. Please help me ASAP.

   <telerik:RadTextBox ID="rtbPassword" runat="server" TextMode="Password" Width="200px"
                                ClientEvents-OnKeyPress="OnKeyPress" AutoCompleteType="Disabled" autocomplete="off">
                            </telerik:RadTextBox>


Thanks in Advance,
Dhamu.
Rumen
Telerik team
 answered on 11 Dec 2019
8 answers
720 views
When I open a Rad/Modal window from normal aspx page I lose the session stqte from the aspx page. Any suggestions?
Rumen
Telerik team
 answered on 11 Dec 2019
3 answers
217 views
I have a custom paging control that I am using in my application.
The markup for the control is listed below. The problem I am having is that the slider doesn't always render the skin correctly. When it renders the only thing I see is a link with the word "Drag"; please see the attached image. I tried adding the reference to the top of the page to Get the WebResource for the skin but that didn't work. Any help would be greatly appreciated.

<asp:Panel ID="pagerContainer" CssClass="pagercontainer" runat="server">
 
    <table border="0" width="100%" cellpadding="2" cellspacing="2">
        <tr>
            <td valign="middle" width="105px" nowrap="nowrap">
                <asp:Panel ID="LeftContainer" runat="server" CssClass="pagerCommand">
                    <asp:ImageButton AlternateText="First Page" CommandName="First" ID="firstPageButton"
                        ImageAlign="AbsMiddle" ImageUrl="~/Images/first.gif" runat="server" ToolTip="First Page" />
                    <asp:ImageButton AlternateText="Previous Page" CommandName="Previous" ID="previousPageButton"
                        ImageAlign="AbsMiddle" ImageUrl="~/Images/prev.gif" runat="server" ToolTip="Previous Page" />
                </asp:Panel>
            </td>
            <td valign="middle" width="175px">
                <asp:Panel ID="sliderPanel" CssClass="pagerCommand" runat="server">
                <telerik:RadSlider ID="slider" runat="server" AnimationDuration="0" 
                        Orientation="Horizontal" EnableViewState="true"
                    SmallChange="1" ShowDecreaseHandle="false" ShowIncreaseHandle="false" Width="175px"
                    Skin="Web20" AutoPostBack="true"
                    EnableEmbeddedSkins="true">
                </telerik:RadSlider>
                </asp:Panel>
            </td>
            <td valign="middle" width="105px">
                <asp:Panel ID="rightContainer" runat="server" CssClass="pagerCommand">
                    <asp:ImageButton AlternateText="Next Page" CommandName="Next" ID="nextPageButton"
                        ImageAlign="AbsMiddle" ImageUrl="~/Images/next.gif" runat="server" ToolTip="Next Page" />
                    <asp:ImageButton AlternateText="Last Page" CommandName="Last" ID="lastPageButton"
                        ImageAlign="AbsMiddle" ImageUrl="~/Images/last.gif" runat="server" ToolTip="Last Page" />
                </asp:Panel>
            </td>
            <td align="right">
                <asp:Label ID="positionLabel" runat="server" CssClass="pagerinfo" />
            </td>
        </tr>
    </table>
 
<asp:HiddenField ID="SliderHiddenField" runat="server" />
 
</asp:Panel>

Denise
Top achievements
Rank 1
 answered on 11 Dec 2019
3 answers
205 views

Hello,

I have a question regarding paging in RadGrid when the grid is already filtered.

I am using NeedDataSource event for binding the grid.

My datasource query is rather slow so I implemented custom paging and it is working fast as expected when paging the RadGrid when no filter is active.

But when I filter the RadGrid, the paging is very slow. Changing the page number lasts like when the grid is fetching the data when filtering.

I understand that the process of filtering cannot be faster because of my datasource query, but is there a way that I can make paging faster when my grid is filtered?

Thank You for your help.

 

Eyup
Telerik team
 answered on 11 Dec 2019
1 answer
173 views
Hi from France,

I've got problem with this case to using RadAjaxManager (see picture)

I've got 3 repeater For : Section, GrpRubrique and Rubrique, all is nested.

my HTML for "section" part is <details><summary>, sample :

<asp:Repeater ID="rptSection" runat="server" ClientIDMode="AutoID">
                  <ItemTemplate>                   
                      <details>                         
                          <summary>
                          <h4>Title section</h4>
                          <div>
                          <asp:repeater id=rptGrpRubrique...
                          ...
                            <telerik:RadNumericTextBox ID="rnt" ClientIDMode="AutoID" ...


All radNumericTextBox not have autoPostback=True (set by codeBehind)
i have dependence by formules must calculate in codeBehind, sample :
Rubrique6 = TVA * (Rubrique1 + Rubrique3 + Rubrique4) and when user change value in Rubrique1,3 or 4 i must postback, calculate and update Rubrique6

Ajaxify All Repeater, with arounded Panel work but, close all my details HTML :

<telerik:AjaxSetting AjaxControlID="GlobalPanel">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="GlobalPanel" />
    </UpdatedControls>
</telerik:AjaxSetting>


example, if i want to add only updated control rubrique6, in my code behind when radNumericTextBox Binding, his ID is always "rnt" and doesn't work :

Dim ctrl As New Telerik.Web.UI.AjaxUpdatedControl
ctrl.ControlID = radTextBox.ID
'ctrl.ControlID = radTextBox.UniqueID
'ctrl.ControlID = radTextBox.ClientID
ram.AjaxSettings.Item(0).UpdatedControls.Add(ctrl)


i've got no solution since many days...

 

Thanks for your help.

Eyup
Telerik team
 answered on 11 Dec 2019
3 answers
130 views
Does radeditor support multiuser comments features?
Rumen
Telerik team
 answered on 10 Dec 2019
1 answer
406 views

Hello Telerik,

I have created a sample project with a RadListBox and a button.

When the page loads, the list is populated using some query from the Northwind database.

After scrolling the list at a random item, and pressing the button to reload the list,

I would like to position the list at the top, not at an arbitrary place in the list.

This functionality should not depend if I have and item selected or not in the list.

Thanks,

Alex

Peter Milchev
Telerik team
 answered on 10 Dec 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?