SELECT
users.member, news.U_id
FROM
users
INNER
JOIN
news
ON
users.U_id=news.U_id
div.RadPanelBar_Scargill2 .rpGroup a.rpLink:hover,
div.RadPanelBar_Scargill2 .rpGroup a.rpFocussed,
div.RadPanelBar_Scargill2 .rpGroup a.rpFocused:hover,
div.RadPanelBar_Scargill2 .rpGroup a.rpSelected,
div.RadPanelBar_Scargill2 .rpGroup a.rpSelected:hover
{
background-color: white;
color: #666;
}
<
telerik:GridButtonColumn
CommandName
=
"Delete"
Text
=
"Supprimer"
UniqueName
=
"column2"
>
</
telerik:GridButtonColumn
>
string req = " SELECT rights from utilisateur WHERE login = '" + login + "'";
int test = DA.DAConnexion.executeQueryScalar(req);
Session["rights"] = test;
function
Close1() {
var
oWindow = GetRadWindow();
oWindow.SetUrl(
"about:blank"
);
//Passing the argument to the close method
oWindow.close(
"undefined"
);
}
ctl00_....._btnSave and the getElementById returns a null value. When I do the same thing in a non RadWindow, everything works fine. Please help me solve this issue.
function ShowInsertForm(url, width, height, idName, idValue) {
var extUrl = [url, "?" + idName + "=", idValue];
var oWnd = window.radopen(extUrl.join(""));
oWnd.setSize(width, height);
oWnd.set_modal(true);
oWnd.set_visibleStatusbar(false);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
return false;
}
Protected Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
If _presenter.IsDataChanged(Me.GetUserData()) Then
InjectScript.Text = "<script type='text/javascript'>askquestion('" & btnSave.ClientID & "')</script>"
Else
InjectScript.Text = "<script type='text/javascript'>CancelEdit()</script>"
End If
End Sub
In the Aspx code:
function askquestion() {
if (confirm("Data has changed. Do you want to save the changes?")) {
document.getElementById('<%=btnSave.ClientID %>').click();
}
else {
CancelEdit();
}
return false;
}
I found a problem with the date components for some reason the system will never accept that I enter a date of any first Sunday after the 15th of the month of October every year.
When I enter one of these dates and move the focus out of the component, the system automatically switches to the previous day.
You can notice the issue even in the pages of the demonstration site:
RadDatePicker
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx
RadDateInput
http://demos.telerik.com/aspnet-ajax/input/examples/raddateinput/firstlook/defaultcs.aspx
Calendar / Range Selection
http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/rangeselection/defaultcs.aspx
Dates:
10/19/2014
10/20/2013
10/21/2012
10/16/2011
10/17/2010
10/18/2009
10/19/2008
10/21/2007
10/22/2006
10/16/2005
10/17/2004
10/19/2003
10/20/2002
10/21/2001
10/22/2000
10/17/1999
10/18/1998
10/19/1997
10/20/1996
10/22/1995
10/16/1994
10/17/1993
10/18/1992
10/20/1991
10/21/1990
10/22/1989
10/16/1988
10/18/1987
10/19/1986
10/20/1985
10/21/1984
10/16/1983
10/17/1982
10/18/1981
10/19/1980
<
telerik:GridTemplateColumn
HeaderText
=
"City"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblcity"
runat
=
"server"
Text='<%# Bind("CityID") %>'></
asp:Label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:DropDownList
ID
=
"ddlCity"
runat
=
"server"
>
</
asp:DropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
protected
void
gdv_Drivers_ItemDataBound(
object
sender, Telerik.Web.UI.GridItemEventArgs e)
{
if
((e.Item
is
GridEditableItem && ((GridEditableItem)e.Item).IsInEditMode))
{
string
where =
null
;
// string cityid = ((DropDownList)e.Item.FindControl("ddlcity")).SelectedValue;
// string stateid = ((DropDownList)e.Item.FindControl("ddlstate")).SelectedValue;
// string zipid = ((DropDownList)e.Item.FindControl("ddlzip")).SelectedValue;
DropDownList ddlcity, ddlstate, ddlzip;
ddlcity = ((DropDownList)e.Item.FindControl(
"ddlCity"
));
ddlstate = ((DropDownList)e.Item.FindControl(
"ddlState"
));
ddlzip = ((DropDownList)e.Item.FindControl(
"ddlZip"
));
myGlobal.LoadDropDown(ddlcity,
"tbl_CityLkup"
,
"CityID"
,
"CityNm"
,
"GCRPC"
,
"CityID"
,
"CityNm"
, where);
myGlobal.LoadDropDown(ddlstate,
"tbl_StateLkup"
,
"StateID"
,
"StateNm"
,
"GCRPC"
,
"StateID"
,
"StateNm"
, where);
myGlobal.LoadDropDown(ddlzip,
"tbl_ZipLkup"
,
"ZipID"
,
"ZipCd"
,
"GCRPC"
,
"ZipID"
,
"ZipCd"
, where);
}
}