Please, How to save file information of asyncupload to database temp , so we can be move it to target folder on saved or submit form ?
I already refer to this link, but still doesn't work.
https://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/functionality/manipulating-query-string-parameters-in-the-upload-handler
Thanks.
Hello,
I am using JavaScript to remove some SearchContext items from the dropdown list. After executing the code below, the items remain in the Search Context dropdown list, but their selection no longer works correctly. I have tried both itemsCollection.removeAt(i); and itemsCollection.remove(item); and both behave in the same way. If this is a bug, is there a way to define these items in server side code (C#)? That way I can decide which items to add. Thinking about it, I guess I could try adding the items on the client side, rather than declaratively.
JS Code to remove the desired items: I have stepped through vis the debugger to ensure the code is executed as expected.
var
searchBox = $find(
"<%=SearchRadSearchBox.ClientID%>"
);
if
(searchBox) {
searchContext = searchBox.get_searchContext();
if
(searchContext) {
itemsCollection = searchContext.get_items();
for
(
var
i = itemsCollection.get_count() - 1; i >= 0; i--) {
item = itemsCollection.getItem(i);
if
(item) {
if
(item.get_text() ==
'Joint Barcode'
|| item.get_text() ==
'Weld Barcode'
) {
// remove the item
itemsCollection.removeAt(i);
}
}
}
}
}
Definition of the SearchBox:
<
telerik:RadSearchBox
RenderMode
=
"Lightweight"
ID
=
"SearchRadSearchBox"
runat
=
"server"
Width
=
"500"
OnSearch
=
"SearchRadSearchBox_Search"
EnableAutoComplete
=
"False"
>
<
Localization
DefaultItemText
=
"General"
LoadingItemsMessage
=
"Some Loading"
/>
<
SearchContext
>
<
Items
>
<
telerik:SearchContextItem
Text
=
"Document Type"
Key
=
"1"
/>
<
telerik:SearchContextItem
Text
=
"Heat Number"
Key
=
"2"
/>
<
telerik:SearchContextItem
Text
=
"Spread"
Key
=
"3"
/>
<
telerik:SearchContextItem
Text
=
"Joint Barcode"
Key
=
"4"
/>
<
telerik:SearchContextItem
Text
=
"Weld Barcode"
Key
=
"5"
/>
</
Items
>
</
SearchContext
>
</
telerik:RadSearchBox
>
Basically in I am using the wizard and each step is using a user control. In most part it functions fine, but the section that uses the radTreeList, there seems to be a delay with the button actions inside the wizard.
Here is my wizard:
<
telerik:RadAjaxPanel
ID
=
"radPanelWizard"
runat
=
"server"
ClientEvents-OnResponseEnd
=
"recreateItems"
>
<
asp:Literal
ID
=
"litStyle"
runat
=
"server"
></
asp:Literal
>
<
telerik:RadWizard
ID
=
"radW"
runat
=
"server"
Width
=
"100%"
OnActiveStepChanged
=
"radW_ActiveStepChanged"
OnFinishButtonClick
=
"radW_FinishButtonClick"
NavigationButtonsPosition
=
"Top"
RenderMode
=
"Mobile"
OnNextButtonClick
=
"radW_NextButtonClick"
DisplayCancelButton
=
"true"
OnCancelButtonClick
=
"radW_CancelButtonClick"
>
<
WizardSteps
>
<
telerik:RadWizardStep
Title
=
"Edit 1"
ID
=
"step1"
>
<
uc1:FirstControl
ID
=
"usc1"
runat
=
"server"
/>
</
telerik:RadWizardStep
>
<
telerik:RadWizardStep
Title
=
"Edit 2"
ID
=
"step2"
>
<
uc2:SecondControl
ID
=
"usc2"
runat
=
"server"
/>
</
telerik:RadWizardStep
>
<
telerik:RadWizardStep
Title
=
"Edit 3"
ID
=
"step3"
>
<
uc3:ThirdControl
ID
=
"usc3"
runat
=
"server"
/>
</
telerik:RadWizardStep
>
</
WizardSteps
>
</
telerik:RadWizard
>
</
telerik:RadAjaxPanel
>
Im loading the TreeLists from the second user control in the second step. Here's the code for that:
<
telerik:RadAjaxPanel
ID
=
"radAjxPnlQAItems"
runat
=
"server"
>
<
div
class
=
"sortTable sortTableHalf"
>
<
asp:Literal
ID
=
"litMessage"
runat
=
"server"
></
asp:Literal
>
<
telerik:RadTreeList
ID
=
"radItemView"
runat
=
"server"
AllowPaging
=
"false"
DataKeyNames
=
"MapID"
ParentDataKeyNames
=
"MapParentID"
AutoGenerateColumns
=
"false"
OnItemCommand
=
"radItemView_ItemCommand"
OnItemCreated
=
"radItemView_ItemCreated"
AllowMultiItemSelection
=
"True"
OnNeedDataSource
=
"radItemView_NeedDataSource"
>
<
Columns
>
<
telerik:TreeListBoundColumn
DataField
=
"MapID"
HeaderText
=
"MapID"
UniqueName
=
"MapID"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ID"
HeaderText
=
"ID"
UniqueName
=
"ID"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ItemName"
HeaderText
=
"ItemName"
UniqueName
=
"ItemName"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListTemplateColumn
UniqueName
=
"Template Column"
HeaderText
=
" "
>
<
HeaderStyle
Width
=
"140px"
></
HeaderStyle
>
<
ItemTemplate
>
<
telerik:RadButton
ID
=
"AddBtn"
runat
=
"server"
Text
=
"Add"
CommandName
=
"AddItem"
>
</
telerik:RadButton
>
</
ItemTemplate
>
</
telerik:TreeListTemplateColumn
>
</
Columns
>
<
NoRecordsTemplate
>
No Records Found
</
NoRecordsTemplate
>
</
telerik:RadTreeList
>
</
div
>
<
div
class
=
"sortTable sortTableHalf"
>
<
telerik:RadTreeList
ID
=
"radTreeSelected"
runat
=
"server"
AllowPaging
=
"false"
DataKeyNames
=
"MapID"
ParentDataKeyNames
=
"MapParentID"
AutoGenerateColumns
=
"false"
OnItemCommand
=
"radTreeSelected_ItemCommand"
OnItemCreated
=
"radTreeSelected_ItemCreated"
OnDeleteCommand
=
"radTreeSelected_DeleteCommand"
OnNeedDataSource
=
"radTreeSelected_NeedDataSource"
>
<
Columns
>
<
telerik:TreeListBoundColumn
DataField
=
"MapID"
HeaderText
=
"MapID"
UniqueName
=
"MapID"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ID"
HeaderText
=
"ID"
UniqueName
=
"ID"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListBoundColumn
DataField
=
"ItemName"
HeaderText
=
"ItemName"
UniqueName
=
"ItemName"
>
</
telerik:TreeListBoundColumn
>
<
telerik:TreeListTemplateColumn
UniqueName
=
"Template Column"
HeaderText
=
" "
>
<
HeaderStyle
Width
=
"140px"
></
HeaderStyle
>
<
ItemTemplate
>
<
telerik:RadButton
ID
=
"DelBtn"
runat
=
"server"
Text
=
"Remove"
CommandName
=
"Delete"
>
</
telerik:RadButton
>
</
ItemTemplate
>
</
telerik:TreeListTemplateColumn
>
</
Columns
>
<
NoRecordsTemplate
>
No Records Found
</
NoRecordsTemplate
>
</
telerik:RadTreeList
>
</
div
>
</
telerik:RadAjaxPanel
>
The logic with those trees is this. The 'radItemView' contains an add button and lists the hierarchy of elements that can be added. The 'radTreeSelected' contains the items, that were added when they clicked the add button. For the most part it works, but what I noticed is this. Any time you go into the section, clicking the add or remove button for the first time after reaching this step, there is significant delay before the tree update. However, if you click the add or remove button again for a different item, then the update is instantaneous. It seems like to me, is that the wizard is causing the tree list to clear something, and seems to reinitialize when clicking the add button. Is there a way to resolve that?
After upgrading to the latest Telerik binaries on our DotNetNuke (DNN v9.1.1) website, the RadEditor has some odd behavior making it near impossible to use. The RadEditor seems to be centered as a small square inside of a large gray box. Additionally switching between DESIGN and HTML modes causes the entire editor to freak out.
Please see attached screenshots.
Has anyone experienced this, or have a solution to fix it?
-Ben
Hi,
I'm having problems with a RadTreeView which is databound.
I would like to show 1 context menu if the Category of the node is 1 value and another if not which I have achieved using Javascript and the OnClientContextMenuShowing method. I then assign the context menu to each node depending on the category.
The issue I have is I need to be able to use the OnContextMenuItemClick server side method to run some C# depending on the selected context item but assigning this event to the treeview does not fire when the menu items are clicked.
I hope someone can help with this and please let me know if any code snippets are needed.
With a standard ASP .Net RadioButtonList it's simple to bind the SelectedValue:
<asp:RadioButtonList runat="server" ID="rbl_eit_Executed" SelectedValue='<%# Bind("Executed") %>'
RepeatDirection="Horizontal" RepeatLayout="Table" TextAlign="Right">
<asp:ListItem Value="False" Text="No" />
<asp:ListItem Value="True" Text="Yes" />
</asp:RadioButtonList>
Attempting the same thing with RadRadioButtonList:
<telerik:RadRadioButtonList runat="server" Orientation="Horizontal"
SelectedValue="<%# Bind("Executed") %>"
ID="rbl_eit_Executed" Direction="Horizontal"
AutoPostBack="False">
<Items>
<telerik:ButtonListItem Text="Yes" Value="True" />
<telerik:ButtonListItem Text="No" Value="False" />
</Items>
</telerik:RadRadioButtonList>
Results in the error:
"A call to Bind must be assigned to a property of a control inside a template."
The ASP .Net control works inside an Edit Item Template - the Telerik control does not. How to databind SelectedValue (I do NOT care about binding the list of items, those are declarative as shown above).
Hi,
I want to have a Radnumeric Textbox "cssWorkload" in a table <td> element. I am using AJAX to initiate the Text box and do all the functionalities in My code. But when i run the code the Radnumeric text box does not show up when its under ClientItemTemplate.
<ClientItemTemplate>
<table cellpadding="10px" border="0" cellspacing="3px" id="tblSelectedItems1">
<tr style="height: 18px;">
<td class="cssEmployee">
<span>
<asp:Label runat="server" ID="Label1">#= Text #</asp:Label>
<asp:HiddenField runat="server" ID="HiddenField1" Value='#= Value #' />
</span>
</td>
<td class="cssWorkload">
<span>
<telerik:RadNumericTextBox runat="server" Visible="true" ID="RadNumericTextBox1" Type="Number"
RenderMode="Auto" AutoPostBack="True" >
<NumberFormat DecimalDigits="0"></NumberFormat>
<ClientSettings showbutton="true"></ClientSettings>
<ClientEvents OnLoad="Load"/>
</telerik:RadNumericTextBox>
</span>
</td>
</tr>
</table>
</ClientItemTemplate>
Hi
I use ComboBox and I get this error sometimes:
Uncaught Error: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON. Parameter name: data.
My Code:
<telerik:radcombobox runat="server" id="ImpersonationRequestUsersCmb" height="190px" width="300px"
markfirstmatch="true" enableloadondemand="true" highlighttemplateditems="true" emptymessage="<%$ Resources:UserImpersonationResources, SelectUserMessage %>"
onclientitemsrequested="UpdateItemCountField" onitemsrequested="ImpersonationRequestUsersCmb_ItemsRequested"
onitemdatabound="ComboBox_ItemDataBound" skin="MetroTouch" dropdownwidth="500px" nowrap="True">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<ul>
<li class="col1">
<%# (string.IsNullOrWhiteSpace((string)DataBinder.Eval(Container.DataItem, "Login"))) ? " " : DataBinder.Eval(Container.DataItem, "Login") %></li>
<li class="col2">
<%# (string.IsNullOrWhiteSpace((string)DataBinder.Eval(Container.DataItem, "FullName"))) ? " " : DataBinder.Eval(Container.DataItem, "FullName")%></li>
<li class="col3">
<%# DataBinder.Eval(Container.DataItem, "Email") %></li>
</ul>
</ItemTemplate>
<FooterTemplate>
<asp:Literal ID="ltStartString" runat="server" Text="<%$ Resources:UserImpersonationResources, TotalItemsString%>" />
<asp:Literal runat="server" ID="ImpersonationListItemsCount" />
<asp:Literal ID="ltEndString" runat="server" Text="<%$ Resources:UserImpersonationResources, ItemsString%>" />
</FooterTemplate>
</telerik:radcombobox>
please advise
Hi,
As the title said, this happens only in IE browser. Any idea if this bug was fixed in newer versions of Telerik?
My version is 2013.3.1114.35 of Telerik.Web.UI
Thanks!
protected void RadGrd1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
RadGrd1.DataSource = GridRecordSource;
RadGrd1.MasterTableView.VirtualItemCount = ((DataTable)Application["_GridRowSource"]).Rows.Count;
}
private DataTable GridRecordSource
{
get {
object RowSource= Application["_GridRowSource"];
if (RowSource!=null)
{
return RowSource as DataTable;
}
else
{
GridRowSource=UserBL.SelectAll("CustomerDetail");
Application["_GridRowSource"]=GridRowSource;
// RadGrd1.CurrentPageIndex * RadGrd1.PageSize + " AND " + ((RadGrd1.CurrentPageIndex + 1) * RadGrd1.PageSize));
return GridRowSource;
}
}
}
<
telerik:RadGrid
runat
=
"server"
ID
=
"RadGrd1"
AutoGenerateColumns
=
"False"
GridLines
=
"Horizontal"
ShowStatusBar
=
"true"
OnNeedDataSource
=
"RadGrd1_NeedDataSource"
OnDataBound
=
"RadGrid1_DataBound"
Skin
=
"Outlook"
Width
=
"143px"
>
<
MasterTableView
Width
=
"99%"
AllowPaging
=
"true"
PageSize
=
"50"
AllowSorting
=
"false"
BorderStyle
=
"None"
ClientDataKeyNames
=
"RecordID"
TableLayout
=
"Fixed"
NoMasterRecordsText
=
"Records not found in Customerdetail tables"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"FirstName"
HeaderText
=
"Customer Name"
UniqueName
=
"FirstName"
HeaderStyle-Height
=
"122px"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"LastName"
HeaderText
=
""
UniqueName
=
"LastName"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Phonenumber"
HeaderText
=
""
UniqueName
=
"Phonenumber"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Email"
HeaderText
=
""
UniqueName
=
"Email"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"dob"
HeaderText
=
""
UniqueName
=
"dob"
DataType
=
"System.DateTime"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Country"
HeaderText
=
""
UniqueName
=
"Country"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"State"
HeaderText
=
""
UniqueName
=
"State"
Display
=
"false"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
CommandItemTemplate
>
</
CommandItemTemplate
>
</
MasterTableView
>
<
PagerStyle
Visible
=
"false"
/>
<
ClientSettings
ReorderColumnsOnClient
=
"true"
AllowColumnsReorder
=
"true"
ColumnsReorderMethod
=
"Reorder"
>
<
ClientEvents
OnRowSelecting
=
"PushToDock"
/>
<
Virtualization
InitiallyCachedItemsCount
=
"50"
RetrievedItemsPerRequest
=
"50"
ItemsPerView
=
"50"
EnableVirtualization
=
"true"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
<
Selecting
AllowRowSelect
=
"true"
/>
<
Scrolling
ScrollHeight
=
"200px"
AllowScroll
=
"True"
EnableVirtualScrollPaging
=
"true"
UseStaticHeaders
=
"true"
/>
<
Resizing
AllowColumnResize
=
"true"
/>
</
ClientSettings
>
<
SelectedItemStyle
Font-Bold
=
"true"
ForeColor
=
"#000099"
/>
</
telerik:RadGrid
>
function ShowEditForm(tcRecordID, rowIndex) {
tcRecordID = $('input[id$=Recno]').val();
$('input[id$=Recno]').val(tcRecordID); // store the RecordID into asp hidden field so that recordposition will be thre
var openwindow = window.radopen("EditAddRecord.aspx?RecordID=" + tcRecordID, "UserListDialog");
return false;
}