
I have a RadGrid where one of the columns is a GridTemplateColumn with a RadComboBox:
<telerik:RadGrid ID="EmployeeRadGrid" runat="server" Width="96%" GridLines="None" AutoGenerateColumns="False" PageSize="13" AllowSorting="True" AllowPaging="True" ShowStatusBar="true" Visible="False" OnUpdateCommand="EmployeeRadGrid_UpdateCommand" OnNeedDataSource="EmployeeRadGrid_NeedDataSource" OnInsertCommand="EmployeeRadGrid_InsertCommand" OnDeleteCommand="EmployeeRadGrid_DeleteCommand" onitemdatabound="EmployeeRadGrid_ItemDataBound" > <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> <MasterTableView DataKeyNames="EmployeeID" AllowMultiColumnSorting="True" Width="100%" CommandItemDisplay="Top" EditMode="InPlace"> <Columns> <telerik:GridBoundColumn UniqueName="Name" SortExpression="Name" HeaderText="Navn" DataField="Name" /> <telerik:GridTemplateColumn UniqueName="EmployeeID" HeaderText="Departement"> <ItemTemplate> <%#DataBinder.Eval(Container.DataItem, "DepartementName")%> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox runat="server" ID="RadComboBox1" Width="200" DataTextField="Name" DataValueField="DepartementID" DataSourceID="DepartementDataSource" AllowCustomText="False" EnableAutomaticLoadOnDemand="true" OnClientLoad="OnClientLoadHandler"> </telerik:RadComboBox> </EditItemTemplate> </telerik:GridTemplateColumn>The RadComboBox1 is populated through the ItemDataBound event of the EmployeeRadGrid:
protected void EmployeeRadGrid_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item.IsInEditMode) { GridEditableItem item = (GridEditableItem)e.Item; if (!(e.Item is IGridInsertItem)) { RadComboBox combo = (RadComboBox)item.FindControl("RadComboBox1"); combo.Items.Clear(); List<DepartementResult> deps = getDepartements(); foreach (DepResult dep in deps) { RadComboBoxItem newItem = new RadComboBoxItem(); newItem.Text = dep.Name; newItem.Value = dep.DepartementID.ToString(); newItem.Attributes.Add("DepartementName", dep.Name); combo.Items.Add(newItem); newItem.DataBind(); } combo.SelectedValue = ((DepartementResult)e.Item.DataItem).DepartementID.ToString(); } } }I also have another RadGrid, where all the departements are listed, and the user can make changes to them.
What I want is that the departements listed in RadComboBox1 are updated after changes are made in the DepartementRadGrid. Now what happens is that the RadComboBox1 is disabled in a way, - nothing happens if I click on it. The other column in the EmployeeRadGrid is editable.
If I open my page and go straight to the EmployeeRadGrid, I can access the RadComboBox1, and change the departement. But if I make changes in the EmployeeRadGrid, the RadComboBox is not responsive.
Any help is appreciated.


I want to display Line Chart Programmatically. I do not want to display anything on X-Axis. I want to display some integer values on Y-Axis. By using the below code Line chart is getting displayed but some series are not fully getting displayed.
I am using dataTable (dt) to bind the chart.
Below are the two different approaches.
With first approach, i am getting the series in chart, but which is not using full length of x-axis irrespective of series item data for each series.
With second approach, i am not able to view the series in the chart. In order to resolve the issue with first approach, i also tried this second approach.
if (dt != null && dt.Rows.Count > 0){ //First approach STARTS RadChartBiddingLineGraph.DefaultType = Telerik.Charting.ChartSeriesType.Line; RadChartBiddingLineGraph.PlotArea.YAxis.AutoScale = false; RadChartBiddingLineGraph.PlotArea.YAxis.AddRange(Convert.ToInt32(dt.Rows[0][3]), Convert.ToInt32(dt.Rows[0][4]), 10); RadChartBiddingLineGraph.DataGroupColumn = "Hotel"; RadChartBiddingLineGraph.DataManager.ValuesYColumns = new String[] { "RateValue" }; RadChartBiddingLineGraph.DataSource = dt; RadChartBiddingLineGraph.DataBind(); foreach (Telerik.Charting.ChartSeries series in RadChartBiddingLineGraph.Series) { series.Appearance.LabelAppearance.Visible = false; RadChartBiddingLineGraph.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false; } //First approach ENDS //Second approach STARTS DataTable dt2 = new DataTable(); // Get the distinct records. HERE dt1 is the table in which there are all records(which are retrieved from SP) dt2 = dt.DefaultView.ToTable(true, dt.Columns[0].ColumnName); int s = 0; RadChartBiddingLineGraph.PlotArea.YAxis.AutoScale = false; RadChartBiddingLineGraph.PlotArea.YAxis.AddRange(120, 185, 5); foreach (DataRow item in dt2.Rows) //dt2 is the datatable in if have now distinct AuctionInviteIDs { //just get the data on basis of AuctionInviteId //if want the result in datatable DataTable dtFilteredTable = (from a in dt.AsEnumerable() where a.Field<Int32>("AuctionInviteID").Equals(item["AuctionInviteID"]) select a).CopyToDataTable(); ChartSeries chartSeries = new ChartSeries(); chartSeries.Name = s.ToString(); RadChartBiddingLineGraph.AddChartSeries(chartSeries); chartSeries.Type = ChartSeriesType.Line; foreach (DataRow item2 in dtFilteredTable.Rows) { chartSeries.AddItem(Convert.ToInt32(item2["RateValue"])); //RadChartBiddingLineGraph.Series[s].AddItem(Convert.ToInt32(item2["RateValue"])); } RadChartBiddingLineGraph.Series.Add(chartSeries); s = s + 1; } RadChartBiddingLineGraph.DataGroupColumn = "Hotel"; RadChartBiddingLineGraph.DataSource = dt; RadChartBiddingLineGraph.DataBind(); foreach (Telerik.Charting.ChartSeries series in RadChartBiddingLineGraph.Series) { series.Appearance.LabelAppearance.Visible = false; RadChartBiddingLineGraph.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false; } //Second approach ENDS}

function ShowOverCash() {
var strOver = "";
strOver = $("#<%=hdMsg.ClientID%>").attr("innerHTML");
//alert(strOver);
//var oConfirm = radconfirm(strSobreGiro, "aprSobreGiro", 700, 350, null, "La solicitud presenta Sobregiro");
var oConfirm = radalert("hello", "aprSobreGiro");
}
function aprSobreGiro(arg) {
alert(arg);
return false;
}
I have commented thr original code for test, but doesn't work.
when the program call the function ShowOverCash, fire a Error like this:
Microsoft JScript runtime Error: can´t get the property value from '_visibilityMode': the object is undefined or null