

Hi Guys,
I have used RadGrid with batchupdate. I have datalist, When I choose one item from DataList (Product code, Name, Quantity, Quom..), I want to add a new row into Radgrid and auto fill product code, name, quantity.. that I had chossen from Datalist.
I have function below:
I$("[id*=btnAddNewD]").live("click", function () {
var prdccode = $("[id*=lblPrdcCode]", $(this).closest("table")).html();
var prdcname = $(this).parent().parent().parent().find("input[type=hidden]").val();
addNewItem(prdccode, prdcname);
return false;
});
function addNewItem(prdccode, prdcname) {
var grid = $find('<%=RadGrid1.ClientID%>');
var grid_master = grid.get_masterTableView()
var grid_batchmanager = grid.get_batchEditingManager()
grid_batchmanager.addNewRecord(grid_master);
var newItem = grid_master.get_dataItems()[0]
var v_prdccode = newItem.get_cell("PrdcCode");
var newItem1 = grid_master.get_dataItems()[0]
var v_prdcname = newItem1.get_cell("MPrdcNme");
setTimeout(function () {
grid.get_batchEditingManager().changeCellValue(v_prdccode, prdccode); => change
grid.get_batchEditingManager().changeCellValue(v_prdcname, prdcname); => Not change
}, 0);
}
...but only first column was changed value. please help me.
Thanks.

<telerik:RadSearchBox ID="rsbSearch" runat="server" InputType="Text" TextSettings-SelectionMode="Single" DataSourceID="SqlSearchDataSource" DataValueField="ID" OnDataSourceSelect="rsbSearch_DataSourceSelect" EmptyMessage="Rechercher" Width="250px" MaxResultCount="5" > <SearchContext ShowDefaultItem="false" DataKeyField="Titre" > <Items> <telerik:SearchContextItem Text="Nouvelle" Key="News" /> <telerik:SearchContextItem Text="Bottin" Key="Bottin" /> </Items> </SearchContext> <DropDownSettings CssClass="rsbSearchPopUp"> <ItemTemplate> <asp:PlaceHolder ID="test1" runat="server"> <table class="tableNews" style="z-index:200;" > <tbody> <tr> <td class="actualityDescription"> <table> <tr> <td>.............protected void rsbSearch_DataSourceSelect(object sender, SearchBoxDataSourceSelectEventArgs e) { SqlDataSource source = (SqlDataSource)e.DataSource; RadSearchBox mySearchBox = (RadSearchBox)sender; string filterString = e.FilterString; if (e.SelectedContextItem != null && e.SelectedContextItem.Key.ToLower() == "news") { source.SelectCommand = "SELECT TOP 100 * FROM [NewsData] WHERE DescriptionCourte Like '%" + filterString + "%'" + " OR Titre Like '%" + filterString + "%'" + " OR DescriptionLongue Like '%" + filterString + "%'"; } else { //mySearchBox.DataSource = Intranet.BL.Employe.GetEmployees(true, filterString); } }
Hi, I want something like
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx
but I don't want to create any RadPageView in server-side way, but only use the RadPageViews already created client-side.
Until now, I have
a RadMultiPage with RenderSelectedPageOnly="true"
and in RadTabStrip AutoPostBack="true"
.... I totally want to avoid postbacks.
Is possible?
Good afternoon,
After some extended searching on the forums, Google and SO I have been unable to find any way to integrate mobile-support (long-touch) for FileExplorer.
What I want is to show the context-menu (rename, download etc...) when a user is on a handheld device (most usually an iPad using Safari).
I've found some threads showing how to add mobile-support for radschedulers and attempted to integrate it into my code, but to no avail.
To clarify: I want my FileExplorer to handle any longtouch on a handheld device as a right-click event by a mouse (desktop).
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="FileExplorer.ascx.vb" Inherits="WSC.DNN.WSCFileExplorer.FileExplorer" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %><script type="text/javascript"> (function (global, undefined) { function OnClientFileOpen(oExplorer, args) { var item = args.get_item(); var fileExtension = item.get_extension(); var fileDownloadMode = true; if ((fileDownloadMode == true) && (fileExtension == "jpg" || fileExtension == "gif" || fileExtension == "png")) {// Download the file // File is a image document, do not open a new window args.set_cancel(true); // Tell browser to open file directly var requestImage = window.location.origin + "/Desktopmodules/WSCFileExplorer/Controls/Handler.ashx?path=" + item.get_url(); if (requestImage.indexOf("localhost") != -1) { requestImage = window.location.origin + "/jaberodnn7/Desktopmodules/WSCFileExplorer/Controls/Handler.ashx?path=" + item.get_url(); } //var requestImage = "Handler.ashx?path=" + item.get_url(); //document.location = requestImage; window.open(requestImage); } } global.OnClientFileOpen = OnClientFileOpen; })(window); jQuery(function ($) { var setupModule = function () { $('#frmWSCRepository').dnnPanels(); $('#frmWSCRepository .dnnFormExpandContent a').dnnExpandAll({ targetArea: '#frmWSCRepository' }); }; setupModule(); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () { // note that this will fire when _any_ UpdatePanel is triggered, // which may or may not cause an issue setupModule(); }); }); //function OnClientLoad(explorer, args) { // var chkBox = $get("fileexplorer1_chkOverwrite"); // chkBox.checked = true; // chkBox.parentNode.style.display = "none"; //}; //function OnClientFileOpen(sender, args) { // if (!args.get_item().isDirectory()) { // var href = args.get_item().get_path(); // window.location.href = href; // args.set_cancel(true); // } //};</script><div class="dnnForm dnnClear" id="frmWSCRepository"> <h2 id="WSCRepositoryExp" class="dnnFormSectionHead"> <a href="#">Documents Repository</a></h2> <fieldset class="dnnClear"> <telerik:RadFileExplorer runat="server" ID="WSCFileExplorer" Width="520px" Height="310px" Language="en-GB" PageSize="50" EnableOpenFile="true" onclientfileopen="OnClientFileOpen"> </telerik:RadFileExplorer> <asp:CustomValidator ID="CustomValidator1" runat="server" CssClass="dnnFormMessage dnnFormValidationSummary" ErrorMessage="CustomValidator" Display="Dynamic"></asp:CustomValidator> </fieldset> <!-- javacsript taking care of the download (rightclick) event --> <script> function extendedFileExplorer_onGridContextItemClicked(oGridMenu, args) { var menuItemText = args.get_item().get_text(); if (menuItemText == "Download") {// 'Download' command extendedFileExplorer_sendItemsPathsToServer(); } } function extendedFileExplorer_sendItemsPathsToServer() { var oExplorer = $find("<%= WSCFileExplorer.ClientID%>"); // Find the RadFileExplorer ; var selectedItems = oExplorer.get_selectedItems(); // Retrieve the selected items ; var selectedItemsPaths = extendedFileExplorer_combinePathsInAString(selectedItems); // Get the paths as a string in specific format ; var hiddenField = $get("<%= ctlHiddenField.ClientID %>"); // Find the hiddenField hiddenField.value = selectedItemsPaths; __doPostBack("<%= btnDownload.UniqueID %>", ""); // Call the 'btnDownload_Click' function on the server ; } function extendedFileExplorer_combinePathsInAString(arrayOfSelectedItems) { var itemPaths = new Array(); for (var i = 0; i < arrayOfSelectedItems.length; i++) { // Pass all the selected paths ; itemPaths.push(arrayOfSelectedItems[i].get_path()); } // Return a string that contains the paths ; return itemPaths.join("|"); }</script>Thanks!

Hello All,
I want the RadPanelBar to load by collapsing all the items, if the user need to see and they can expand, but collapse all is not happening at all.
In my case my datasource will be like this
Item1
--Item1.1
--Item1.2
while loading the page I want to see only the Item1 alone
Mark up code:
<telerik:RadPanelBar ID="rdPnlOrgDetail" RenderMode="Lightweight" OnDataBound="rdPnlOrgDetail_DataBound" runat="server" OnPreRender="rdPnlOrgDetail_PreRender" AllowCollapseAllItems="true" ExpandMode="SingleExpandedItem" OnClientLoad="collapseAll">
</telerik:RadPanelBar>
Dynamically adding the Items
rdPnlOrgDetail.CollapseAllItems();
var source= getSource();
rdPnlOrgDetail.Items.Clear();
RadPanelItem orgItems = new RadPanelItem();
orgItems.Text = string.Format("{0} : {1}", orgChart.First().OrganisationScope.Scope, orgChart.First().Name.ToString());
orgItems.Expanded = false;
for (int i = 1; i < orgChart.Count; i++)
{
RadPanelItem orgItem = new RadPanelItem(string.Format("{0} : {1}", orgChart[i].OrganisationScope.Scope, orgChart[i].Name.ToString()));
orgItem.Expanded = false;
orgItems.Items.Add(orgItem);
orgItems.Expanded = false;
}
orgItems.Expanded = false;
rdPnlOrgDetail.Items.Add(orgItems);
rdPnlOrgDetail.CollapseAllItems();
please do the needful.
With Thanks
Amjath