Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
Is there any known compatibility issues with v2008 02 and IE8? My combo box is entire width and the dropdown is detached from the text box.

Thnaks
Thomas
Kamen Bundev
Telerik team
 answered on 29 Jan 2010
1 answer
95 views
I have an application that uses v[2008 02]. Does this version's Rad ComboBox have capacity to utilize custom skins?

Thanks
Thomas
Kamen Bundev
Telerik team
 answered on 29 Jan 2010
2 answers
156 views
Hello!

I have a radgrid and when I bind a dataset with 3 columns to it, when I submit the page and check the column count of the grid, it always come back as 1.

In the Grid_needdatasource I have the following code:

   DataSet accounts = ExternalAccounts.getAllExternalAccounts(ExternalAccount.ConnectionString, query);
   autoGeneratedGrid.DataSource = accounts;

and then when I submit the page I want to count the number of columns in the grid by doing this:
grid.Columns.Count

It always comes back as 1 even though I can see 3 columns! I am auto generating the columns.
What's going on?

Bex


Bex
Top achievements
Rank 1
 answered on 29 Jan 2010
1 answer
120 views
I have a writes data back to the server every 30 seconds using an XmlHttpPanel.  I want to have this call be made right when the page unloads.  I am trapping for the onbeforeunload.  That is not the problem.  I am trying to have the page delay while this call is being made.  Any suggestions?
Pero
Telerik team
 answered on 29 Jan 2010
1 answer
371 views
Hello,
           I have used radgrid on my page.
           I have four GridBoundColumn which are bound with database column field.

           e.g>.
                   <telerik:GridBoundColumn DataField="Col1" HeaderText="Col1" ReadOnly="True" SortExpression="Col1"
                                            UniqueName="Col1">
                   </telerik:GridBoundColumn>
           Now, i want to retrive this GridBoundColumn values i.e Col1 Value  in Grid's ItemCommand Event
           i.e.,
                    protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
                    {
                             // Col1 Value
                    }
          

    Please reply me as soon as possible

Thanks & Regards,
Kunal Patel    


                           
Tsvetoslav
Telerik team
 answered on 29 Jan 2010
1 answer
56 views
All,
Using the example online, I am able to get the DragDrop feature of the Grid working just fine in it's own page. However, when I put it inside of a control instead of a page and bind the control to the TabStrip/MultiPage using Ajax (so that only one control is ever loaded at a time) I receive a javascript error from within the Telerik .js files that it cannot find the grid. I have tried everything I can think of to figure this out, including walking through the javascript at run-time) but I can't seem to produce any errors from the javascript on the control itself.

Has anyone else been able to get drag/drop grids working in an Ajaxified MultiPage? If so, can you please post how. I'm hoping that I'm just missing something small and mundane...

Thanks,
Tom
Pavlina
Telerik team
 answered on 29 Jan 2010
1 answer
201 views
Hi. I m trying to create page with new rad grid control i drag the grid from tool box page and attached the table code behind.
I run the page it works fine. But in design mode it gives this erros. I attached the image file with this.

Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1208.20, Culture-neutral, PublicKeyToken=121fae78165ba3d4'..

Please guide me in this to run smooth.

Thanks
Kaushik
Pavlina
Telerik team
 answered on 29 Jan 2010
1 answer
76 views
hi

i'm having a trouble on adding a returning value from dialog on my grid usercontrol edit form

can u help me create 1?

because when i tried to integrate the retuning value thing i got an error saying that my functions arent defined.

thanks in advance
Tsvetoslav
Telerik team
 answered on 29 Jan 2010
2 answers
82 views
I am trying to get my treeview to databind using the settings below. I keep getting the error listed below.
"A critical error has occurred.
This constraint cannot be enabled as not all values have corresponding parent values."


If I remove DataFieldParentID the treeview does bind and shows a list. I tried using 0 and NULL for my parents. Any suggestions?

List I get if I remove the parentID:
Management
General
Detail Orders
Test


RadTreeView1.DataSource = tree.Treeview

RadTreeView1.DataFieldID =

"rID"

 

RadTreeView1.DataFieldParentID =

"ParentID"

 

RadTreeView1.DataTextField =

"Text"

 

RadTreeView1.DataValueField =

"url"

 

RadTreeView1.DataBind()



rID  ParentID    Text                  url
1    0               Management     NULL
2    0               General             NULL
3    2               Detail Orders    ~/Test.aspx  
4    1               Test                  ~/Test.aspx  
Dwayne Starkey
Top achievements
Rank 1
 answered on 29 Jan 2010
3 answers
83 views
I set a AllowFilteringByColumn property to be "true" on Client-side but when I put character on filter box and choose any filtering function, it doesn't work.

Here is my Client-Side code.

<%@ Page Language="C#" MasterPageFile="Site2.Master" AutoEventWireup="true" CodeBehind="Roles.aspx.cs" 
    Inherits="TechSphere.KoolKeeper.Administrator.RolesForm" %>  
 
<%@ MasterType VirtualPath="Site2.Master" %>  
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">  
 
    <script type="text/javascript">  
        function showMember(roleName) {  
            showDialog('Dialog/RoleMember.aspx?role=' + roleName);  
            return false;  
        }  
        function showPermission(roleName) {  
            showDialog('Dialog/RolePermission.aspx?role=' + roleName);  
            return false;  
        }  
    </script>  
 
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="grdRole">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="grdRole" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>  
    </telerik:RadAjaxManagerProxy>  
    <telerik:RadGrid ID="grdRole" runat="server" AllowPaging="False" AutoGenerateColumns="False" 
        OnNeedDataSource="grdRole_NeedDataSource" PageSize="15" OnInsertCommand="grdRole_InsertCommand" 
        OnDeleteCommand="grdRole_DeleteCommand" OnItemDataBound="grdRole_ItemDataBound"   
        BorderStyle="None" GridLines="None" Width="300px" EnableEmbeddedSkins="false" AllowFilteringByColumn="true">  
        <PagerStyle Mode="NextPrevAndNumeric" />  
        <MasterTableView CommandItemDisplay="Top"  InsertItemDisplay="Top" AllowAutomaticDeletes="True" 
            InsertItemPageIndexAction="ShowItemOnCurrentPage" >  
            <CommandItemSettings AddNewRecordText="Create Role" />  
            <RowIndicatorColumn Visible="False">  
                <HeaderStyle Width="20px"></HeaderStyle>  
            </RowIndicatorColumn>  
            <ExpandCollapseColumn Visible="False" Resizable="False">  
                <HeaderStyle Width="20px"></HeaderStyle>  
            </ExpandCollapseColumn>  
            <Columns>  
                <telerik:GridBoundColumn DataField="ColumnRole" HeaderText="Role Name" UniqueName="ColumnRole">  
                    <ItemStyle Width="300px" />  
                </telerik:GridBoundColumn>  
                <telerik:GridTemplateColumn UniqueName="ColumnPermission" Visible="false">  
                    <ItemTemplate>  
                        <techsphere:RolloverButton ID="ibPermission" runat="server" SkinID="ButtonPermission" 
                            UseSubmitBehavior="false" />  
                    </ItemTemplate>  
                </telerik:GridTemplateColumn>  
                <telerik:GridTemplateColumn UniqueName="ColumnMembers" HeaderText="Member">  
                    <ItemTemplate>  
                        <techsphere:RolloverButton ID="ibUser" runat="server" SkinID="ButtonUsers" ToolTip="Members" 
                            UseSubmitBehavior="false" />  
                    </ItemTemplate>  
                </telerik:GridTemplateColumn>  
                <telerik:GridTemplateColumn UniqueName="ColumnDelete" HeaderText="Delete">  
                    <ItemTemplate>  
                        <techsphere:RolloverButton ID="ibDelete" runat="server" CommandName="Delete" SkinID="ButtonDelete" 
                            UseSubmitBehavior="true" />  
                    </ItemTemplate>  
                </telerik:GridTemplateColumn>  
            </Columns>  
            <EditFormSettings EditFormType="Template">  
                <EditColumn ButtonType="ImageButton">  
                </EditColumn>  
                <FormTemplate>  
                    <telerik:RadTextBox ID="tbRole" runat="server" EmptyMessage="Enter role name" InvalidStyleDuration="100" 
                        Width="150px" MaxLength="255" Skin="Web20" >  
                        <EmptyMessageStyle Font-Italic="True" />  
                    </telerik:RadTextBox>  
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbRole" 
                        ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>  
                    <techsphere:RolloverButton ID="ibInsert" runat="server" SkinID="ButtonInsert" CommandName="PerformInsert" />  
                    <techsphere:RolloverButton ID="ibCancel" runat="server" SkinID="ButtonCancel" CausesValidation="False" 
                        CommandName="Cancel" />  
                </FormTemplate>  
            </EditFormSettings>  
            <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="Page: {4} &amp;nbsp;items {2}-{3} of {5}." 
                PageButtonCount="5" />  
        </MasterTableView>  
        <ClientSettings>  
            <Selecting AllowRowSelect="True" />  
        </ClientSettings>  
        <FilterMenu EnableTheming="True">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
        </FilterMenu>  
    </telerik:RadGrid>  
 
</asp:Content>  
 

Code behind,
using System;  
using System.Web.Security;  
using Telerik.Web.UI;  
 
namespace TechSphere.KoolKeeper.Administrator  
{  
    public partial class RolesForm : BasePage  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
                Master.SelectedMenu("Roles");  
            }  
        }  
 
        protected void grdRole_DeleteCommand(object source, GridCommandEventArgs e)  
        {  
            string roleName = (e.Item as GridDataItem)["ColumnRole"].Text;  
            Roles.DeleteRole(roleName);  
        }  
 
        protected void grdRole_InsertCommand(object source, GridCommandEventArgs e)  
        {  
            RadTextBox tbRole = e.Item.FindControl("tbRole") as RadTextBox;  
            Roles.CreateRole(tbRole.Text);  
        }  
 
        protected void grdRole_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            GridDataItem item = e.Item as GridDataItem;  
            if (item != null)  
            {  
                string roleName = item["ColumnRole"].Text;  
                string lowerName = roleName.ToLowerInvariant();  
                RolloverButton button = item["ColumnPermission"].FindControl("ibPermission") as RolloverButton;  
                if (lowerName.Equals("administrators"))  
                {  
                    button.Visible = false;  
                }  
                else 
                {  
                    button.OnClientClick = "return showPermission('" + roleName + "');";  
                }  
 
                button = item["ColumnMembers"].FindControl("ibUser") as RolloverButton;  
                if (lowerName.Equals("everyone"))  
                {  
                    button.Visible = false;  
                }  
                else 
                {  
                    button.OnClientClick = "return showMember('" + roleName + "');";  
                }  
 
                button = item["ColumnDelete"].FindControl("ibDelete") as RolloverButton;  
                if (lowerName.Equals("administrators") || lowerName.Equals("everyone"))  
                {  
                    button.Visible = false;  
                }  
                else 
                {  
                    button.OnClientClick = string.Format("if(!confirm('Are you sure to delete role name \\'{0}\\'?')) return false;", roleName);  
                }  
            }  
        }  
 
        protected void grdRole_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
            grdRole.DataSource = Roles.GetAllRoles();  
        }  
 
    }  
}  
 

Could anyone suggest me anything wrong? I tried filtering with my another page but it works!
Tsvetoslav
Telerik team
 answered on 29 Jan 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?