or
HI
i got a website in VS 2005 using telerik controls
but when we open this project it gives me compilation error .'OpenAccessDataSource' is not defined.
do we need to install the telerik demo if yes which one we have to download .
</telerik:GridButtonColum
if ButtonType =ImageButton Button doesn't get to RadGrid1_ItemCommand
I know the solution:
to do DataBind if not postback.
But to me it does not help, because I have a search button each time to refresh the data grid and must be DataBind even in case postback.
What should I do?(My code in vb.net)
Thanks Ayelet
Dim
startdate
As
DateTime = DateTime.Parse(
"9/16/2011"
)
For
i
As
Integer
= 1
To
12
startdate = startdate.AddMonths(1)
' pseudo code:
MyScheduler.Appointments.Add(startdate)
Next
// First create the required means
MultiPageStrip = new RadMultiPage() { ID = "Object_Form$MultiPageStrip", ClientIDMode = System.Web.UI.ClientIDMode.Static };
TabStrip = new RadTabStrip() { MultiPageID = "Object_Form$MultiPageStrip" };
// Now is the beautifull part, we are going to generate the controls, we can that easily using the describtor
foreach (Tab Tab in this.DataSource.MetaData.UserInterfaceDescriptor.Tabs)
{
RadPageView PageView = new RadPageView() { ID = "Object_Form$MultiPageStrip_Tab_" + TabStrip.Tabs.Count.ToString() };
RadTab RadTab = new RadTab(Tab.Name) { PageViewID = "Object_Form$MultiPageStrip_Tab_" + TabStrip.Tabs.Count.ToString() };
RenderTab(Tab, PageView);
MultiPageStrip.PageViews.Add(PageView);
TabStrip.Tabs.Add(RadTab);
}
// And add the create controls
TabStrip.SelectedIndex = 0;
MultiPageStrip.SelectedIndex = 0;
ControlPanel.Controls.Add(TabStrip); ControlPanel.Controls.Add(MultiPageStrip);
function updateGrid(result)
{
var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
var grid = $find("<%= RadGrid1.ClientID %>");
grid.repaint();
}