I am trying to bind multiple datasources to the RadScheduler. For my code below, I am able to able to bind either Sharepoint List or Just SQL. Please help me correct my code so that I can support both datasources on the RadScheduler. Thanks.
DataSet dS = new DataSet();
DataTable dT = listItems.GetDataTable();
SqlDataAdapter myCnd = new SqlDataAdapter();
myCnd = new SqlDataAdapter("select tID, tDATE, tTITLE, dDATE from myTable", strConn);
I have solved my problem of binding two data sources to a scheduler.
I have two data sources (sql,sharepoint list).I have iterated through the sql datarows and added them to
the sharepoint list datatable and then used the sharepoint list datatable as a datasource to the scheduler.
I was facing a issue of the sql data overwriiten by the sharepoint list data.The reason for that was the information from two datasources must consist of unique "ID" field..in my case..the ID field of sharepoint list and ID field of sql table were same.I made them the unique fields and it worked like a charm.
If anyone needed any information regarding this.I will be happy to help them.