I am creating a mobile website using radcomboboxes inside of update controls that are set to autopostback = true. All of the controls work except on the page's initial load the UI elements are enlarged and look more like buttons. They are still able to be selected and after the controls postback the elements still do not go back to a normal size. Only after a postback from another control do the UI elements shrink down to a normal size.
I have tested the radcombobox with checkboxes enabled outside of the update panel and this behavior does not change. I have a master page that contains jQuery files located in the header, and when I remove one of the js files, the problem disappears with the UI elements disappearing. Can anyone help me figure out what is preventing the UI elements from rendering properly?
On Load:
After postback:
Hi,
i open a radwindow fro ma button inside a templatecolumn in a detailtable.
In the radwindow i have a radbutton when i click it the OnClick event doesn't fire.
Here the code.
<%@ Page Title="" Language="C#" MasterPageFile="~/SiteT.Master" AutoEventWireup="true" CodeBehind="AnalisiExc.aspx.cs" Inherits="IPadAdmin.AnalisiExc" %>
I have a RadTabStrip and I will have a button to export which downloads it in excel (x.xlsx), I want to change the name that the file shows me by default when it is downloaded. asp framework
I am trying edit Control buttons within my RadWindow; however I cannot find where I would do this, after hours of researching the code, and documentation of this; no luck.
The page in question generates after clicking a button on a webpage we have setup; I have tried to add style using a few methods:
I have attached pictures for reference, and you can see which file I am showing; please let me know, the picture showing the behaviors, (maximize, minimize, close) are the behaviors/buttons I want to adjust, the close (x button) I want to be aligned with the rest.
The button redirects to the pop up/RadWindow is the Review.Aspx page, the Pending.aspx is the page which has the button to click generating the Review page in question.
Hello,
For my RadGrid, I need 2 different ways to insert.
So, I declare I want to use User controls,
<EditFormSettings EditFormType="WebUserControl"></EditFormSettings>
and I change programmatically the form to use.
protected void rgrid_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName.Equals("AddF"))
{
e.Item.OwnerTableView.EditFormSettings.UserControlName = "../UserControl/UC_PDGInsertionF.ascx";
e.Item.OwnerTableView.InsertItem();
}
else if (e.CommandName.Equals("AddN"))
{
e.Item.OwnerTableView.EditFormSettings.UserControlName = "../UserControl/UC_PDGInsertionN.ascx";
e.Item.OwnerTableView.InsertItem();
}
}
My Command buttons that show the forms work perfectly.
However, my Command buttons don't work on my User controls (both of them).
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_PDGInsertionN.ascx.cs" Inherits="UC_PDGInsertionN" %>
<table>
<%-- some code --%>
<%-- Buttons --%>
<tr>
<td align="right" colspan="2">
<asp:Button ID="btnAdd" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Add" Visible="True"></asp:Button>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel" Visible="True"></asp:Button>
</td>
</tr>
</table>
Whether I click on one or the other, I get this exception:
La valeur ne peut pas être null.
Nom du paramètre : virtualPath
Description : Une exception non gérée s'est produite au moment de l'exécution de la requête Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code.
Détails de l'exception: System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : virtualPath
[ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : virtualPath]
System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +511
Telerik.Web.UI.GridEditFormItem.InitializeUserControlForm(GridColumn[] columns, ControlCollection controls, GridEditFormSettings formSettings) +92
Telerik.Web.UI.GridEditFormItem.InitializeEditForm(GridColumn[] columns) +6349
Telerik.Web.UI.GridEditFormInsertItem.InitializeEditForm(GridColumn[] columns) +37
Telerik.Web.UI.GridEditFormItem.Initialize(GridColumn[] columns) +369
Telerik.Web.UI.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +266
Telerik.Web.UI.GridTableView.CreateInsertItem(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ControlCollection rows) +656
Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +3191
Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +1308
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +97
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +207
Telerik.Web.UI.GridTableView.PerformSelect() +23
Telerik.Web.UI.GridTableView.DataBind() +360
Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +3113
Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +150
System.Web.UI.Control.LoadRecursive() +154
System.Web.UI.Control.LoadRecursive() +251
System.Web.UI.Control.LoadRecursive() +251
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082
I had to disable AJAX in the RadAjaxManager to be able to see the exception.
Do you any idea of the source of the problem?
I am trying to get this functionality to work :
https://docs.telerik.com/devtools/aspnet-ajax/controls/button/how-to/radbutton-validation-and-client-side-event-handlers
however it seems as though Page_ClientValidate (or Page_IsValid) is always returning true.
Ultimately I need to be able to run different scripts depending on whether or not the page has errors.
I am using this CSS Class for aligning text and setting the size.
It does not increase the size of the text. Why is it not changing the size of the text on this button?
.rbSave
{
text-align
:
center
!important
;
font-size
:
x-large
!important
;
}
<
telerik:RadButton
ID
=
"btnSaveClient"
runat
=
"server"
IsBackgroundImage
=
"true"
OnClick
=
"btnSaveClient_Click"
Text
=
" Update Client "
CssClass
=
"rbSave"
>
<
Icon
PrimaryIconCssClass
=
"classCart"
PrimaryIconUrl
=
"~/Images/Save.png"
/>
</
telerik:RadButton
>
If i remove the CSS Class and manually set the size, it increases the size but does not align the text.It does not center the text. It appears as shown in the image below.
What should i do align text and also set the size of the text?
Thanks in Advance
In the Q3 2015 SP1 release the server-side OnClick event of RadButton is not raised when the following conditions are met:
The issue will be fixed for the official Q1 2016 release and the 2015.3.1124 internal build.
For the time being you can use one of the following resolutions:
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
UseSubmitBehavior
=
"false"
Text
=
"Click"
OnClick
=
"RadButton1_Click"
RenderMode
=
"Lightweight"
/>
<script>
var
$T = Telerik.Web.UI;
$T.RadButton.prototype._mouseClickHandler =
function
(args) {
var
button =
this
, result;
var
target = args.target;
var
e = args.rawEvent;
var
element = button.get_element();
if
(target !== element && $telerik.isDescendant(element, target)) {
$telerik.cancelRawEvent(e);
simulateMouseEvent(element,
"click"
, e);
return
;
}
try
{
if
(button._functionality.clicking(args) && !element.getAttribute(
"rwOpener"
)) {
button._functionality.click(args);
result = button._functionality.clicked(args);
}
}
finally {
button._mouseUp(args);
button._restoreFlags();
setTimeout(
function
() { Page_BlockSubmit =
false
; }, 0);
return
!result ? $telerik.cancelRawEvent(e) :
true
;
}
};
function
simulateMouseEvent(element, eventName, args) {
var
o = $telerik.$.extend({}, args || {});
var
oEvent;
if
(document.createEvent) {
//deprecated DOM2 Event Model
oEvent = document.createEvent(
"MouseEvents"
);
oEvent.initMouseEvent(eventName, o.bubbles, o.cancelable, document.defaultView,
o.button, o.screenX, o.screenY, o.clientX, o.clientY,
o.ctrlKey, o.altKey, o.shiftKey, o.metaKey, o.button, element);
}
else
if
(
"MouseEvent"
in
window) {
//standard DOM3 Event Mode
oEvent =
new
MouseEvent(
'click'
, o);
}
oEvent && element.dispatchEvent(oEvent);
if
(!oEvent) {
//IE
oEvent = extend(document.createEventObject(), o);
element.fireEvent(
'on'
+ eventName, oEvent);
}
return
element;
}
function
extend(destination, source) {
for
(
var
property
in
source) {
destination[property] = source[property];
}
return
destination;
}
</script>
Dear masters,
I have something problem with my telerik popup button,
when I click in Hardware button I can see form view in popup,
but when I click in Software button it just 500 error,
I've try to resolve it, but nothing changes.
Please help me with this error.
Thank you.