Hi,
Telerik 3Q 2013
New to telerik, have experience with other control suites.
I'm taking a dive into the Pivot Grid and running into some issues.
I would like to utilize a Configuration Panel with a pivot grid. I've set the appropriate properties and the configuration panel is not displaying.
I'm setting the data source at runtime via a DataTable.
I've opened the Demo project and noticed the configuration panel is built via the qsf namespace i.e. Telerik.QueckStart project.
Is there a two separate approaches to implementing the configuration panel?
The columns provided by the DataTable, have to be set to a column or a row? I would like to give the user the ability drag and drop to and row or a column as they slice and dice data.
I'm developing an ASP.NET Web Application in C#.
The user is selecting some listed values from radcombobox. Those values are being saved in Database. When the same user login and select the combo box, already selected values should be visible but shouldn't be get selected. I need to disable the values... Is there any options to do it.
Note : I'm populating the combo-box items from a database table.
function pageLoad() {
proxy.GetScreeningsByZipCode44212(updateGrid);
}
function updateGrid(results) {
alert("<%= rdScreenings.ClientID %>");
var radgrid = $find("<%= rdScreenings.ClientID %>");
alert('got radgrid');
var tableview = $find("<%= rdScreenings.ClientID %>").get_masterTableView();
alert('before datasource');
tableview.set_dataSource(results);
tableview.dataBind();
}
function refreshData() {
proxy.GetScreeningsByZipCode44212(updateGrid);
}
</script>
</telerik:RadScriptBlock>
// snippets of the html & controls
<asp:ScriptManager ID="scriptManager" runat="server">
<Services>
<asp:ServiceReference Path="~/proxy.asmx" />
</Services>
</asp:ScriptManager>
I am using ASPNET AJAX Q1 2009
Imports Microsoft.VisualBasicImports SystemImports System.WebImports System.Web.UIImports System.TextImports System.Web.ConfigurationImports Telerik.Web.UIPartial Class Main Inherits System.Web.UI.Page Public aEditButton(11) As RadButton Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load Dim x As Integer = 0 Do While x < 10 aEditButton(x) = New RadButton aEditButton(x).Text = "Edit" aEditButton(x).ID = "EButton" & x AddHandler aEditButton(x).Click, AddressOf Me.EditText RadMultiPage1.PageViews(0).Controls.Add(New LiteralControl("<table><tr><td style=""width: 45px""></td><td>" & x & "</td><td>")) RadMultiPage1.PageViews(0).Controls.Add(aEditButton(x)) RadMultiPage1.PageViews(0).Controls.Add(New LiteralControl("</td></tr></table>")) x += 1 Loop End Sub Private Sub EditText(ByVal sender As Object, ByVal e As System.EventArgs) Dim buttonId As String Dim x As Integer buttonId = DirectCast(sender, RadButton).ID x = Mid(buttonId & " ", 8, 2) Editor1.Content = x editFindings.Items.Add(New RadComboBoxItem(x, x)) Dim script As String = "function f(){$find(""" + modalPopup.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);" ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True) Label1.Text += "Got Here..." End Sub Protected Sub bReturn_Click(sender As Object, e As EventArgs) Handles bReturn.Click Label1.Text += "Exit Page..." End Sub Protected Sub Timer1_Tick(sender As Object, e As System.EventArgs) Handles Timer1.Tick 'Processing code here ... Label1.Text = "[Auto Stored @ " & Date.Now.ToLocalTime & "]" End Sub Protected Sub editSave_Click(sender As Object, e As EventArgs) Handles editSave.Click Label1.Text += "From Editor:[" & Editor1.Content & "]" End Sub Protected Sub editAdd_Click(sender As Object, e As EventArgs) Handles editAdd.Click Editor1.Content = Editor1.Content & "<br/>" & editFindings.SelectedValue End SubEnd Class<%@ Page Title="" Language="VB" AutoEventWireup="false" CodeFile="!Test1.aspx.vb" Inherits="Main" %><html> <head runat="server"> <title> Test </title> </head><form id="form1" runat="server"> <body id="mainBody" runat="server"> <telerik:RadScriptManager ID="ScriptManager1" runat="server"></telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2010Blue" EnableRoundedCorners="true" /> <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" Runat="server"></telerik:RadStyleSheetManager> <asp:Label ID="Label1" runat="server"></asp:Label><br /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" > <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Timer1"> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <asp:Panel ID="Panel1" runat="server" BorderStyle="Ridge" BorderWidth="3px" Width="95%" HorizontalAlign="Left" DefaultButton="bReturn"> <table style="width:100%"> <tr> <td style="text-align: left"> <telerik:RadButton ID="bReturn" runat="server" Text="Return" Width="180px" Font-Size="16px"></telerik:RadButton> </td> </tr> </table> <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" SelectedIndex="0"> <telerik:RadPageView ID="PageView1" runat="server"></telerik:RadPageView> <telerik:RadPageView ID="PageView2" runat="server" Width="100%"></telerik:RadPageView> </telerik:RadMultiPage> </asp:Panel> <asp:Panel ID="Panel2" runat="server"> <asp:Timer ID="Timer1" runat="server" Interval="120000" OnTick="Timer1_Tick"/> <telerik:RadWindow ID="modalPopup" runat="server" Width="725px" Height="360px" Modal="true" > <ContentTemplate> <div> <table style="width:725px"> <tr> <td> <asp:Label ID="editL1" runat="server" Text="Use this editor to formulate your response to this category"></asp:Label> </td> <td style="text-align:right"> <telerik:RadButton ID="editSave" Text="Save" AutoPostBack="false" CausesValidation="false" runat="server" /> </td> </tr> </table> <telerik:RadEditor Width="725px" Height="300px" EditModes="Design" ID="Editor1" runat="server"></telerik:RadEditor><br /> <asp:Label ID="edit2" runat="server" Text="Choose Item to add to Findings Above"></asp:Label><br /> <telerik:RadComboBox ID="editFindings" Width="420px" runat="server"></telerik:RadComboBox> <telerik:RadButton ID="editAdd" Text="Add" AutoPostBack="false" CausesValidation="false" runat="server" /> </div> </ContentTemplate> </telerik:RadWindow> </asp:Panel> </body></form></html>I set the OverwriteExistingFiles attribute to false, but files are being overwritten any way?
Version:2010.2.817.20
Here is my code:
<
telerik:RadAsyncUpload runat="server" ID="AsyncUpload" Skin="Office2007" OverwriteExistingFiles="false" MultipleFileSelection="Automatic" Width="250" OnFileUploaded="RadAsyncUpload1_FileUploaded">
</
telerik:RadAsyncUpload>
I have a grid that has a GridTemplateColumn, with an EditItemTemplate inside. Inside the EditItemTemplate is a RadNumericTextBox. I'm trying to loop through the rows in the grid server side, outside the normal RadGrid events. I have a button that when clicked sends me server side and in that event I need to loop through and grab the values from all the rows.
I have no problem grabbing the DataKeyValue for the row, it's just the value of txtQuantity I am unable to get.
Here is my ASCX:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" DataSourceID="Products" Skin="Forest" GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound" Width="50%"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" ></Scrolling> </ClientSettings> <MasterTableView ShowFooter="true" AutoGenerateColumns="False" CurrentResetPageIndexAction="SetPageIndexToFirst" DataKeyNames="ID" DataSourceID="Products" Dir="LTR" Frame="Border" TableLayout="Auto" EditMode="Batch" BatchEditingSettings-OpenEditingEvent="Click" CommandItemDisplay="None"> <Columns> <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" ReadOnly="True" UniqueName="ID" /> <telerik:GridBoundColumn DataField="ProductName" ReadOnly="true" HeaderText="Product" UniqueName="ProductName" /> <telerik:GridTemplateColumn DataField="Quantity" UniqueName="Quantity" HeaderText="Quantity" DataType="System.Int32"> <ItemTemplate> <%# Eval("Quantity")%> </ItemTemplate> <EditItemTemplate> <telerik:RadNumericTextBox ID="txtQuantity" runat="server" Width="40px" DataType="System.Int32" NumberFormat-DecimalDigits="0" Skin="Forest"> <ClientEvents OnBlur="Blur" OnFocus="Focus" /> </telerik:RadNumericTextBox> </EditItemTemplate> <FooterTemplate> <telerik:RadNumericTextBox ID="TextBox2" runat="server" Width="40px" DataType="System.Int32" NumberFormat-DecimalDigits="0" Skin="Forest" ReadOnly="True"> <ClientEvents OnLoad="Load" /> </telerik:RadNumericTextBox> </FooterTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /></telerik:RadGrid>Protected Sub btnProcess_Click(sender As Object, e As EventArgs) Try For Each row As GridDataItem In RadGrid1.MasterTableView.Items Dim key As String = row.GetDataKeyValue("ID") Dim qty As RadNumericTextBox = DirectCast(row("Quantity").FindControl("txtQuantity"), RadNumericTextBox) Next Catch ex As Exception Response.Write(ex.ToString) End TryEnd Sub