My solution uses a splitbar to hide a upload button in the lower half of the pane and a listbox and a dropdownlistbox in the upper half of the same pane. The splitbar should be collapsed upon page load, hiding the upload button. What is the command for this? I can place the command in the Page_load of the web page if I knew it. Also, the splitbar should move down, collapse, to hide the upload button when the dropdownlistbox option is changed. The splitbar should move up, expand, when the user completes the selection process by choosing a option in the listbox. None of the animations are working.
The control does work when coded within the vb codebehind but I am required to have it operate on the client side using jQuery. In Firefox v21.0, Firebug gives me the following error:
TypeError: splitter.expand is not a function.
I'm using Telerik RadControls for ASP.NET Ajax version 2013.1.220.40. Thanks.
$(function () { $('#<%= dropdwn.ClientID %>').change(function (e) { B_SelectedIndexChanged(); resizePane(false) e.preventDefault(); }); $('#<%= Listbox.ClientID %>').change(function (e) { O_SelectedItemChanged(); resizePane(true) e.preventDefault(); }); }); function resizePane(source) { var splitter = $("#<%= HideUploadRadsplitbar.ClientID %>"); var pane = $("#<%= FileUploadRadpane.ClientID %>"); if (source = true) { splitter.expand(); } else { pane.collapse(); } }
but i want same thing do in the RadChartnow how to do .. plzz help me out from this thing.. how to do with the radChart no external DataSource Wizard all things by the Coding only how to doColumnChart c = new ColumnChart();c.MaxColumnWidth = 20;c.Fill.Color = Color.Black;c.Fill.ForeColor = Color.Blue;c.Fill.Type = InteriorType.Hatch;c.Fill.HatchStyle = HatchStyle.Cross;c.Legend = "Date/Bill";SqlConnection conn = new SqlConnection(@"Data Source=.\SQL2005;Initial Catalog=OrderProcessAutomation;Persist Security Info=True;User ID=sa;Password=123456");conn.Open();string qry = "Rpt_DailyBillTrend";SqlCommand cmd = new SqlCommand(qry, conn);cmd.CommandType = CommandType.StoredProcedure;cmd.Parameters.AddWithValue("@FromDate", txtFromDate.Text);cmd.Parameters.AddWithValue("@ToDate", txtToDate.Text);c.DataSource = cmd.ExecuteReader();c.DataXValueField = "Date";c.DataYValueField = "BillCount";c.DataBind();conn.Close();Chart1.Charts.Add(c);Chart1.Charts.Add(new LineChart(c.Data, Color.Black));Chart1.RedrawChart();
function ResetComboBoxValue(ctrl, isDisable) { var combo = $find(ctrl); var input = combo.get_inputDomElement(); if (combo != null) { combo._enabled = true; combo.trackChanges(); combo.clearSelection(); combo.set_emptyMessage(combo.get_emptyMessage()); if (isDisable) { combo._enabled = false; input.readOnly = true; } combo.commitChanges(); }}
$find("<%= RadGrid1.ClientID %>").get_masterTableView().editItem(editedRow);<form id="Form1" method="post" runat="server" style="margin-left: 0px; margin-top: 0px">
<asp:ScriptManager ID="scriptManager1" runat="server"></asp:ScriptManager>
<telerik:RadAjaxManager ID="ajaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="chkMain">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panelMain" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="chkSub">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panelSub" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
<asp:CheckBox ID="chkMain" runat="server" Checked="false" Text="main" AutoPostBack="true" OnCheckedChanged="chkMain_CheckedChanged" />
<asp:Panel ID="panelMain" runat="server" Visible="false">
<asp:TextBox ID="MainText" runat="server" />
<asp:RequiredFieldValidator ID="rv1" runat="server" ControlToValidate="MainText" ErrorMessage="required" />
</asp:Panel>
<asp:CheckBox ID="chkSub" runat="server" AutoPostBack="true" Checked="false" Text="sub" />
<asp:Panel ID="panelSub" runat="server" Visible="false">
Description
</asp:Panel>
<asp:Button ID="btnSubmit" CausesValidation="true" runat="server" Text="Submit"></asp:Button>
</form>
and my codebehind is very simple too:
protected void Page_Load(object sender, EventArgs e)
{
}
protected void chkMain_CheckedChanged(object sender, EventArgs e)
{
panelMain.Visible = chkMain.Checked;
}
