<asp:ObjectDataSource ID="ObjectDataSource1" TypeName="MyNameSpace.DataAccessLayer.UserDataObject" |
SelectMethod="Select" SelectCountMethod="SelectCount" EnablePaging="True" runat="server" |
MaximumRowsParameterName="maximumRow" OldValuesParameterFormatString="original_{0}" |
OnSelecting="ObjectDataSource1_Selecting" OnSelected="ObjectDataSource1_Selected"> |
<SelectParameters> |
<asp:Parameter Name="shopID" Type="Int32" /> |
<asp:Parameter Name="filter" Type="String" /> |
<asp:Parameter Name="sort" Type="Object" /> |
<asp:Parameter Name="startRowIndex" Type="Int32" /> |
<asp:Parameter Name="maximumRow" Type="Int32" /> |
</SelectParameters> |
</asp:ObjectDataSource> |
protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e) |
{ |
e.InputParameters["shopID"] = thisShop.ShopID; |
e.InputParameters["filter"] = RadGrid1.MasterTableView.FilterExpression; |
e.InputParameters["sort"] = RadGrid1.MasterTableView.SortExpressions.GetSortString(); |
e.InputParameters["startRowIndex"] = RadGrid1.CurrentPageIndex*RadGrid1.PageSize; |
e.InputParameters["maximumRow"] = RadGrid1.PageSize; |
} |
Already I implemented custom sorting and custom paging with objectdatasource and database. Now I need to implement custom filtering in rad grid with objectdatasource and database.
Can you send me any sample solution?
hi,
i bind hmtlchart from dataset i want to display just the datetime wich is into dataset but in displaying it's apear an interval of datetime
in this pics you wille understanding me more and i use gridview to disply the data are in dataset plz help me i'm working in project and i need help quickly
Hi all,
Currently I am facing a problem regarding Radgrid Group Footer Dynamic calculation.
I have a radgrid that have some GridTemplateColumns that allow me to key in some value
Example
<telerik:GridTemplateColumn UniqueName="Quantity" HeaderText="Quantity" DataField="Quantity" Aggregate="Sum" >
<ItemTemplate>
<asp:TextBox ID="lbl_Quantity" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity" , "{0:0.00}") %>'
Width="40px" runat="server" autopostback="true" onTextChanged="calQuantity"></asp:TextBox>
<br />
</ItemTemplate>
</telerik:GridTemplateColumn>
<GroupByExpressions>
<telerik:GridGroupByExpression>
<GroupByFields>
<telerik:GridGroupByField FieldName="Grp"></telerik:GridGroupByField>
</GroupByFields>
<SelectFields>
<telerik:GridGroupByField FieldName="Grp" HeaderText="Week"></telerik:GridGroupByField>
</SelectFields>
</telerik:GridGroupByExpression>
Group Footer displayed correctly when the grid load. However, what I was trying to achieve is when I change the value of the quantity it will auto recalculate the group footer. I tried to achieve it using onTextChanged="calQuantity" but not success.
Do you all have any idea on this?
Thank you.
​
hi
is there any skin/easy way of implementing the tab strip in vertical mode , but having the text vertical too ?
Peter
Can I use RadAutoCompleteBox for completing the text I write (not selecting single or multiple items) and bind just the text property in design time?
Hi.
I am porting an old applications chart section from RadChart to RadHtml chart and am struggeling with how to edit serie items prior to rendering. The main problem is that since we are binding against an list of objects where some integer properties contains -1 values (which in our context means NULL/UNDEFINED). I cannot change this behaviour of the object since the system heavily rely on that fact.
When using RadChart we could "hook into" the series items in the ItemDataBound event. See example below.
How can I achieve the same thing with RadHtmlChart ?
BR
Johan
var columnInfo = _basicReportsPresenter.GetColumnInfoByName(e.ChartSeries.DataYColumn);
if
(!columnInfo.ColumnInfoAttribute.DisplayNegativeValues)
{
if
(e.SeriesItem.YValue < 0)
{
if
(_enableEmptyValues)
e.SeriesItem.Empty =
true
;
e.SeriesItem.YValue = 0;
}
}