Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
Hello Guys.

I would like to know, how can I use the CheckBoxField Column like ind gridview? Are there other alternative?

Tx in advance.

Regards.
Shinu
Top achievements
Rank 2
 answered on 25 Mar 2010
3 answers
157 views
Hi Guys

I am new to this forum
I came across with one problem
I have user name and password field
I have two panel with id errormsg and successmsg

<asp:Button ID="btnSubmit"  OnClientClick="SubmitForm();" Text="Login"
                                runat="server" onclick="btnSubmit_Click" />


     <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSubmit" >
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="errormsg "></telerik:AjaxUpdatedControl>
             </UpdatedControls>
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="successmsg"></telerik:AjaxUpdatedControl>
         </UpdatedControls>
                </telerik:AjaxSetting>
     </AjaxSettings>    
   
so after entering username and password and enter key is pressed it not working

Please guide me

Karthik.K

Karthik Kantharaj
Top achievements
Rank 1
 answered on 25 Mar 2010
2 answers
85 views
Hi,

this is shanker am doing one project .My requirement is hierarchy of radgrid .I am doing multi hierarchy in single level hierarchy grid i have multiple detail tables in rad grid How to difference in item data bound event .this my code

if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
            {
            if (e.Item.OwnerTableView.DetailTableIndex == 0)
                {
                 
                        int? eventId = GetEventId(e.Item);

                        if (e.Item.OwnerTableView.IsItemInserted)
                        {
                            //item is about to be inserted
                        }
                        else
                        {
                            if (eventId.HasValue)
                            {
                                var det = studentinformation.sch_view_student_profile_detail(eventId.Value);


                                if (det != null)
                                {

                                    TextBox txtFristname = e.Item.FindControl("txtFristname") as TextBox;
                                    if (txtFristname != null)
                                    {
                                        txtFristname.Text = det.first_name;
                                    }
                                    TextBox txtLastName = e.Item.FindControl("txtLastName") as TextBox;
                                    if (txtLastName != null)
                                    {
                                        txtLastName.Text = det.last_name;
                                    }
                                    TextBox txtMiddleName = e.Item.FindControl("txtMiddleName") as TextBox;
                                    if (txtMiddleName != null)
                                    {
                                        txtMiddleName.Text = det.middle_name;
                                    }
                                    TextBox txtAdmission = e.Item.FindControl("txtAdmission") as TextBox;
                                    if (txtAdmission != null)
                                    {
                                        txtAdmission.Text = det.admission_number;
                                    }
                                    RadioButtonList rdbgender = e.Item.FindControl("rdbgender") as RadioButtonList;
                                    if (rdbgender != null)
                                    {
                                        rdbgender.SelectedValue = det.gender;
                                    }
                                    RadDatePicker rdp_start_date = e.Item.FindControl("rdp_start_date") as RadDatePicker;
                                    if (rdp_start_date != null)
                                    {

                                        rdp_start_date.SelectedDate = det.date_of_birth;

                                    }
                                    RadDatePicker rdp_end_date = e.Item.FindControl("rdp_end_date") as RadDatePicker;
                                    if (rdp_end_date != null)
                                    {
                                        rdp_end_date.SelectedDate = det.Admission_date;
                                    }
                                    CheckBox check = e.Item.FindControl("ficalyearcheck") as CheckBox;
                                    {
                                        if (check != null)
                                        {
                                            check.Checked = det.Active;
                                        }

                                    }
                               
                            }
                        }
                    }
                }

                else if (e.Item.OwnerTableView.DetailTableIndex == 1)
                {
                    
                        int? eventId = GetEventId(e.Item);
                        RadComboBox Existingperson = e.Item.FindControl("Existingperson") as RadComboBox;
                        if (Existingperson != null)
                        {
                            Existingperson.DataSource = studentinformation.org_view_person_lookup();
                            Existingperson.DataBind();
                        }
                        RadComboBox Relationship = e.Item.FindControl("Relationship") as RadComboBox;
                        if (Relationship != null)
                        {

                            Relationship.DataSource = studentinformation.org_view_relationship_lookup();
                            Relationship.DataBind();
                        }
                        RadComboBox Designation = e.Item.FindControl("Designation") as RadComboBox;
                        if (Designation != null)
                        {
                            Designation.DataSource = studentinformation.org_view_designation_lookup();
                            Designation.DataBind();
                        }


                        if (e.Item.OwnerTableView.IsItemInserted)
                        {
                            //item is about to be inserted
                        }
                        else
                        {
                            if (eventId.HasValue)
                            {
                                GridEditableItem editedItem = e.Item as GridEditableItem;
                                int? parent_person_id = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["parent_person_id"].ToString().GetInteger();
                                var det = studentinformation.sch_view_student_parent_relationship_detail(eventId.Value, parent_person_id);



                                if (det != null)
                                {
                                    if (det.parent_person_id != null)
                                    {
                                        Existingperson.SelectedIndex = Existingperson.Items.IndexOf(Existingperson.Items.FindItemByValue(det.parent_person_id.ToString()));
                                    }
                                    if (det.relationship != null)
                                    {
                                        Relationship.SelectedIndex = Relationship.Items.IndexOf(Relationship.Items.FindItemByText(det.relationship.ToString()));
                                    }
                                    if (det.designation != null)
                                    {
                                        Designation.SelectedIndex = Designation.Items.IndexOf(Designation.Items.FindItemByText(det.designation.ToString()));
                                    }

                                    TextBox txtfristname = e.Item.FindControl("txtfristname") as TextBox;
                                    if (txtfristname != null)
                                    {
                                        txtfristname.Text = det.parent_first_name;
                                    }
                                    TextBox txtMiddlename = e.Item.FindControl("txtMiddlename") as TextBox;
                                    if (txtMiddlename != null)
                                    {
                                        txtMiddlename.Text = det.parent_middle_name;
                                    }
                                    TextBox txtLastname = e.Item.FindControl("txtLastname") as TextBox;
                                    if (txtLastname != null)
                                    {
                                        txtLastname.Text = det.parent_last_name;
                                    }
                                    RadDatePicker rdp_end_date = e.Item.FindControl("rdp_end_date") as RadDatePicker;
                                    if (rdp_end_date != null)
                                    {
                                        rdp_end_date.SelectedDate = det.parent_date_of_birth;
                                    }
                                    RadioButtonList parentrdgender = e.Item.FindControl("parentrdgender") as RadioButtonList;
                                    if (parentrdgender != null)
                                    {
                                        parentrdgender.SelectedValue = det.parent_gender;
                                    }
                                }
                            }
                        }
                   
                }
            }
how to solve that problem it's argent am struck ed my project for this problem How to solve it,s argent

shanker.B

shanker bangari
Top achievements
Rank 1
 answered on 25 Mar 2010
13 answers
539 views
I have spent the last couple of weeks trying to evaluate the RadControls and OpenAccess and the whole process has been driving me nuts. If the website, the forums and the products themselves didn't look so good I would have given up ages ago.

I'm running XP SP2 and VS2008SP1 and the latest stable 2009 build

As per a previous post, the problems of which I circumvented with a workaround - I am repeatedly seeing a design-time issue.

I have just:

cleared out the cache and reinstalled the telerik controls.
created a new web project
created a sqldatasource and configured and tested it
dragged on a radgrid and assigned the sqldatasource to it

As soon as do this, at design-time (and runtime) I get:

Error creating control:

Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'telerik.web.ui.gridboundcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. + loads more of the same

I have tried with teh Telerik.Web.UI from the GAC and from the installation folder.

I feel like I've been round in circles on all this and lost track of what's what :(

I have been unable to find any definitive guide to what a working simple project's footprint should look like to a) fix this and b) avoid it happening again

Help! Please :)

Mark

as an update:

the following shows "Cannot resolve symbol telerik" for all entities in the <Columns> collection

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"  
        GridLines="None"> 
<MasterTableView AutoGenerateColumns="False" DataKeyNames="ID"  
            DataSourceID="SqlDataSource1"> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik.web.ui.gridboundcolumn datafield="ID" datatype="System.Int32"  
            headertext="ID" readonly="True" sortexpression="ID" uniquename="ID"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="Code" headertext="Code"  
            sortexpression="Code" uniquename="Code"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="FirstName" headertext="FirstName"  
            sortexpression="FirstName" uniquename="FirstName"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="LastName" headertext="LastName"  
            sortexpression="LastName" uniquename="LastName"></telerik.web.ui.gridboundcolumn> 
        <telerik.web.ui.gridboundcolumn datafield="EmailAddress"  
            headertext="EmailAddress" sortexpression="EmailAddress"  
            uniquename="EmailAddress"></telerik.web.ui.gridboundcolumn> 
    </Columns> 
</MasterTableView> 
    </telerik:RadGrid> 
 






Matthew Hardesty
Top achievements
Rank 1
 answered on 24 Mar 2010
2 answers
140 views
How do you get the enter key to submit from a radcombobox, like in the below sample, typing in the box and hitting enter doesnt submit the page...

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx

Ryan Grossman
Top achievements
Rank 1
 answered on 24 Mar 2010
2 answers
233 views
Hello.  I'm using the jQuery BlockUI plugin.  It was working with Q3 2009.  Last week I upgraded to Q1 2010 and I noticed BlockUI is no longer working in Firefox.  It's also not working with hotfix 2010.1.316.35.

By "not working", I mean that when trying to show the BlockUI window, it doesn't appear.  I tried to debug the plugin with Firebug, and the code runs all the way thru, so I can't pinpoint the problem.  Normally, however, BlockUI will append 3 DIVs to the <body> tag.  When it's not working, only 1 DIV gets appended, and that DIV is not appearing.

When I revert back to Q3 2009, it works again.  It works in IE8 with Q1 2010.  It's just Firefox that isn't working.  I've tried other Firefox browsers as well with the same result.  So I know my particular Firefox installation isn't the problem.

Even just trying to display a simple message like the following doesn't work:

$telerik.$.blockUI({ message: 'test' })

Any help or information is appreciated.  Thanks.
Ben Amada
Top achievements
Rank 1
 answered on 24 Mar 2010
4 answers
290 views
Hi,

I've got a problem whereby when I have a combobox that has a parent the required field validator ends up on a new line on the second combobox.

I've really cut down the code to the bare minimum to function and have the code shown at the bottom of this post.  If it is executed then you'll see on the second combo box there is an extra line below it.  Remove the combo boxes from the AJAX manager and this issue disappears (but obviously the functionality is lost).

Having stripped down the code the only difference between the two is that the second combobox gets wrapped in a div called uxCompanyContactControl_uxContactIDPanel - it's this div that seems to throw the required field validator onto a new line.  I'm guessing that this is the content that will be replaced when the Company changes.

How do I fix this?

Also I really like the way that the radnumerictextbox shows bad data with the ! icon inside the field.  I've made my code so that the error icon goes over the top of the combo box.  Is there any intention of having a built in validator for the combo box?  Finally have you a link to the icon that is used for the numerictextbox as that one is nicer than the one I use.

Code follows below.

Best Regards,

Jon

<telerik:RadScriptManager ID="uxRadScriptManager" runat="server"></telerik:RadScriptManager> 
<telerik:RadStyleSheetManager ID="uxRadStyleSheetManager" Runat="server"></telerik:RadStyleSheetManager> 
 
<telerik:RadAjaxManager ID="uxRadAjaxManager" runat="server">  
    <ajaxsettings> 
        <telerik:AjaxSetting AjaxControlID="uxCompanyID"  > 
            <updatedcontrols> 
                <telerik:AjaxUpdatedControl ControlID="uxContactID" /> 
            </updatedcontrols> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="uxSaveButton">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="uxSaveButton" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </ajaxsettings> 
</telerik:RadAjaxManager> 
                                  
<table cellpadding="0" cellspacing="0" > 
    <tr> 
        <td>Company:</td> 
        <td> 
<telerik:RadComboBox ID="uxCompanyID" Runat="server" EmptyMessage=" - Select an Company - " AllowCustomText="true" DataTextField="Name" DataValueField="CompanyID" CssClass="halfWidthComboBox" MarkFirstMatch="True" DropDownWidth="300" CausesValidation="false" AutoPostBack="True" SelectedIndexChanged="uxCompanyID_SelectedIndexChanged"></telerik:RadComboBox> 
<asp:RequiredFieldValidator ID="uxCompanyIDReq" runat="server"  ControlToValidate="uxCompanyID" ErrorMessage="RequiredFieldValidator" Text="<img src='/blank.gif' alt='Required field' class='errIconCombo' />" Width="0"></asp:RequiredFieldValidator> 
        </td> 
        <td>Contact:</td> 
        <td> 
<telerik:RadComboBox ID="uxContactID" Runat="server" EmptyMessage=" - Select a Company - " AllowCustomText="true" DataTextField="Name" DataValueField="ContactID" CssClass="halfWidthComboBox" MarkFirstMatch="True" DropDownWidth="300"></telerik:RadComboBox> 
<asp:RequiredFieldValidator ID="uxContactIDReq" runat="server"  ControlToValidate="uxContactID" ErrorMessage="RequiredFieldValidator" Text="<img src='/blank.gif' alt='Required field' class='errIconCombo' />" Width="0"></asp:RequiredFieldValidator> 
        </td> 
    </tr> 
</table> 
 
<asp:Button ID="uxSaveButton" runat="server" Text="Save" /> 


Jon
Top achievements
Rank 1
 answered on 24 Mar 2010
1 answer
116 views
I want to export Radgrid to excel in a particular location,instead of opening it an a new window.

Please Suggest.

Regards,
Ashwin
Daniel
Telerik team
 answered on 24 Mar 2010
1 answer
132 views
How can I show the Edit Column only if the RadGrid is Editable?

I'm using DotNetNuke and only a few users have permission to edit the grid.

<telerik:GridEditCommandColumn ButtonType="ImageButton"
                        UniqueName="EditCommandColumn" Visible="false"/>
Foenix
Top achievements
Rank 1
 answered on 24 Mar 2010
4 answers
162 views
Hi,

I am trying to get client-side caching so that my grid doesn't have to contact the server when paging number is clicked..
On the example, what is the Location property? Do I have to have a webservice to be able to use client-side caching?
<ClientSettings> 
    <DataBinding Location="~/Grid/Examples/Client/DeclarativeDataBinding/WebService.asmx" 
        SelectMethod="GetDataAndCount" EnableCaching="true" /> 
</ClientSettings> 
 

Thanks..
Fred
Top achievements
Rank 1
 answered on 24 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?