Hi
I have built a my first database using radgrid, however everytime I change pages (pressing the page numbers at the bottom) or filtering, the page refreshes everytime.
I would like it to act like the example on the following link:
http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultvb.aspx
In this example, only the records change, but the page remains the same.
Could anyone advise what settings I have to change in radgrid in order to achieve this ?
thanks in advance
When adding more than on control to the RadTabStrip, the navigation between tabs and the user controls's submit are unable.
If I have just one control everything works fine. the problem appears when adding the second user control to the RadTabStrip.
Please, any help?
function
postBack(sender, args) {
__doPostBack(
"<%= RadCalendar1.UniqueID %>"
,
"myArgument"
);
}
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
RadCalendar1.SelectedDate = DateTime.Today;
}
else
{
string
eventTarget = (
this
.Request[
"__EVENTTARGET"
] ==
null
?
string
.Empty :
this
.Request[
"__EVENTTARGET"
]);
string
eventArgument = (
this
.Request[
"__EVENTARGUMENT"
] ==
null
?
string
.Empty :
this
.Request[
"__EVENTARGUMENT"
]);
if
(eventArgument.Equals(
"myArgument"))
{
RadCalendar1.SelectedDate = DateTime.Today.AddDays(-10);
// Just for test
}
}
FillHolidayDataset(RadCalendar1.SelectedDate);
}
[ApplicationException: Invalid navigation argument: [myArgument]] Telerik.Web.UI.RadCalendar.RaisePostBackEvent(String eventArgument) +864 Telerik.Web.UI.RadCalendar.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 |
<%@ Page Language="C#" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<script runat="server"> |
</script> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title></title> |
<telerik:RadCodeBlock runat="server"> |
<script type="text/javascript" language="javascript"> |
function RepaintRotator() { |
var oRotator = $find('<%= RadRotator_Repaint.ClientID %>'); |
oRotator.repaint(); |
} |
</script> |
</telerik:RadCodeBlock> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<div> |
<h1> |
RadToolTip / RadRotator functionality example</h1> |
<hr /> |
<h2> |
Standard RadToolTip with RadRotator content.</h2> |
<asp:Label ID="Label_Standard" runat="server" Text="Hover over me! - Standard"></asp:Label> - Display's Tooltip but no Rotator |
<!-- Does NOT work as expected --> |
<telerik:RadToolTip ID="RadToolTip_Standard" runat="server" TargetControlID="Label_Standard"> |
<telerik:RadRotator ID="RadRotator_Standard" runat="server" Width="40px"> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 1 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 2 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 3 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
</telerik:RadRotator> |
</telerik:RadToolTip> |
<hr /> |
<h2> |
RadToolTip with RadRotator content and OnClientShow repaint.</h2> |
<asp:Label ID="Label_Repaint" runat="server" Text="Hover over me! - With Repaint"></asp:Label> - Displays Tooltip with Rotator and first item, no rotating. |
<!-- First item shows with Repaint --> |
<telerik:RadToolTip ID="RadToolTip_Repaint" runat="server" TargetControlID="Label_Repaint" |
OnClientShow="RepaintRotator"> |
<telerik:RadRotator ID="RadRotator_Repaint" runat="server" Width="40px"> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 1 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 2 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 3 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
</telerik:RadRotator> |
</telerik:RadToolTip> |
<hr /> |
<h2> |
RadRotator without RadToolTip as Control - Works as Expected.</h2> |
<!-- Works as expected without RadToolTip --> |
<telerik:RadRotator ID="RadRotator_Control" runat="server" Width="40px"> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 1 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 2 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
<Items> |
<telerik:RadRotatorItem> |
<ItemTemplate> |
Item 3 |
</ItemTemplate> |
</telerik:RadRotatorItem> |
</Items> |
</telerik:RadRotator> |
</div> |
</form> |
</body> |
</html> |
<
telerik:RadListBox
ID
=
"rlb_JobRoles"
runat
=
"server"
DataKeyField
=
"RoleName"
DataSortField
=
"RoleName"
DataTextField
=
"RoleName"
DataValueField
=
"RoleName"
Width
=
"245px"
OnClientItemDoubleClicked
=
"RemoveJobRole"
>
</
telerik:RadListBox
>
Protected
Sub
RemoveJobRole(sender
As
Object
, e
As
System.EventArgs)
Handles
rlb_JobRoles.SelectedIndexChanged
Dim
DatabaseName
As
String
= rcb_Database.SelectedValue
Dim
MemberName
As
String
= Session(
"UserInRoleName"
)
Dim
connectionString =
New
SqlConnection(
"server=DO-IT-AB\MSSQLAB;database=AeriesAdmin;UID=itc.sysadmin;PWD=m1s.@dm1n6;"
)
Dim
command =
New
SqlCommand(
"aa_user_drop_role"
, connectionString)
command.CommandType = CommandType.StoredProcedure
command.Parameters.Add(
"@dbname"
, SqlDbType.VarChar).Value = DatabaseName +
"."
command.Parameters.Add(
"@name_in_db"
, SqlDbType.VarChar).Value = MemberName
command.Connection.Open()
command.ExecuteScalar()
command.Connection.Close()
End
Sub
<tr>
<td align="right" class="style2" valign="top">
Description
</td>
<td class="style3">
<asp:TextBox ID="txtDescrip" TextMode="multiline" Text= <%# Bind("Note") %> runat="server"></asp:TextBox>
</td>
</tr>
function SetCalendarStartTime() {
Calendar.setup({
inputField:
"<%= txtDate.ClientID %>",
button:
"date_btn_1",
ifFormat:
"%Y/%m/%d",
dateType:
'jalali',
weekNumbers:
false
});
Hello, I'm trying to make manual handle when to show/hide inputs for radasyncupload.
var
filesUploaded = 1;
var
maxFileCount = 2;
function
FileSelected(sender, args) {
filesUploaded++;
if
(maxFileCount == filesUploaded)
$(
".ruInputs > li:last"
).remove();
}
function
FileUploadRemoved(sender, args) {
if
(maxFileCount == filesUploaded)
sender.addFileInput();
filesUploaded--;
}
Following code works quite well if fileUploaded is initialy 0. But once I need to set it to 1 on the beginning.
Scenario is following:
Add file. - input disapears. - correct
remove file - two inputs is showing.
I would like to prevent such scenario.
I don't have MaxFileInputsCount set to control - I don't like the way how it is handling file. And it causing me other problems.
And more thing. I don't know whay but e.g. in firefox 4b11. After some adds and removes clicking on control not working. Looks like silverlight not support clicking any more. (Silverlight is loading by default). The version I have is 2010.3.1317.40. Ican click multiple times and sometimes it is working sometimes not.