Hi,
I have this scenario
an aspx page with masterpage. The masterpage has a combobox control, as that value changes an event is raised.
I catch it this way
and then on needdatasource fill the datasource with businness object
So, as combobox value changes my grid changes as well (myconn changes), unless mydataset (the datasource) is nothing,
in this case grid does not refresh and still shows old records. ajax or not ajax is the same.
I have this scenario
an aspx page with masterpage. The masterpage has a combobox control, as that value changes an event is raised.
I catch it this way
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init AddHandler Master.supplierChanged, AddressOf onSupplierChanged End SubProtected Sub onSupplierChanged() RadGridNMBacheche.Rebind() End Suband then on needdatasource fill the datasource with businness object
Protected Sub RadGridNMBacheche_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGridNMBacheche.NeedDataSource Try Dim NM As New NewsManager.CNewsForMyself(myConn) Dim myDataset As DataSet = NM.getNewsForMyself_asDataset(OrderMode) RadGridNMBacheche.DataSource = myDataset Catch ex As Exception Call LogManager.WriteToErrorLog(errorPath, ClassName, System.Reflection.MethodBase.GetCurrentMethod.Name.ToString(), ex, Err()) End Try End SubSo, as combobox value changes my grid changes as well (myconn changes), unless mydataset (the datasource) is nothing,
in this case grid does not refresh and still shows old records. ajax or not ajax is the same.