Hello.
I'm using CommandItem built in Insert button to open a window with a form to insert new values.
<telerik:RadWindow ID="UserListDialog" runat="server" Title="Atualizar listagem" Height="400px" OnClientClose="OnClientCloseHandler"
Width="800px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" DestroyOnClose="true"
Modal="true"
Behaviors="Close,Move,Resize" CssClass="opaque" KeepInScreenBounds="True" >
<ContentTemplate>
<uc1:ViewEmissaoTimeSheetEdit ID="EditTimesheet" runat="server" />
</ContentTemplate>
</telerik:RadWindow>
<CommandItemTemplate>
<telerik:RadButton CommandName="InitInsert" RenderMode="Lightweight" ID="AddNewRecordButton" Text="Adicionar nova versão" ToolTip="Adicionar versão"
runat="server" style="background:none; border:none; color:green;">
<Icon PrimaryIconCssClass="rbAdd"></Icon>
</telerik:RadButton>
The problem is, when i use Validators in my form atributtes, the form doesn't open when clicking the insert button.
Validators structure in my form (contained in a user control)
<telerik:RadTextBox ID="txtAssinaturaTimesheet" runat="server" MaxLength="30" Width="220px">
</telerik:RadTextBox>
<%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAssinaturaTimesheet" Display="Static"
CssClass="ValidationFont" Text="Campo Obrigatório!" Font-Size="Medium" ></asp:RequiredFieldValidator> --%>
It is a common issue? How can i overcome it?
hi,
we are using Telerik UI ASP.NET AJAX version 2013.3 and we would like to upgrade to the latest version.
how tough it will be?
what difficulties we should expect?
thanks
Currently testing with Telerik R32021.3.914.45 ,.NetFramework-4.8 and browser - Chrome and Edge
We migrated from Classic to Asp.Net ajax controls followed the aboved document.
and observed that SSL property has been removed from Telerik.Web.UI controls.
May anyone help me out to find an alternate propoerty instead of SSL for that?
Old Code with Classic TreeView (Telerik.WebControls): protected override void OnInit(EventArgs e)
{
eventTypeTree.SSL = ConfigurationManager.SystemSettingsSection.ApplicationInfo.Protocol == Protocol.https;
base.OnInit(e);
}
Dears,
I want to generate thumbnail from images upload to cloud azure cloud already I have create azure function to generate thumbnail but it is not suitable for us because has many issues... if possible please share with me any way to do that
thanks
I've seen multiple questions related to this but still haven't seen a good answer.
Dates on the backend are in UTC, I want the front end to display them on the Clients Local timezone. However, the Client is displaying the UTC time.
I understand this is related to the way browsers handle dates, but my confusion is with what exactly happens when you "bind" a DateTime object to a RadGrid. I've even tried binding an ISO formatted Date string to a GridDateTimeColumn to see if that resolved the issue (it didn't).
When I say "new Date(theText)" in JS I get the correct value, but it apparently doesn't bind like this. I've even tried using DateTimeOffset instead of DateTime.
The data is being bound on the Server Side NeedDataSource event.
What is the current best solution to this problem? Must I either take the users offset and convert on binding or convert the front end text using JavaScipt? OR is there a cover all solution to just convert ALL dates to client local?
Thanks
Hello,
When I filter on the RadDropDownTree then backspace everything I typed in the filter field it expands all the nodes on the tree.
What I want it to do is collapse all the nodes as if I'm starting at the very beginning.
Peter Milchev gave me a nice working script from my last filter question. I'm posting it here. Perhaps it can be modified?
Thanks!
--Clark
<script>
var $T = Telerik.Web.UI;
Telerik.Web.UI.RadDropDownTree.Manager.prototype._filterNodes = function (text) {
var nodes = this._embeddedTree.get_allNodes(),
count = nodes.length,
regEx,
i;
if (this._filter == $T.DropDownTreeFilter.StartsWith)
regEx = new RegExp("^\\s*" + $T.RadDropDownTree.Manager._regExEscape(text), "im");
else
regEx = new RegExp($T.RadDropDownTree.Manager._regExEscape(text), "gim");
for (i = 0; i < count; i++) {
var currentNode = nodes[i];
var matchIsFound;
if (currentNode.get_level() !== 2) {
matchIsFound = false;
} else {
matchIsFound = this._matchNode(currentNode, text, regEx);
}
if (matchIsFound) {
this._handleVisibleParents(currentNode);
this._filteredVisibleNodes.push(currentNode);
}
else {
this._handleHiddenNode(currentNode);
}
}
this._hideNodes(this._filteredHiddenNodes);
this._showNodes(this._filteredVisibleNodes);
this._filteredVisibleNodes = [];
this._filteredHiddenNodes = [];
}
</script>
Hi,
I am trying to perform an upload with no post back, so I am using the handler. Telerik v4.0.30319
The code works, but for some reason it split the file and upload only 2MB of it.
public class myHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState
{
protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
{
string targetFolder = context.Server.MapPath("~/Uploads/");
string fileName = file.GetName();
file.SaveAs(targetFolder + fileName);
return CreateDefaultUploadResult<UploadedFileInfo>(file);
}
}
JS code
<script type="text/javascript">
function OnClientFileUploadFailed(sender, args) {
}
function OnClientValidationFailed(sender, args) {
}
var gridfileName = '';
function OnClientFilesUploaded(sender, args) {
GetgridIDfieldName(gridfileName);
}
function OnClientFilesUploading(sender, args) {
gridfileName=args.get_fileName();
}
</script>
<telerik:RadAsyncUpload
ID="RadAsyncUpload1"
OnClientFileUploadFailed="OnClientFileUploadFailed"
OnClientValidationFailed="OnClientValidationFailed"
OnClientFilesUploaded="OnClientFilesUploaded"
OnClientFileUploading="OnClientFilesUploading"
HttpHandlerUrl="~/myHandler.ashx"
TargetFolder="~/Uploads"
DisableChunkUpload="true"
MaxFileSize="10485760"
RenderMode="Lightweight"
runat="server">
</telerik:RadAsyncUpload>
Note: The code do not create temp file at "\App_Data\RadUploadTemp" it directly upload the file to the Uploads folder.
Any help is much appreciated.
Regards,
Omar
I am trying to upload a simple csv file with 6 columns via RadAsyncUpload. But everytime I try I get a 'File contains corrupted data' . But as soon as I convert the csv to xlsx. it uploads without issue.
Is there a way to fix this?
I'm not getting an error and the alert shows the correct tab ID, any ideas why the tab is not hiding.
function HideHistoryTab(sender, e)
{
var tabIndex = sender.get_activeTabIndex();
if (tabIndex == 0 || tabIndex == 1)
{
var tabStrip = $find(_TabClientID);
var tabs = tabStrip.get_tabs();
//alert(tabs[3].get_id());
tabs[3].set_visible(false);
}
}
I am dealing with a scenario where in grid , whether user clicks on a row or uses up/down arrow in the grid to select a row, it should do a postback and update other fields on the page. During research I have found that EnablePostBackOnRowClick and AllowKeyboard Navigation cannot work at the same time. This is what I have :
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelected="GridRowSelected" OnRowMouseOver="RowMouseOver" />
function GridRowSelected(sender, args) {
// do a post back to update other controls on the page
}
Can someone please help me in achieving this? I have tried different methods explained in forum but nothing worked for me. In short, I want it to do a post back when either user clicks on a row or make a selection using keyboard navigation and call this:
void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
{
}