Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
315 views
Hi telerik,

I have a simple grid with the filter options, I am trying to apply filter functionality by textbox(working fine) and combobox column, but combobox filter is not working at all, below is my code and please help asap.

<

 

telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid1"

 

 

AllowFilteringByColumn="True"

 

 

ClientSettings-Scrolling-ScrollHeight="500"

 

 

ClientSettings-Scrolling-UseStaticHeaders="true"

 

 

ClientSettings-Scrolling-AllowScroll="true" OnPreRender="RadGrid1_PreRender"

 

 

ClientSettings-Selecting-AllowRowSelect="true" EnableLinqExpressions="true"

 

 

AllowSorting="True" runat="server">

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<MasterTableView >

 

 

<Columns>

 

 

<telerik:GridBoundColumn HeaderText="Employee Number" DataField="KEYID"

 

 

UniqueName="KEYID" SortExpression="KEYID" FilterControlWidth="30px"

 

 

Visible="false" ShowFilterIcon="false" />

 

 

<telerik:GridBoundColumn HeaderText="Employee Name" DataField="Name" UniqueName="Name"

 

 

SortExpression="Name" HeaderStyle-Width="300px" FilterControlWidth="140px"

 

 

AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" />

 

 

<telerik:GridBoundColumn HeaderText="SSN" DataField="EMP_SSN" HeaderStyle-Width="205px"

 

 

UniqueName="SSN" SortExpression="EMP_SSN"

 

 

FilterControlWidth="90px" AutoPostBackOnFilter="true" CurrentFilterFunction="contains"

 

 

ShowFilterIcon="false" />

 

 

<telerik:GridBoundColumn HeaderText="Pay Period" DataField="CODE" HeaderStyle-Width="205px"

 

 

UniqueName="CODE" >

 

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxPP" DataSourceID="SqlDataSource4" DataTextField="Code"

 

 

DataValueField="Code" Height="100px" AppendDataBoundItems="true" AutoPostBack="true"

 

 

SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Code").CurrentFilterValue %>'

 

 

runat="server" OnClientSelectedIndexChanged="PPIndexChanged"  >

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="All" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

 

 

<script type="text/javascript">

 

 

function PPIndexChanged(sender,args) {

 

 

var tableView=$find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID%>");

 

 

tableView.filter("Code",args.get_item().get_value(),"EqualTo");

 

}

 

</script>

 

 

</telerik:RadScriptBlock>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<ClientEvents OnRowSelected="RowSelected" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

<asp:SqlDataSource ID="SqlDataSource4" runat="server"></asp:SqlDataSource>

 




Kiran
Pavlina
Telerik team
 answered on 19 May 2010
1 answer
93 views
Hi,

We have menu structure with root level and one group. For example:
root item
  • child item1
  • child item2
root item2
  • child item1
  • child item2
etc.

I need all those items to be always visible (not expand them onhover or onclick). Is there some way to do that?

Thank you.
Shinu
Top achievements
Rank 2
 answered on 19 May 2010
3 answers
146 views
Hi,
After spending way too much time looking for an intereactive gantt control, I've given up and am now looking for a static gantt chart.
In particular, will the telerick chart for asp.net support gantting capabilities like milestones, percent complete and task dependencies? If so, is there an example I can look at?
Thanks ... Ed
Vladimir Milev
Telerik team
 answered on 19 May 2010
3 answers
101 views
Hi All,

As part of a process of optimizing my grids I want to include a drop down combobox on the page and ideally to conserve space it will be in the pager section.  I intend on providing a MaxRows parameter to my Stored Procedure that will then use SET ROWCOUNT @MaxRows to limit the number of rows returned.  To that end I need a combo box to show a variety of options for the rowcount. 

All easy enough until I need to add the combo box to the pager.  I am using the standard pager except for the fact that I'm inserting some custom numbers into the results per page dropdown.  Is there a simple way to extend the pager or will I be stuck having to use a pager template?

If I have to use the pager template, is there an example somewhere of how to duplicate the normal style?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 19 May 2010
4 answers
97 views
I'm having an issue when a request is picked up by the RadAjaxManagerProxy that is located in a user control within a RadPageView and RenderSelectedPageOnly of the RadMultiPage is set to true.  When the response comes back it fails to exclude validators from the Page_Validators array.  It includes validators from user controls located in other RadPageViews which causes javascript errors when it tries to get the element by getElementById.  If the request (button controls in this case) is removed from the RadAjaxManagerProxy and a normal postback occurs there is no issue.

Please advise.

I'm using version 2009.3.1503.20

Thanks
Pavlina
Telerik team
 answered on 19 May 2010
17 answers
311 views
Hi,

I downloaded the D1040 Skin.
As I see the author uses css sprites for command items.

But how is this supoorted with grid?

For an example I want to use a GridEditCommandColum with ButtonType="ImageButton".

This results that Grid emits an img link to /Edit.gif - which of course is not found.

Regards

Manfred
Dimo
Telerik team
 answered on 19 May 2010
1 answer
72 views
I have a RadDropDownColumn and I would like to fill it using DataSoruceID='<%# GetCompany() %>' excuse me if I make a mistake using this way, just I need to know if this way is possible..otherwise how can I fix it?

Regards


Pavlina
Telerik team
 answered on 19 May 2010
1 answer
126 views
I have an issue validating GridDropDownList - it does not validate as other controls do. I have created a custom validator in the code behind but it does not fire when no value selected.


Thank you,

Steve O...

 

 

<telerik:RadGrid ID="RadGrid2"

 

runat="server"

 

GridLines="None"

 

DataSourceID="SqlDataSource11"

 

OnPageIndexChanged="dgIncidents_PageIndexChanged"

 

AllowAutomaticDeletes="True"

 

AllowAutomaticInserts="True"

 

AllowAutomaticUpdates="True"

 

OnItemInserted="RadGrid2_ItemInserted"

 

OnItemUpdated="RadGrid2_ItemUpdated"

 

OnDataBound="RadGrid2_DataBound"

 

AllowPaging="True"

 

ShowStatusBar="True"

 

AutoGenerateColumns="False"

 

Skin="Simple" >

 

 

 

 

 

 

<ValidationSettings CommandsToValidate="PerformInsert,Insert,Update,Delete"

 

EnableValidation="true" ValidationGroup="FormValidationGroup" />

 

 

 

 

 

------------------------------------------------------------------------------------------------------- 

 

 

 

 

<telerik:GridDropDownColumn DataField="UnitNameId"

DataSourceID="SqlDataSource3" DropDownControlType="DropDownList"

ListTextField="UnitName" ListValueField="UnitNameId" HeaderStyle-Font-Bold="true" UniqueName="UnitNameId"

HeaderText="Unit Name">

<HeaderStyle Font-Bold="True"></HeaderStyle>

</telerik:GridDropDownColumn>

 ----------------------------------------------------------------------------------------

 

GridDropDownColumnEditor editor = (GridDropDownColumnEditor)item.EditManager.GetColumnEditor("UnitNameId");

DropDownList ddl = (DropDownList)((Telerik.Web.UI.GridDropDownListColumnEditor)(editor)).DropDownListControl;

TableCell cell = (TableCell)ddl.Parent;

ddl.ID =

 

 

"UnitNameId";

 

 

ddl.AutoPostBack =

true;

 

ddl.CausesValidation =

 

 

true;

 

 

 

 

 

 

 


RequiredFieldValidator
validator = new RequiredFieldValidator();

 

 

 

validator.ControlToValidate = ddl.ID;

validator.ErrorMessage =

 

 

" * Unit Name Value Required";

 

 

cell.Controls.Add(validator);

Rosen
Telerik team
 answered on 19 May 2010
1 answer
342 views
Hi,

I have a Rad menu control, in that I added the controls (e.g. link button, Login Status) to the item template .I want to add the styles for the item template.
When we click on the menu item it needs to be highlight and show in different color.

i try to do this ,but styles are not applied for item template.

code :
 <telerik:RadMenu ID="radLoginInfo" runat="server" EnableEmbeddedSkins="False" Skin="MySkin"
                    <Items> 
                        <telerik:RadMenuItem> 
                            <Items> 
                                <telerik:RadMenuItem Text="Change Password"
                                    <ItemTemplate> 
                                        <asp:LinkButton ID="lnkChangePW" runat="server" OnClientClick="openWin(); return false;">Change Password</asp:LinkButton> 
                                    </ItemTemplate> 
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem> 
                                    <ItemTemplate> 
                                        <asp:LoginStatus ID="LoginStatus1" runat="server" /> 
                                    </ItemTemplate> 
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadMenu> 

 

please help me as soon as possible, this is urgent.

thanks
waruni



Peter
Telerik team
 answered on 19 May 2010
1 answer
90 views
Hey guys,
I've just purchased the full licence of ASP.NET AJAX yesterday.
I want to have a grid with this layout for each row:
<ul>
       <li class="hover">
        <span class="result-check">
         <input type="checkbox" name="test" value="more-sub" />
        </span>
        <span class="result-img">
         <img src="#" />
        </span>
        <span class="result-detail">
         <span class="info-1">
          <label>Unit</label><span class="value"><%# Eval("Unit")%></span>
          <label>Name</label><span class="value"><%# Eval("Name")%></span>
          <label>Type</label><span class="value"><%# Eval("Type")%></span>
         </span>
         <span class="info-1">
          <label>Area m<sup>2</sup></label><span class="value"><%# Eval("Area")%></span>
          <label>Divisible area</label><span class="value"><%# Eval("DArea")%></span>
         </span>
         <span class="info-1">
          <label>Rent m<sup>2</sup></label><span class="value"><%# Eval("RArea")%></span>
          <label>Rent p.a</label><span class="value"><%# Eval("RPA")%></span>
         </span>
         <span class="hover-info">
          <span><a href="#" class="view">View</a></span>
          <a href="#">Edit</a>
          <a href="#">Email</a>
          <a href="#">Print</a> |
          <a href="#">Add an enquiry</a> |
          <a href="#">Create note</a>
         </span>
        </span>
        <span class="result-medium">
         <span>M</span>
        </span>
       </li>
</ui>

My datasource is a Generic List. When I use Itemtemplate, my grid stays empty.
I would be so thankful if you can reply ASAP.

Cheers
Nikolay Rusev
Telerik team
 answered on 19 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?