Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
277 views

I have a need to filter one column based on what the user selects in a rad combo box. It works fine with one value selected but when two or more values are selectd it will not filter correct. I also need to do this client side so server side is not an option. I think the problem is within the "OR" clause. Anyone have any suggestions?
Thanks for any help,
D

<telerik:GridBoundColumn UniqueName="foundin" DataField="foundin" HeaderText="Fields search term matched"
    HeaderStyle-Width="215px" ItemStyle-Width="215px" FilterControlWidth="215px"
    AllowFiltering="true" ItemStyle-Wrap="True">
    <FilterTemplate>
        <telerik:RadComboBox ID="radcombo_foundin" runat="server" UniqueName="radcombo_foundin"
            Width="200px" OnClientDropDownClosed="filterfoundin" CheckBoxes="true" Filter="Contains" >
        </telerik:RadComboBox>
    </FilterTemplate>
</telerik:GridBoundColumn>


 

function filterfoundin(sender, e) {
    var tableView = $find('<%=rad_SearchResults.ClientID %>').get_masterTableView();
    var filter = "Contains";
    var i = 0;
    var q = "";
    while (i < sender._itemData.length) {
        q += sender._itemData[i].checked ? sender._itemData[i].value : "";
        if (i + 1 < sender._itemData.length) {
            if (sender._itemData[i].checked) {
                q += " OR ";
            }
        }
        i++;
    }
    q = q.substring(q.length - 4) == " OR " ? q.substring(0, q.length - 4) : q;
    var hidden = document.getElementById('<%=hf_foundin.ClientID %>');
    hidden.value = q;
    tableView.filter('foundin', q, filter);
}

 

 

 

 

 

 

Marin
Telerik team
 answered on 12 Dec 2011
2 answers
438 views
Hi,

When paging is enable on grid,and user click on page number or arrows, page will be refreshed and posting back.
On SEO page will be refresh too.

I want just a js function fire and grid send page number as a parameter to it.
I want make a full client grid paging.

Best regards.
mohammad
Mohammad sadegh
Top achievements
Rank 1
 answered on 12 Dec 2011
0 answers
59 views
Hello,

Recently i am working with radcalendar control ,it works well but our requirement is to change the css  of radcalendar like the image i have attached below ,is it possible to do like that ,how to do that ,please respond if u have any idea about it.
Saimadhukar
Top achievements
Rank 1
 asked on 12 Dec 2011
2 answers
186 views
Hi All,

 I have placed a RadGrid and a RadComboBox in my page. On SelectedIndexChanged event of the RadComboBox, i am searching the data and Binding it to the RadGrid. The problem occurs when i select an option for which there is no Data, and just after that, if I try to select an option which has data in the search criteria the following error is showed: 

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500


If i place an ASP.NET DropDown in place of the RadComboBox, then everything runs fine. One more thing, if i replace the Telerik 2011 ddl's with my old dll's i.e. 2010, then the error is not coming.

Kindly give me some solution for this problem.

Regards,
Raju Sen
Abhijit
Top achievements
Rank 1
 answered on 12 Dec 2011
1 answer
207 views
Hello,
Below is scenario I want to use:
1. Create custom filters on clientside. Not with RadFilter object!
2. Iterate filters collection and add expressions to RadFilter on clientside.
3. Call applyExpressions() to actually apply filter.

But on 2nd step RadFilter starts postback right after 1st expression is added! This is not what I want.
Problem is the RadFilter a part of custom AJAX control which is inserted to RadWindow's ContentTemplate. RadWindow is placed at the same page as grid. And each time when postback occures, the whole grid will reload. This is not acceptable for us. Can you please help?
Thank you.
Marin
Telerik team
 answered on 12 Dec 2011
1 answer
114 views
I'm using a NestedViewTemplate, to provide a child grid with product info, for each customer row in the parent grid. The child grid works well, when I expand one parent grid row. Also, if I collapse the first child grid, then expand a different customer row, the second child grid also works well.

My problem is this; when I expand one customer row, then expand a second customer row while the first customer row is still expanded, BOTH child grids change to the second customers detail. I need the first child grid to stay aligned to the first customer and the second child grid to align to the second customer.

The attached image demo's this. When I expanded the second customer's child grid, the first customer's child grid also changed.

I recall seeing another thread that dealt with this issue, but can't find it now. Any help is appreciated.

Using: 

Version=2011.2.906.35

Princy
Top achievements
Rank 2
 answered on 12 Dec 2011
14 answers
850 views
Good evening. We are using radupload. And we have set the max filesize at 1GB. If the filesize for the file to be uploaded exceeds this limit., "Page not found" error is displayed. Is there any way we can find the filesize before it is uploaded, to make sure it does not exceed this limit,in order to avoid this error? May be some validation on OnClientFileSelected event of radupload control. Please let us know.
Thanks
Anil
Genady Sergeev
Telerik team
 answered on 12 Dec 2011
2 answers
141 views

I have a document library "DOCLibA", in my sharepoint 2010 site which also collects some metadata for the document like category and country associated(using EditForm.aspx). I have another list "listB", in which I want users to add links to documents from above document library "DOCLibA".

On the "listB" NewForm I have a telerik radeditor with document manager in the toolbar. This document manager correctly uploads any new documents in the "DOCLibA",but it doesnot ask for the metadata like category and country.

Is there a way to achive this functionality using Document Manager? Sharepoint Asset picker works correctly for this as the upload link takes you to the doc lib's Upload.aspx.

A B
Top achievements
Rank 1
 answered on 12 Dec 2011
3 answers
385 views
Is it possible to create a RadWindow in code behind that uses the Page.LoadControl() function and display it. At runtime I need to create an unknown number of RadWindows that are not modal and populate their ContentContainer.Controls with dynamically loaded user controls.

I am using Visual Studio 2010 SP1 with Telerik RadControls for ASP.NET Ajax version 2011.3.1115.40 against the .NET 4 framework
Marin Bratanov
Telerik team
 answered on 12 Dec 2011
4 answers
301 views
Hi there,
Im using radgrid with checkboxcolumn. Im aware of, checkbox is only  enable on editable mode(i.e..after clicking edit button). My problem is, for a normal mode checkbox doesn't show clearly in  some browsers like mozila,etc... I need to improve the visibility of the checkbox in normal mode(probably set the border color)..Is it possible to apply css for checkbox inside a checkboxcolumn or highlight the border color in a normal mode?....Thanks in advance,,

Regards,
Suresh
suresh
Top achievements
Rank 1
 answered on 12 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?