Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
44 views
Hello all,

I managed to get wort working but now I am having trouble with Filtering as well.  I have a grid that I am binding to an Entity from Entity Framework.  I've tried several different methods including the basic filtering and now I am trying to to do custom filtering.  No matter what I try I keep getting "no records" or blank lines.  Attached is my code.  I even tried filtering the entity to create a filtered version of that but even though when I step through the code and I know there are 2 records that match the grid loads saying "no records found".
I also attached a before and after image so you can see what I am seeing.  Any assistance would be greatly appreciated.

Thanks,

Rhonda
<telerik:RadGrid ID="ChecklistsGrid" runat="server" Skin="WF" EnableLinqExpressions="false" EnableEmbeddedSkins="false" AllowSorting="true" OnSortCommand="ChecklistsGrid_SortCommand" OnItemDataBound="ChecklistsGrid_ItemDataBound" OnItemCommand="ChecklistsGrid_ItemCommand" AllowFilteringByColumn="True">
            <MasterTableView Width="100%" CommandItemDisplay="Bottom" AutoGenerateColumns="false" EnableViewState="false">
                <Columns>
                    <telerik:GridBoundColumn DataField="Application.Name" HeaderText="Application (WAM Id)" UniqueName="Name" FilterListOptions="VaryByDataTypeAllowCustom" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="LOB" HeaderText="LOB" UniqueName="LOB"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="projectPackages" HeaderText="Project/Package" UniqueName="projectPackages" AllowSorting="false" AllowFiltering="false" FilterControlWidth="0"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Status" HeaderText="Checklist Status" UniqueName="Status" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="dateToYellow" HeaderText="Date to Yellow" UniqueName="dateToYellow" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="dateToRed" HeaderText="Date to Red" UniqueName="dateToRed" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FirstConfirmedInstallDate" HeaderText="Install Date" UniqueName="installDate" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Manager.Name" HeaderText="Application Manager" UniqueName="Manager"></telerik:GridBoundColumn>
                    <telerik:GridHyperLinkColumn HeaderText = "Open Checklists" DataTextField="Application.Name" ItemStyle-HorizontalAlign="Left" AllowFiltering="false" UniqueName="OpenChecklist" HeaderStyle-Font-Bold="false" HeaderStyle-Wrap="false" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="ChecklistPage.aspx?Id={0}" HeaderStyle-Width="150px"></telerik:GridHyperLinkColumn>
                </Columns>
            </MasterTableView>
            <HeaderStyle BackColor="#666666" Font-Names="verdana, arial" Font-Size="Small" Height="20px" />
        </telerik:RadGrid>


protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GetCheckListData();
  
                PopulateChecklistGrid();
  
            }
        }
  
public void GetCheckListData()
        {
            checklists = BusinessUtility.GetChecklists("0");
        }
  
public void PopulateChecklistGrid()
        {
            ChecklistsGrid.DataSource = checklists;
            ChecklistsGrid.DataBind();
        }
  
protected void ChecklistsGrid_ItemCommand(object source, GridCommandEventArgs e)
        {
            if (e.CommandName == RadGrid.FilterCommandName)
            {
                Pair filterPair = (Pair)e.CommandArgument;
                string filterPattern = ((TextBox)(e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0]).Text;
                e.Canceled = true;
                string newFilter = "([" + filterPair.Second + "] >='" + filterPattern + "')";
                if (ChecklistsGrid.MasterTableView.FilterExpression == "")
                {
                    ChecklistsGrid.MasterTableView.FilterExpression = newFilter;
                }
                else
                {
                    ChecklistsGrid.MasterTableView.FilterExpression = "((" + ChecklistsGrid.MasterTableView.FilterExpression + ") AND (" + newFilter + "))";
                }
                ChecklistsGrid.Rebind();
  
                //GetCheckListData();
                //List<Entities.Checklist> filteredChecklist = checklists.Where(x => x.Application.Name.ToUpper().StartsWith(filterPattern.ToUpper())).ToList();
                //ChecklistsGrid.DataSource = filteredChecklist;
                //ChecklistsGrid.DataBind();
            }
        }
  
protected void ChecklistsGrid_SortCommand(object source, GridSortCommandEventArgs e)
        {
            GridSortExpression sortExpression = new GridSortExpression();
            switch (e.OldSortOrder)
            {
                case GridSortOrder.None:
                    sortExpression.FieldName = e.SortExpression;
                    sortExpression.SortOrder = GridSortOrder.Descending;
  
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpression);
                    break;
                case GridSortOrder.Ascending:
                    sortExpression.FieldName = e.SortExpression;
                    sortExpression.SortOrder = DelegateGrid.MasterTableView.AllowNaturalSort ? GridSortOrder.None : GridSortOrder.Descending;
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpression);
                    break;
                case GridSortOrder.Descending:
                    sortExpression.FieldName = e.SortExpression;
                    sortExpression.SortOrder = GridSortOrder.Ascending;
  
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpression);
                    break;
            }
  
            e.Canceled = true;
            GetCheckListData();
            PopulateChecklistGrid();
  
        }
  
protected void ChecklistsGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            DateTime currentDate = DateTime.Now;
  
            if (e.Item is GridCommandItem)
            {
                GridCommandItem cmditm = (GridCommandItem)e.Item;
  
                cmditm.Visible = false;
                //hide add new button
                cmditm.FindControl("InitInsertButton").Visible = false;//hide the text
                cmditm.FindControl("AddNewRecordButton").Visible = false;//hide the image
  
                //hide Refresh button
                cmditm.FindControl("RefreshButton").Visible = false;//hide the text
                cmditm.FindControl("RebindGridButton").Visible = false;//hide the image
            }
if (Role == "AM")
            {
                ChecklistsGrid.MasterTableView.Columns.FindByUniqueName("LOB").Display = false;
                ChecklistsGrid.MasterTableView.Columns.FindByUniqueName("Manager").Display = false;
            }
  
            if (Role == "WRM")
            {
                ChecklistsGrid.MasterTableView.Columns.FindByUniqueName("LOB").Display = false;
            }
}
Rhonda
Top achievements
Rank 1
 answered on 12 Sep 2011
3 answers
221 views
When I click on the  'Refresh' nothing happens.
When I click on the 'Add New Record' I'm getting this error:
Line: 15
Error: Sys.WebForms.PageRequestManagerServerErrorException: 'ddl_menu' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value


I'm using ASP.NET Ajax Q3 2009 NET35,  v.2009, 3, 1208, 35
What am I missing?
Here is the code:

<%@ Page Title="" Language="C#" MasterPageFile="~/admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="pdf_docs.aspx.cs" Inherits="admin_pdf_docs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <tr>
        <td width="100%">
            <center><b><asp:Label ID="lbl_page_title" runat="server" CssClass="lbl_title"></asp:Label></b></center>
        </td>
    </tr>
    <tr>
        <td width="100%" style="border-style: solid none none none; border-top-width: 1px; border-top-color: #000000">
              
        </td>
    </tr>
    <tr>
        <td width="100%">
            <asp:Label ID="lbl_content" runat="server" />
        </td>
    </tr>
    <tr>
        <td width="100%">
            <hr color="#999999" size="1">
        </td>
    </tr>
    <tr>
        <td width="100%" align="left">
        <p id="divMsgs" runat="server">
            <asp:Label ID="Label1" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#FF8080"></asp:Label>
            <asp:Label ID="Label2" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#00C000"></asp:Label>
        </p>
            <telerik:RadGrid ID="RadGrid1" runat="server"
                AllowFilteringByColumn="True"
                AllowPaging="True"
                AllowSorting="True"
                AutoGenerateColumns="False"
                DataSourceID="SqlDataSource1"
                OnItemDeleted="RadGrid1_ItemDeleted"
                OnItemInserted="RadGrid1_ItemInserted"
                OnItemUpdated="RadGrid1_ItemUpdated"
                GridLines="None"
                AllowAutomaticDeletes="True"
                AllowAutomaticInserts="True"
                AllowAutomaticUpdates="True" Skin="Outlook">
                <ClientSettings AllowColumnsReorder="True">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <GroupingSettings CaseSensitive="false" />
            <MasterTableView autogeneratecolumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1" CommandItemDisplay="TopAndBottom" HorizontalAlign="NotSet" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" >
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="PushButton" UniqueName="EditCommandColumn">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="s_doc_title" DefaultInsertValue="" HeaderText="s_doc_title" UniqueName="s_doc_title" SortExpression="s_doc_title">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="s_doc_url" DefaultInsertValue="" HeaderText="s_doc_url" SortExpression="s_doc_url" UniqueName="s_doc_url">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="d_date_uploaded" DataType="System.DateTime" DefaultInsertValue="" HeaderText="d_date_uploaded" SortExpression="d_date_uploaded" UniqueName="d_date_uploaded">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="d_date_displayed" DataType="System.DateTime" DefaultInsertValue="" HeaderText="d_date_displayed" SortExpression="d_date_displayed" UniqueName="d_date_displayed">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="b_visible" DefaultInsertValue="" HeaderText="b_visible" UniqueName="b_visible" DataType="System.Boolean" SortExpression="b_visible">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this Document?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
                </Columns>
                    <EditFormSettings ColumnNumber="3" CaptionFormatString="Edit details for {0}" CaptionDataField="id" EditColumn-ButtonType="PushButton" EditFormType="Template">
                    <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                    <FormTableStyle CellPadding="2" CellSpacing="0" GridLines="Horizontal" CssClass="module" Height="110px" Width="100%"></FormTableStyle>
                    <FormMainTableStyle CellPadding="3" CellSpacing="0" Width="100%"></FormMainTableStyle>
                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="100%" />
                    <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module" Height="110px" Width="100%" />
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                    <FormStyle Width="100%" BackColor="#eef2ea"></FormStyle>
                    <EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit" ButtonType="PushButton" InsertText="Insert Record" >
                    </EditColumn>
                    <FormTableButtonRowStyle HorizontalAlign="Left" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                    <FormTemplate>
                        <table cellspacing="0" cellpadding="0" border="0">
                            <tr>
                                <td width="400">
                                    <table cellspacing="0" cellpadding="0" border="0">
                                        <tr>
                                            <td width="5">
                                            </td>
                                            <td width="375" valign="top">
                                                ID:
                                            </td>
                                            <td>
                                                <asp:Label ID="lbl_id" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="5">
                                            </td>
                                            <td width="375" valign="top">
                                                Page:
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddl_menu" runat="server"
                                                    DataTextField="MenuText"
                                                    DataValueField="MenuId"
                                                    DataSourceID="SqlDataSource3"
                                                    SelectedValue='<%# Bind("MenuId") %>'>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="5">
                                            </td>
                                            <td width="375" valign="top">
                                                Doc. Title:
                                            </td>
                                            <td>
                                                <asp:TextBox Width="240px" ID="txtbx_title" runat="server" Text='<%# Bind("s_doc_title") %>'></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="5">
                                            </td>
                                            <td width="375" valign="top">
                                                Date Uploaded:
                                            </td>
                                            <td>
                                                <asp:TextBox Width="240px" ID="TextBox3" runat="server" Text='<%# Bind("d_date_uploaded") %>'></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="5">
                                            </td>
                                            <td width="375" valign="top">
                                                Date Displayed:
                                            </td>
                                            <td>
                                                <asp:TextBox Width="240px" ID="TextBox4" runat="server" Text='<%# Bind("d_date_displayed") %>'></asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="400">
                                    <table>
                                        <tr>
                                            <td width="5">
                                            </td>
                                            <td width="90" valign="top">
                                                PDF File Name:
                                            </td>
                                            <td>
                                                <asp:TextBox Width="240px" ID="TextBox2" runat="server" Text='<%# Bind("s_doc_url") %>'></asp:TextBox>
                                                <asp:Button ID="btn_pdf_upload" runat="server" Text="Upload PDF File" onclick="btn_pdf_upload_Click" />
                                            </td>
                                        </tr>
                                    </table>   
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                    </asp:Button>
                                    <asp:Button ID="Button2" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel"></asp:Button>
                                </td>
                            </tr>
                        </table>
                        </FormTemplate>
                    </EditFormSettings>            
                    <PagerStyle Position="TopAndBottom" />
                </MasterTableView>
            </telerik:RadGrid>
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT [MenuId], [MenuText] FROM [tbl_menu] ORDER BY [MenuText]">
                </asp:SqlDataSource>
                     
            <br />
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="SELECT * FROM [tbl_pdf_docs] ORDER BY [MenuId]" DeleteCommand="DELETE FROM [tbl_pdf_docs] WHERE [id] = @id"
                InsertCommand="INSERT INTO [tbl_pdf_docs] ([MenuId], [s_doc_title], [s_link_title], [s_doc_url], [d_date_uploaded], [d_date_displayed], [b_visible]) VALUES (@MenuId, @s_doc_title, @s_link_title, @s_doc_url, @d_date_uploaded, @d_date_displayed, @b_visible)"
                 
                UpdateCommand="UPDATE [tbl_pdf_docs] SET [MenuId] = @MenuId, [s_doc_title] = @s_doc_title, [s_doc_url] = @s_doc_url, [d_date_uploaded] = @d_date_uploaded, [d_date_displayed] = @d_date_displayed, [b_visible] = @b_visible WHERE [id] = @id">
                <DeleteParameters>
                    <asp:Parameter Name="id" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="MenuId" Type="String" />
                    <asp:Parameter Name="s_doc_title" Type="String" />
                    <asp:Parameter Name="s_doc_url" Type="String" />
                    <asp:Parameter Name="d_date_uploaded" Type="DateTime" />
                    <asp:Parameter Name="d_date_displayed" Type="DateTime" />
                    <asp:Parameter Name="b_visible" Type="Boolean" />
                </InsertParameters>
                <UpdateParameters>
                    <asp:Parameter Name="MenuId" Type="String" />
                    <asp:Parameter Name="s_doc_title" Type="String" />
                    <asp:Parameter Name="s_doc_url" Type="String" />
                    <asp:Parameter Name="d_date_uploaded" Type="DateTime" />
                    <asp:Parameter Name="d_date_displayed" Type="DateTime" />
                    <asp:Parameter Name="b_visible" Type="Boolean" />
                    <asp:Parameter Name="id" Type="Int32" />
                </UpdateParameters>
            </asp:SqlDataSource>
             
        </td>
    </tr>
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="SqlDataSource1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="SqlDataSource1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
</asp:Content>

using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class admin_pdf_docs : System.Web.UI.Page
{
    protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
    {
        if (e.Exception != null)
        {
            e.KeepInEditMode = true;
            e.ExceptionHandled = true;
            DisplayMessage(true, "Title " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["s_doc_title"] + " cannot be updated. Reason: " + e.Exception.Message);
        }
        else
        {
            DisplayMessage(false, "Title " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["s_doc_title"] + " updated");
        }
    }
 
    protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
    {
        if (e.Exception != null)
        {
            e.ExceptionHandled = true;
            e.KeepInInsertMode = true;
            DisplayMessage(true, "Title cannot be inserted. Reason: " + e.Exception.Message);
        }
        else
        {
            DisplayMessage(false, "Title inserted");
        }
    }
 
    protected void RadGrid1_ItemDeleted(object source, GridDeletedEventArgs e)
    {
        if (e.Exception != null)
        {
            e.ExceptionHandled = true;
            DisplayMessage(true, "Title " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["s_doc_title"] + " cannot be deleted. Reason: " + e.Exception.Message);
        }
        else
        {
            DisplayMessage(false, "Title " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["s_doc_title"] + " deleted");
        }
    }
 
    private void DisplayMessage(bool isError, string text)
    {
        Label label = (isError) ? this.Label1 : this.Label2;
        label.Text = text;
    }
 
    private static DataTable tblData = new DataTable();
 
    protected void Page_Load(object sender, System.EventArgs e)
    {
         
 
    }
 
    
     
    protected void btn_pdf_upload_Click(object sender, EventArgs e)
    {
         
        Response.Redirect("pdf_file_upload.aspx");
    }
 
 
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
            GridEditFormItem editform = (GridEditFormItem)e.Item;
 
            DropDownList ddl_menu_items = (DropDownList)editform.FindControl("ddl_menu");
 
            ddl_menu_items.DataValueField = "MenuId";
            ddl_menu_items.DataTextField = "MenuText";
            ddl_menu_items.SelectedValue = "MenuId";
            ddl_menu_items.DataBind();
 
             
        }
    }
}
Elliott
Top achievements
Rank 2
 answered on 12 Sep 2011
2 answers
66 views
This is occurring on a horizontaly and verically scrolled grid.  I have the height set on the outer grid, not the master table.

This does not occur in the VS2010 development server, but it does show up as soon as I publish it and open the page in IE8.

It doesn't show up if I leave the PageSize at 5, if I change it to 10 or 20 it does.

I suspect this is related to why I had to remove the change PageSize control from the grid, when the size was increased it would do the same thing.

Screenshot
Marbry
Top achievements
Rank 1
 answered on 12 Sep 2011
1 answer
61 views
I am using the telerik version  2011.1.413.40 .Iam trying to set the text of radcombobox through c# function.But this code is not supported on this version.On low version

Version=2009.3.1208.35

 it is working.


My code is

 if (control is RadNumericTextBox)
                    ((RadInputControl)control).set_Text(string.Empty);

what is the keyword to set and get text of radcombobox in this version of telerik.also what is the keyword for .set_SelectedDate for raddatepicker
Ivana
Telerik team
 answered on 12 Sep 2011
4 answers
180 views
I am working on a RadPanelBar since upgrading to the newest version of Telerik. I have managed to fix all the other things that changed from the previous version, except for the position of the .rpLink text (the title of the link subsection) but it is currently at the top. What do I change in the css file to put this in the right position?
Erik
Top achievements
Rank 2
 answered on 12 Sep 2011
4 answers
384 views
Hi,

Does anyone know how to display a field containing text in RTF format as plain text in a radgrid column?
I'm currently using a GridTemplateColumn with a label in its ItemTemplate to display the text.
I've tried a simple GridBoundColumn, but without success.

Thanks for any suggestions.

Jim
Jayesh Goyani
Top achievements
Rank 2
 answered on 12 Sep 2011
4 answers
73 views
Hi There !

This component is impressive, however I would like mine to look just like you have it:

http://demos.telerik.com/aspnet-ajax/rotator/examples/livexml/defaultcs.aspx

...I installed it as per the instruction on the page/link above, and it's running, but the data is scrolling with no pretty container around it (or the cool date/time color-stamps). I then applied the skins to it through the compnent properties pane, and ran the page in my .Net application again, but the blog data is still scrolling without any frame around it.

Any suggestions ? - at the endof the day, if I could get it to look like yours, it would be a happy day :-)

Cheers,

Bazz
Barry
Top achievements
Rank 1
 answered on 12 Sep 2011
2 answers
71 views
I am replacing the grid in an existing page with a RADGrid
the page has a lot of functionality in a Javascript function on a select
if there is only one row I need to select it
how do I invoke the client select function from the server?
I tried this (below) - the function is hooked up but it doesn't "find" any of the objects

http://www.telerik.com/community/forums/aspnet-ajax/grid/fire-client-side-select-event-on-server-side.aspx
Elliott
Top achievements
Rank 2
 answered on 12 Sep 2011
2 answers
188 views
Hi All,

I have a Radlistbox. It has numbers in it so I have
123- TestData1
411- DataTable
789-TestData
456-EqumentData

when I type 4, I go to 411, but when I type 456, I stay at 411. Is it possible to go to 456, if I type 456. I have  a huge listbox and users will not like if I stay at 411 instead of going to 456.

Any help will be appreciated.
Anjali
Top achievements
Rank 1
 answered on 12 Sep 2011
2 answers
97 views

 

Hi

In my grid view when I click on add new template I will see the following controls

Xyz  (TextBox)
Abc (TextBox)
Def (TextBox)

CopyFrom (DropDown)


But When I edit  the record, I want to display only

XYz
ABC
DEF

In the grid also I am not displaying 
CopyFrom as A column.

I tried in 2 ways but each one has their own issue which I am not able to figure it out.

First Way:

<telerik:GridTemplateColumn UniqueName="CopyTemplateColumn" Visible="false" HeaderText="CopyFrom">

<EditItemTemplate>
<
telerik:RadComboBox DataSourceID="TemplateDataSourceForCopy" DataTextField="TemplateName"

DataValueField="Id" ID="ddlTargetTemplate" Width="100" Visible="true" runat="server">

</telerik:RadComboBox>

</EditItemTemplate>

</telerik:GridTemplateColumn>

When I am doing
Visible="false" HeaderText="CopyFrom"

Prob:  In the edit window also I am seeing “CopyFrom” Text since it is header text.  But not seeing dropdown since I am taking care of this from code behind.

Could someone please suggest me how to hide this header text from edit window.

Second Way:

<telerik:GridTemplateColumn UniqueName="CopyTemplateColumn" Visible="false" HeaderText="CopyFrom">

<EditItemTemplate>

  <asp:Label ID="lblCopy" runat="server" Text="Copy From" ></asp:Label>

   <telerik:RadComboBox DataSourceID="TemplateDataSourceForCopy" DataTextField="TemplateName"

    DataValueField="Id" ID="ddlTargetTemplate" Width="100" Visible="true" runat="server">

    </telerik:RadComboBox>

 </EditItemTemplate>
</telerik:GridTemplateColumn>

Prob:

When I am using Label without header text.

Controls are not aligning properly. Since HeaderColumn is null.

XYZ

ABC

DEF

    CopyFrom

Could some one please suggest me to solve this issue.
I really apreciate it. Since I spent lot of time ont his but didn't get resolved.

Thanks in Advance

Usha

prathyusha
Top achievements
Rank 1
 answered on 12 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?