private
void
LoadFilters()
{
ControladorInternacao controladorInternacao =
new
ControladorInternacao();
List<InternacaoSetorDTO> listaSetores = controladorInternacao.ListarTodosSetores(AmbienteConexao.Usuario().Cnes);
List<RadComboBoxItem> listaTodosSetores =
new
List<RadComboBoxItem>();
foreach
(InternacaoSetorDTO item
in
listaSetores)
{
listaTodosSetores.Add(
new
RadComboBoxItem(item.NomeSetor, item.CodInternacaoSetor.ToString()));
}
rcbFiltroSetor.DataSource = listaTodosSetores;
rcbFiltroSetor.DataValueField =
"Value"
;
rcbFiltroSetor.DataTextField =
"Text"
;
rcbFiltroSetor.DataBind();
}
Hi
I have a RadGrid with skin ="windows 7" and works find and the alternating row color works like a charm.
Problem arisies when i have one of the column as sorted uisng GridSortExpression
Column which is used in GridSortExpression is not applied altrenatinmg row color - any advise would be appreciated and attached is the screen shot
and below is the code
<telerik:RadGrid ID="rgRoleMappingL1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting ="True" AutoGenerateColumns="False"
CellSpacing="0" GridLines="None"
OnNeedDataSource="rgRoleMappingL1_NeedDataSource"
OnPageSizeChanged="rgRoleMappingL1_PageSizeChanged" OnSortCommand="rgRoleMappingL1_SortCommand" PageSize="20" Width="100%" Skin="Windows7">
<MasterTableView>
<Columns>
<telerik:GridBoundColumn DataField="RoleMapL1ID" AutoPostBackOnFilter="true" FilterControlAltText="Filter RoleMapL1ID column"
HeaderText="ID" UniqueName="RoleMapL1ID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BusinessRole" AutoPostBackOnFilter="true" FilterControlAltText="Filter BusinessRole column"
HeaderText="Business Role" UniqueName="BusinessRole" CurrentFilterFunction="Contains">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="AppRoleL1" FilterControlAltText="Filter AppRoleL1 column"
HeaderText="Application Role (Level1)" UniqueName="AppRoleL1" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Usertype" FilterControlAltText="Filter Usertype column"
HeaderText="Sponsor/Site User?" UniqueName="Usertype" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DBL" FilterControlAltText="Filter DBL column"
HeaderText="DBL?" UniqueName="DBL" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Scope" FilterControlAltText="Filter Scope column"
HeaderText="Scope" UniqueName="Scope" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderTooltip="Protocol,Country,Site">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Hierarchy" FilterControlAltText="Filter Hierarchy column"
HeaderText="Hierarchy" UniqueName="Hierarchy" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Expired" FilterControlAltText="Filter Expired column"
HeaderText="Disabled?" UniqueName="Expired" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Edit" FilterControlAltText="Filter Edit column"
HeaderText="" UniqueName="Edit" AllowFiltering="false">
</telerik:GridBoundColumn>
</Columns>
<NoRecordsTemplate>
<div style="margin:10px">
There are no roles mapped at this time.
</div>
</NoRecordsTemplate>
<SortExpressions>
<telerik:GridSortExpression FieldName="BusinessRole" SortOrder="Ascending" />
</SortExpressions>
</MasterTableView>
</telerik:RadGrid>
hii all,
i want to implement table using below format in telerik.. plz help me
___________________________
Name | |
-------------------| address |
ID | |
____________|______________|
Thanks in advance;
anju
Ok so I have an webpage, that has two combo boxes and a button. One combo box is for Purchase Orders and the other for Lot numbers. When you select a PO from combo box, details of all items on that PO are shown in a radgrid. Next to each row is an arrow that when clicked opens up a web control view, where you can add a new receiving lot. When you add a new receiving lot, it displays an .ascx within the radgrid. See attached picture for to better understand...
Problem I am running into, is that there are two comb box controls on this .ascx page; received by and Country of Origin ( COO ). These both have sql db as their data source and are running a stored proc to return results. The user should have the ability to select anything returned by database. However, at runtime, I am noticing that there is some CSS within the WebResource.axd file that is being applied to these controls, that is setting them to read only and to text. The result is that the user cannot select anything in the dropdown, in fact drop down does not even work, and the controls show the first result returned by database and it is simply being shown as text.
How can I prevent the WebResource.axd from applying these CSS attributes to my combo boxes?
Please help, this is very strange and very undesirable.
I have a RadGrid with a bunch of columns i.e:
ID | Name | Address | Phone Number
1 | John Doe | 123 Fake St | 1234567
Wehen I click Edit on a row I want to be able to get the ID value, which is 1.
How do I do that? I've searched through the API and wasn't able to find a concrete example.
I am using EditFormType="Template" for the RadGrid
<
telerik:RadClientDataSource
ID
=
"rcdsStagingKofax"
runat
=
"server"
AllowBatchOperations
=
"true"
><
br
> <
ClientEvents
OnDataParse
=
"Parse"
/><
br
> <
DataSource
><
br
> <
WebServiceDataSourceSettings
BaseUrl
=
"Webservice/KofaxService.svc/"
><
br
> <
Select
Url
=
"GetStagingDocs"
DataType
=
"JSON"
/><
br
> </
WebServiceDataSourceSettings
><
br
> </
DataSource
><
br
> <
Schema
><
br
> <
Model
ID
=
"DocumentId"
><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"DocumentId"
DataType
=
"Number"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"NotifiedCompany"
DataType
=
"String"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"Origin"
DataType
=
"String"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"NotificationType"
DataType
=
"String"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"VatNumber"
DataType
=
"String"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"DocumentNumber"
DataType
=
"Number"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"DocumentValue"
DataType
=
"Number"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"ReceptionDate"
DataType
=
"Date"
/><
br
> <
telerik:ClientDataSourceModelField
FieldName
=
"AnalysisStatus"
DataType
=
"Boolean"
/><
br
> </
Model
><
br
> </
Schema
><
br
> </
telerik:RadClientDataSource
>
<
telerik:RadListView
ID
=
"lvStagingKofax"
runat
=
"server"
ClientDataSourceID
=
"rcdsStagingKofax"
<br> ItemPlaceholderID="ItemPlaceHolder" AllowPaging="true" PageSize="10"><
br
> <
LayoutTemplate
><
br
> <
div
style
=
"width: 98%"
><
br
> <
ul
class
=
"padding-top"
id
=
"itemPlaceholder"
runat
=
"server"
><
br
> </
ul
><
br
> </
div
><
br
> </
LayoutTemplate
><
br
> <
ClientSettings
><
br
> <
DataBinding
><
br
> <
ItemTemplate
><
br
> <
li
class
=
"selectItem"
data-DocumentId
=
"#= DocumentId #"
><
br
> <
div
class
=
"ym-grid box-shadow"
><
br
> <
h6
><
br
> #= SupplierName # </
h6
><
br
> <
div
class
=
"xpts ym-grid"
><
br
> <
div
class
=
"ym-g40 ym-gl"
><
br
> <
div
class
=
"ym-gbox"
><
br
> <
div
class
=
"ym-g25 ym-gl"
><
br
> <
img
class
=
"fr"
src
=
"../../Shared/image/64x64/Document-icon.png"
/><
br
> </
div
><
br
> <
div
class
=
"ym-g75 ym-gl"
><
br
> <
p
><
b
>Document Number: </
b
><
br
> #= DocumentNumber #</
p
><
br
> <
p
><
b
>Process Number: </
b
><
br
> #= ProcessNumber #</
p
><
br
> <
p
><
b
>Type: </
b
><
br
> #= NotificationType #</
p
><
br
> <
p
><
b
>Origin: </
b
><
br
> #= Origin #</
p
><
br
> </
div
><
br
> </
div
><
br
> </
div
><
br
> <
div
class
=
"ym-g40 ym-gl"
><
br
> <
div
class
=
"ym-gbox"
><
br
> <
div
class
=
"ym-g25 ym-gl"
><
br
> <
img
class
=
"fr"
src
=
"../../Shared/image/64x64/user.png"
/><
br
> </
div
><
br
> <
div
class
=
"ym-75 ym-gl padding-top"
><
br
> <
p
><
b
>Company Id: </
b
><
br
> #= CompanyId #</
p
><
br
> <
p
><
b
>Company Name: </
b
><
br
> #= NotifiedCompany # </
p
><
br
> <
p
><
b
>Company Name: </
b
><
br
> #= NotifiedCompany # </
p
><
br
> </
div
><
br
> </
div
><
br
> </
div
><
br
> <
div
class
=
"ym-g20 ym-gl"
><
br
> <
div
class
=
"ym-gbox"
><
br
> <
table
><
br
> <
tr
><
br
> <
td
><
br
> <
img
src
=
"../../Shared/image/32x32/Clock-icon.png"
/><
br
> </
td
><
br
> <
td
class
=
"padding-left"
><
br
> <
b
>Date: </
b
>#= ReceptionDate #<
br
> </
td
><
br
> </
tr
><
br
> <
tr
><
br
> <
td
><
br
> <
img
src
=
"../../Shared/image/32x32/money-euro.png"
/><
br
> </
td
><
br
> <
td
class
=
"padding-left"
><
br
> <
b
>Value:</
b
>#= DocumentValue #<
br
> </
td
><
br
> </
tr
><
br
> </
table
><
br
> </
div
><
br
> </
div
><
br
> </
div
><
br
> </
div
><
br
> </
li
><
br
> </
ItemTemplate
><
br
> <
ItemSeparatorTemplate
><
br
> <
br
/><
br
> </
ItemSeparatorTemplate
><
br
> </
DataBinding
><
br
> </
ClientSettings
><
br
> </
telerik:RadListView
>
i want to hit a button lets say btnRebind and i want the list to refresh client side.
<
script
type
=
"text/javascript"
><
br
>function RebindList() {
<
br
> <
br
> var listview= $find("<%=lvStagingKofax.ClientID %>");
<
br
> listview.rebind();<
br
> }
<
br
></
script
>
but no success... could you help me please?
thanks in advance
Hello,
I'm trying to customize the filter menu of my RadGrid based on the column. The server-side demo only shows how to change the filter menu for every column, not by column. Is there any way to this with the current API? Here is the code I’ve being working with to implement this functionality. This code removes "Contains" from all the filtermenus. I would like to do this for a specific column.
protected void RadGrid1_Init(object sender, System.EventArgs e)
{
foreach(GridColumn column in RadGrid1.Columns)
{
if (column.HeaderText == "ColumnName")
{
GridFilterMenu menu = RadGrid1.FilterMenu;
menu.Items.RemoveAt(menu.Items.FindItemByText("Contains").Index);
}
}
}
Thanks in advance.