Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
303 views

We recently upgraded our controls to the Q1 2013 SP2 assembly from 2011 0519. In making this change, we have noticed some significant changes to the way that some of the controls function.
• One of those issues is that the RadGrid control no longer accepts null or DBNull.Value in the DataFields. Changing the underlying data sets to return non-null values is not an immediate option for us since our solution is simply too large to identify all the places where that could be happening. We have been starting the process of re-working some of our pages to do this, but we have several hundred pages/user controls that need to be checked. In the meantime we need to find a work around to make the controls work similarly to the way they used to.
• The other issue is that the Visible=false property on a bound column is no longer maintaining ViewState properly. We know that we can change the Visible to Display and effectively get the old behavior, but there are many places where this was used.
We’ve been seeing other issues, but have not determined if they are due to a change in the Telerik controls or due to a recent upgrade to the latest jQuery library. Can you please at least help us to resolve these two issues?
Kindly let me know if you need any additional information.
Thanks.


Vasil
Telerik team
 answered on 08 May 2013
1 answer
117 views
Hi,

Attached is the code for Hierarchy RadGrid.

I always get error message "No child records to display."  though I have added below code:

protected void RadGrid1_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
    {
        e.DetailTableView.DataSource = GetPlans();
    }

Attached is the code for your reference. Please help.
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 May 2013
1 answer
106 views
Hi Telerik,

How can I create my own skin for RadControls? I need a step by step help guide.

Thanks,
Sameer
Shinu
Top achievements
Rank 2
 answered on 08 May 2013
4 answers
153 views
I have a radgrid in which I am using a custom edit form. When I do anything on the edit form I am getting the error in the screenshot attached to this post. Below is the code for my edit form control and code behind of the custom edit form control.

Custom Edit Form Control UI Code:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditSCAC.ascx.cs" Inherits="EditSCAC" %>
<telerik:RadAjaxManager ID="radAjaxMgr" runat="server" UpdatePanelsRenderMode="Inline">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="scacGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="scacTypeDDL" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<div>
    <table id="scacEditTable">
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:Label runat="server">SCAC:</asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="scacTB" runat="server"  Text='<%# DataBinder.Eval( Container, "DataItem.SCAC") %>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:Label runat="server">SCAC DESCRIPTION:</asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="scacDescTB" runat="server"  Text='<%# DataBinder.Eval( Container, "DataItem.SCAC_DESC") %>'></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label runat="server">SCAC PHONE:</asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="scaPhoneTB" runat="server"  Text='<%# DataBinder.Eval( Container, "DataItem.SCAC_PHONE") %>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:Label runat="server">SCAC TYPE:</asp:Label>
                        </td>
                        <td>
                            <telerik:RadComboBox ID="scacTypeDDL" AutoPostBack="True" runat="server" EmptyMessage="Please choose a type...">
                            </telerik:RadComboBox>
                        </td>
                        <td>
                            <asp:Label runat="server">CONTACT:</asp:Label>
                        </td>
                        <td>
                            <telerik:RadComboBox ID="contactDDL" AutoPostBack="True" runat="server" EmptyMessage="Please choose a contact...">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is GridInsertionObject) %>'
                                CausesValidation="true" ValidationGroup="FormValidationGroup"></asp:Button>
                            <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert"
                                Visible='<%# (DataItem is GridInsertionObject) %>' CausesValidation="true" ValidationGroup="FormValidationGroup">
                            </asp:Button>
                              
                            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                CommandName="Cancel"></asp:Button>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>


Custom Edit Form Control Code Behind:
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
using Telerik.Web.UI;
 
namespace IRRIS.Site.DTTS
{
    public partial class EditSCAC : System.Web.UI.UserControl
    {
        public object DataItem { get; set; }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            Populate_SCACDDL();
            Populate_ContactsDDL();
        }
 
        protected void Populate_SCACDDL()
        {
            var ds = new DataSet();
            var factory = new QueryFactory(new Configuration().DataConfigurationFile);
            var query = factory.GetQuery("P_GET_SCAC_TYPES");
            query.Fill(ds);
 
            var list = new List<string>();
            var dt = ds.Tables[0];
            list = (from dr in dt.AsEnumerable()
                    select dr.Field<string>("LUVALUE")).ToList<string>();
 
            scacTypeDDL.DataTextField = ds.Tables[0].Columns["LUDESCRIPTION"].ToString();
            scacTypeDDL.DataValueField = ds.Tables[0].Columns[1].ToString();
            scacTypeDDL.DataSource = ds.Tables[0];
 
            var scacTypeDdlValue = String.Empty;
             
            if (DataItem != null)
            {
                scacTypeDdlValue = DataBinder.Eval(DataItem, "SCAC_TYPE").ToString();
                if (!list.Contains(scacTypeDdlValue))
                {
                    scacTypeDDL.SelectedIndex = -1;
                }
                else
                {
                    scacTypeDDL.SelectedValue = scacTypeDdlValue;
                }
            }
        }
 
        protected void Populate_ContactsDDL()
        {
            var ds = new DataSet();
            var factory = new QueryFactory(new Configuration().DataConfigurationFile);
            var query = factory.GetQuery("P_GET_ALL_CONTACTS");
            query.Fill(ds);
 
            var list = new List<string>();
            var dt = ds.Tables[0];
            list = (from dr in dt.AsEnumerable()
                    select Convert.ToString(dr.Field<decimal>("CONTACT_ID"))).ToList<string>();
 
            contactDDL.DataTextField = ds.Tables[0].Columns["CONTACT_ORG"].ToString();
            contactDDL.DataValueField = ds.Tables[0].Columns[0].ToString();
            contactDDL.DataSource = ds.Tables[0];
 
            var contactDdlValue = String.Empty;
             
            if (DataItem != null)
            {
                contactDdlValue = DataBinder.Eval(DataItem, "SCAC_CONTACT_ID").ToString();
                if (!list.Contains(contactDdlValue))
                {
                    contactDDL.SelectedIndex = -1;
                }
                else
                {
                    contactDDL.SelectedValue = contactDdlValue;
                }
            }
        }
    }
}


Any ideas what could be causing this error?
Eyup
Telerik team
 answered on 08 May 2013
1 answer
215 views
Hi there,

I'm handling the client side event 'OnClientHiding'. The event is raised and my code is called. In my code some click events are assigned to some check boxes using jQuery. Unfortunately the click event handlers don't run when I click on the check boxes.

The jQuery code works perfectly when the page first loads. Its when I try and re-initialize the check boxes after a call back that it doesn't run properly.

Do you have any idea how to fix this?

Here is some code...

$(document).ready(function () {  
    f
(); 
}); 
 
 
function LoadingPanelHiding(sender, eventArgs) { 
     f
(); 
 
} 
 
 
function f() { 
         $
('.selectAll').click(function () { 
             alert
('Hello world!'); 
        
}); 
 
} 

Cheers, Ian.
Trustteam
Top achievements
Rank 2
 answered on 08 May 2013
3 answers
113 views
Hi,

I am in the process of developing a custom dashboard webpart in Sharepoint 2010 by making use of RadChart. I need to add RadToolTips to the series items of the radchart showing the values of the series items. I am able to bring tool tips by making use of RadToolTipManager by setting its AutoTooltipify property to true but using RadToolTipManager I am not able to display any image or control the appearance of the tooltip as I could do in ordinary RadToolTip (any html snippet can be included in ordinary RadToolTip).
So can you please tell me a way for showing RadToolTip with an image in it for RadChart Series item (without using RadToolTipManager)? Please respond to this ASAP since I am doing POC for making use of RadChart within Sharepoint webpart. 

Note: This RadChart is being used in the Visual Webpart in VS 2010. The version of Rad controls I use is "RadControls for ASP.NET AJAX Q1 2013" 

Thanks,
Rahib S.
Stamo Gochev
Telerik team
 answered on 08 May 2013
1 answer
159 views
Hi,

I created a radChart programmatically, with positive and negative values. But when the chart is plotted, a black line appears in the zero value.
How do i disable/hide this?
Peshito
Telerik team
 answered on 08 May 2013
1 answer
85 views
Hi,

How to change the Radmenuitem forecolor kn mouse overing?

Thanks for reply,
Tia.
Shinu
Top achievements
Rank 2
 answered on 08 May 2013
1 answer
141 views
i have two dropdownlist in that one dropdownlist connected with stored procedure it contains data textfield is cellname and data valuefield is cellid based on cellid the second dropdownlist displays zone name.  in second dropdownlist contains list of values. after selecting the value and button click event performed. if button clicked, default first value is loaded.
Shinu
Top achievements
Rank 2
 answered on 08 May 2013
4 answers
177 views
Hi All,

I'm currently trying to make a simple form using the ASP.NET Grid control and I am running into an issue. When I try to use CRUD with the Entity Framework, all the fields that are not relationships to other tables work great, but fields that are relationships don't show up at all. A great example is the Telerik example:
http://demos.telerik.com/aspnet-ajax/grid/examples/databinding/net35datasourcecontrols/defaultcs.aspx

In the second grid, the one that is bound to an Entity, you see that category shows up as an ID. I don't even get this much in my app. I see all the fields except for the Category field. Ideally it would show the name of the category, and then when you do any CRUD operations, it would show the field as a ComboBox.

Is this something that is even possible with the Telerik controls?


Thanks!
Antonio Stoilkov
Telerik team
 answered on 08 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?