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

I have on pie using radchart(html5), i want to change the tooltip text but only shows the percent, i want to set the name of the element.

Hope your answers.
Greats.
Stamo Gochev
Telerik team
 answered on 22 May 2014
3 answers
79 views
Hello

Not works clicked (tap) rows grid in mobiles

<telerik:RadGrid ID="exRdGridA" runat="server" GridLines="None" Width="100%"
                AllowCustomPaging="True" VirtualItemCount="100000" CellSpacing="0" Skin="Web20" AutoGenerateColumns="False">
                <MasterTableView AutoGenerateColumns="false">
                    <Columns>
                         
                        <telerik:GridBoundColumn DataField="PCL_ID" HeaderText="PCL_ID" UniqueName="PCL_ID" />
                        <telerik:GridBoundColumn DataField="JOB_ID" HeaderText="JOB_ID" UniqueName="JOB_ID" />
                        <telerik:GridBoundColumn DataField="JOB_ID_Current" HeaderText="JOB_ID_Current" UniqueName="JOB_ID_Current" />
                        <telerik:GridBoundColumn DataField="PCL_Summ" HeaderText="PCL_Summ" UniqueName="PCL_Summ" />
                        <telerik:GridBoundColumn DataField="PCL_Balance" HeaderText="PCL_Balance" UniqueName="PCL_Balance" />
                        <telerik:GridBoundColumn DataField="PCL_Notes" HeaderText="PCL_Notes" UniqueName="PCL_Notes" />
                    </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                </ClientSettings>
            </telerik:RadGrid>
Venelin
Telerik team
 answered on 22 May 2014
5 answers
167 views
Hi All,

I'm using telerik Q3 for development. I put a RadTreeList in a NestedViewTemplate of a RadGrid, then bind the RadTreeList data in NeedDataSource event. It worked in IE8+, but for the IE7, the content can NOT show while the header show perfect. Can any one help on this?

Code as bellow:
<telerik:RadGrid ID="blockdetails_grid" runat="server" CssClass="teterik_chart_grid telerik-grid" Height="99.8%" Width="99.8%" ShowStatusBar="true" AutoGenerateColumns="False"
AllowMultiRowSelection="False" GridLines="None" AllowPaging="true" PageSize="10" OnItemDataBound="BlockDetails_Grid_ItemDataBound"
OnNeedDataSource="BlockDetails_Grid_NeedDataSource" OnItemCommand="BlockDetails_Grid_ItemCommand">
<ClientSettings EnableRowHoverStyle="true">
<Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
</ClientSettings>
<PagerStyle Mode="NumericPages"></PagerStyle>
<MasterTableView Width="100%" DataKeyNames="Name" AllowMultiColumnSorting="false">
<HeaderStyle BackColor="#E1E1E1" />
<NestedViewTemplate>
<telerik:RadTreeList runat="server" ID="blockdetails_treelist" CssClass="teterik_chart_grid telerik-treelist" Height="99.8%" Width="99.8%"
DataKeyNames="i_session_id" ParentDataKeyNames="i_blocked_by" OnNeedDataSource="BlockDetails_TreeList_NeedDataSource"
AutoGenerateColumns="false" ShowTreeLines="false">
<HeaderStyle BackColor="#E1E1E1" />
<Columns>
<telerik:TreeListTemplateColumn HeaderText="SessionID" DataField="i_session_id" UniqueName="i_session_id" HeaderStyle-Width="5%" ItemStyle-Width="5%">
<ItemTemplate>
<asp:LinkButton runat="server" ID="sessionid_linkbutton" Text='<%# DataBinder.Eval(Container.DataItem, "i_session_id") %>' OnClientClick="return clientSessionIDClick(this);"></asp:LinkButton>
</ItemTemplate>
</telerik:TreeListTemplateColumn>
<telerik:TreeListBoundColumn HeaderText="Level" DataField="i_level" UniqueName="i_level" HeaderStyle-Width="5%" ItemStyle-Width="5%"></telerik:TreeListBoundColumn>
 </Columns>
</telerik:RadTreeList>
</NestedViewTemplate>
<Columns>
<telerik:GridBoundColumn HeaderText="Server Name" DataField="Name" UniqueName="ServerName" HeaderButtonType="TextButton">
</telerik:GridBoundColumn>
 </Columns>
</MasterTableView>
</telerik:RadGrid>
Eyup
Telerik team
 answered on 22 May 2014
13 answers
287 views
Hello Telerik Team,

Need urgent help from you guys.

1) i am displaying all PDF files stored on Directory from specific path inside the radgrid using "GridHyperLinkColumn".

2) the display is perfect but when clicked on the link the path taken is not fully correct and Hence cannot open the Files.

Actual Path ="../help/PDFfiles/*.pdf"
Path Taken = "../help/*.pdf"
It cannot take PDFFiles folder and hence fiel cannot be display
Please help for the same. Below is the code as shown.

<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadGrid ID="gridFilesDisplay" runat="server" >
                       <MasterTableView EditMode="InPlace" ShowHeadersWhenNoRecords="true" AllowFilteringByColumn="false">
                <Columns>
   <telerik:GridHyperLinkColumn DataNavigateUrlFields="Name" DataTextField="Name" HeaderText="Document Name">    ></telerik:GridHyperLinkColumn>            
                 </Columns>
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
              </MasterTableView>
        </telerik:RadGrid>
    </form>
  
************************** CODEBEHIND******************************
  
protected void Page_Load(object sender, EventArgs e)
        {
  
            if (!IsPostBack)
            {
                      sPath = "..//help/PDFFILES//"    //(This value taken from webconfig)
                DirectoryInfo objDirectory = new DirectoryInfo(Server.MapPath(sPath));
                   
                 gridFilesDisplay.DataSource = objDirectory.GetFiles("*.pdf");
                gridFilesDisplay.DataBind();
            }
  
}

 

Kostadin
Telerik team
 answered on 22 May 2014
12 answers
819 views
Hi All!

I have a radgrid that uses a SQL database for its datasource.  The fields are of type "date" so there are no times in the database fields.  However, my radgrid adds 12:00:00 AM to all of its times.  I have attempted DateFormatString = "{0:MM/dd/yy}" or "{0,d}" but neither seem to work.  Any thoughts?

Thanks,
Mark
Eyup
Telerik team
 answered on 22 May 2014
1 answer
131 views
Hi,

I have an issue refreshing a radscheduler using Telerik ajax
My page contains a RadTabStrip, one of which is containing a RadScheduler.
When I update one of my page element using Telerik ajax, I would like my scheduler to be regreshed but despite my Appointments list is being refreshed server side, the scheduler is not refreshed clietn side whereas another ajaxified field is.
I have readed many threads on the forum but i still did not find a solution

Below are some extract of the code:

.aspx
<telerik:RadAjaxManager ID="PageRadAjaxManager" runat="server" OnAjaxRequest="PageRadAjaxManager_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="PageRadAjaxManager">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="TxtIltExtid" />
                        <telerik:AjaxUpdatedControl ControlID="InstructorId" />
                        <telerik:AjaxUpdatedControl ControlID="LblInstructorName" />
                        <telerik:AjaxUpdatedControl ControlID="IltRoomId" />
                        <telerik:AjaxUpdatedControl ControlID="LblIltRoomName" />
                        <telerik:AjaxUpdatedControl ControlID="InstructorRadGrid" />
                        <telerik:AjaxUpdatedControl ControlID="DiaryRadScheduler" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="InstructorRadGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="InstructorRadGrid" />
                    </UpdatedControls
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="DiaryRadScheduler">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="DiaryRadScheduler" />
                    </UpdatedControls
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

<telerik:RadPageView runat="server" ID="lsched_diary_pv" TabIndex="2">
                        <div class="LschedAdminContent">
                            <br />
                            <telerik:radscheduler runat="server" id="DiaryRadScheduler"
                                DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataDescriptionField="Description"
                                DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" DataReminderField="Reminder"
                                OnAppointmentDataBound="DiaryRadScheduler_AppointmentDataBound"
                                AllowDelete="false" AllowEdit="false" AllowInsert="false" EnableDescriptionField="true"
                                EnableRecurrenceSupport="false" EnableResourceEditing="false" EnableExactTimeRendering="false"
                                DayStartTime="08:00:00" DayEndTime="20:00:00" WorkDayStartTime="08:00:00" WorkDayEndTime="20:00:00"
                                WeekView-DayStartTime="08:00:00" WeekView-DayEndTime="20:00:00" WeekView-WorkDayStartTime="08:00:00" WeekView-WorkDayEndTime="20:00:00" WeekView-EnableExactTimeRendering="true"
                                MultiDayView-DayStartTime="08:00:00" MultiDayView-DayEndTime="20:00:00" MultiDayView-WorkDayStartTime="08:00:00" MultiDayView-WorkDayEndTime="20:00:00" MultiDayView-NumberOfDays="5" MultiDayView-EnableExactTimeRendering="true"
                                AppointmentStyleMode="Auto" SelectedView="WeekView"
                                StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true"
                                ShowHeader="true" ShowFooter="true" ShowAllDayRow="false" ShowDateHeaders="true" ShowFullTime="false" OverflowBehavior="Expand"
                                RowHeight="25px" RowHeaderWidth="50px" MinutesPerRow="60" TimeLabelRowSpan="2"
                                FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" HoursPanelTimeFormat="HH:mm tt"
                                OnResourceHeaderCreated="DiaryRadScheduler_ResourceHeaderCreated" GroupBy="Type">
                                <DayView HeaderDateFormat="d" UserSelectable="true" />
                                <WeekView HeaderDateFormat="d" UserSelectable="true" />
                                <MonthView HeaderDateFormat="d" UserSelectable="true" />
                                <AgendaView HeaderDateFormat="d" UserSelectable="false" />
                                <TimelineView UserSelectable="false" />
                                <MultiDayView UserSelectable="false" />
                                <AdvancedForm Modal="true" />
                                <ResourceHeaderTemplate>
                                    <asp:Panel ID="HeaderLabelWrapper" runat="server">
                                        <%# Eval("Text") %>
                                    </asp:Panel>
                                </ResourceHeaderTemplate>
                                <AppointmentTemplate>
                                    <%# Eval("Subject") %><br /><%# Eval("Description") %>
                                </AppointmentTemplate>
                            </telerik:radscheduler>
                        </div>
                    </telerik:RadPageView>

.aspx.cs

...
using Telerik.Web.UI;
...
 
namespace WBTManager.manageILT
{
    public partial class lsched : System.Web.UI.Page
    {
        #region Variables
        ...
        List<AppointmentInfo> Appointments = new List<AppointmentInfo>();
        #endregion Variables
 
        protected void Page_Init(object sender, EventArgs e)
        {
            ...
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            #region Session or ViewState
            ...
            if (ViewState["Appointments"] != null)
                Appointments = (List<AppointmentInfo>)ViewState["Appointments"];
            #endregion Session or ViewState
 
            if (!IsPostBack)
            {
                ...
 
                #region Fill values
                ...
                // Schedule Pageview
                if (oLsched != null && (oLsched.Iltroom_Id > 0 || oLsched.Instruc_Id > 0))
                {
                    // RadScheduler culture
                    DiaryRadScheduler.Culture = new System.Globalization.CultureInfo(sCulture);
                    // RadScheduler default date
                    DiaryRadScheduler.SelectedDate = DateTime.Now;
                    // RadScheduler fill
                    InitializeResources();
                    InitializeAppointments();
                    DiaryRadScheduler.DataSource = Appointments;
                    DiaryRadScheduler.DataBind();
                }
                ...
                #endregion Fill values
 
                ...
            }
 
            ...
        }
 
        protected void Page_PreRender(object sender, EventArgs e)
        {
            ...
            if (Appointments != null)
                ViewState["Appointments"] = Appointments;
        }
 
        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            ...
        }
 
        // Ajax request
        public void PageRadAjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            bool bRefreshLessonGrid = false;
            bool bRefreshDiary = false;
            string argument = (e.Argument);
            string[] argumentArray = argument.Split("|".ToCharArray(), StringSplitOptions.None);
            ...
            string sUpdateScript = "";
            if (bRefreshDiary && oLsched != null)
            {
                //DiaryRadScheduler.Resources.Clear();
                //DiaryRadScheduler.Appointments.Clear();
                // RadScheduler fill
                Appointments = new List<AppointmentInfo>();
                InitializeResources();
                InitializeAppointments();
                DiaryRadScheduler.DataSource = Appointments;
                DiaryRadScheduler.DataBind();
                //sUpdateScript += "setTimeout(\"forceCalendarRender()\", 500);";
            }
           ...
            if (!string.IsNullOrWhiteSpace(sUpdateScript))
                ScriptManager.RegisterStartupScript(Page, typeof(Page), "UpdateScript", sUpdateScript, true);
        }
 
        protected void DiaryRadScheduler_ResourceHeaderCreated(object sender, ResourceHeaderCreatedEventArgs e)
        {
            Panel HeaderLabelWrapper = e.Container.FindControl("HeaderLabelWrapper") as Panel;
            if (e.Container.Resource.Key.ToString() == "0")
                HeaderLabelWrapper.CssClass = "ResourceIlt";
            else if (e.Container.Resource.Key.ToString() == "1")
                HeaderLabelWrapper.CssClass = "ResourceInstructor";
        }
 
        protected void DiaryRadScheduler_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e)
        {
            if (e.Appointment.Resources.GetResourceByType("Type") != null)
            {
                switch ((int)e.Appointment.Resources.GetResourceByType("Type").Key)
                {
                    case 0:
                        e.Appointment.CssClass = "rsCategoryILT";
                        break;
                    case 1:
                        e.Appointment.CssClass = "rsCategoryInstructor";
                        break;
                    default:
                        break;
                }
            }
        }
 
        private void InitializeResources()
        {
            // 0 Room
            // 1 Instructor
            DiaryRadScheduler.ResourceTypes.Clear();
            ResourceType resType = new ResourceType("Type");
            resType.ForeignKeyField = "Type";
            DiaryRadScheduler.ResourceTypes.Add(resType);
            DiaryRadScheduler.Resources.Clear();
            //DiaryRadScheduler.Resources.Add(new Resource("Type", 0, oLoc.GetString("LblDiaryTypeRoom", oUser.Subdomain) + ((oLsched.Iltroom_Id > 0) ? " : " + LblIltRoomName.Text : "")));
            DiaryRadScheduler.Resources.Add(new Resource("Type", 0, oLoc.GetString("LblDiaryTypeRoom", oUser.Subdomain) + " : " + LblIltRoomName.Text));
            //DiaryRadScheduler.Resources.Add(new Resource("Type", 1, oLoc.GetString("LblDiaryTypeInstructor", oUser.Subdomain) + ((oLsched.Instruc_Id > 0) ? " : " + LblInstructorName.Text : "")));
            DiaryRadScheduler.Resources.Add(new Resource("Type", 1, oLoc.GetString("LblDiaryTypeInstructor", oUser.Subdomain) + " : " + LblInstructorName.Text));
        }
 
        private void InitializeAppointments()
        {
            DiaryRadScheduler.Appointments.Clear();
            // Display booking for the room
            if (oLsched.Iltroom_Id > 0)
            {
                DataSet dSchedule = Iltroom.GetIltroomScheduleDS(oLsched.Iltroom_Id, oUser.Lang_Id);
                foreach (DataRow mSchedule in dSchedule.Tables["Schedule"].Rows)
                {
                    #region Room
                    DateTime mTmpStartTime;
                    DateTime.TryParse(mSchedule["SCHSTART"].ToString(), out mTmpStartTime);
                    DateTime mTmpEndTime;
                    DateTime.TryParse(mSchedule["SCHEND"].ToString(), out mTmpEndTime);
                    string mTmpCourse = mSchedule["COURSE_NAME"].ToString();
                    string mTmpCsExtid = mSchedule["CS_EXTID"].ToString();
                    string mTmpLesson = mSchedule["LESSON_NAME"].ToString();
                    string mTmpLsExtid = mSchedule["LS_EXTID"].ToString();
                    string mTmpInstructor = mSchedule["INSTRUCTOR"].ToString();
 
                    if (mTmpStartTime != DateTime.MinValue && mTmpStartTime != new DateTime(1900, 1, 1) &&
                        mTmpEndTime != DateTime.MinValue && mTmpEndTime != new DateTime(1900, 1, 1) &&
                        !string.IsNullOrWhiteSpace(mTmpCourse) && !string.IsNullOrWhiteSpace(mTmpLesson) &&
                        !string.IsNullOrWhiteSpace(mTmpCsExtid) && !string.IsNullOrWhiteSpace(mTmpLsExtid))
                    {
                        string sSubject = oLoc.GetString("LblCourse", oUser.Subdomain) + " : " + mTmpCourse + Environment.NewLine + mTmpCsExtid;
                        string sDescription = oLoc.GetString("LblLesson", oUser.Subdomain) + " : " + mTmpLesson + Environment.NewLine + mTmpLsExtid;
                        if (!string.IsNullOrWhiteSpace(mTmpInstructor))
                            sDescription += "<br />" + oLoc.GetString("LblInstructor", oUser.Subdomain) + " : " + mTmpInstructor;
                        Appointments.Add(new AppointmentInfo(sSubject, sDescription, mTmpStartTime, mTmpEndTime, string.Empty, null, string.Empty, 0));
                    }
                    #endregion Room
                }
            }
            // Display booking for the instructor
            if (oLsched.Instruc_Id > 0)
            {
                DataSet dSchedule = Students.GetLschinstrucDS(oLsched.Instruc_Id,  oUser.Lang_Id, false, DateTime.Now);
                foreach (DataRow mLschinstruc in dSchedule.Tables["Lschinstruc"].Rows)
                {
                    #region Instructor
                    DateTime mTmpStartTime;
                    DateTime.TryParse(mLschinstruc["SCHSTART"].ToString(), out mTmpStartTime);
                    DateTime mTmpEndTime;
                    DateTime.TryParse(mLschinstruc["SCHEND"].ToString(), out mTmpEndTime);
                    string mTmpCourse = mLschinstruc["COURSE_NAME"].ToString();
                    string mTmpCsExtid = mLschinstruc["CS_EXTID"].ToString();
                    string mTmpLesson = mLschinstruc["LESSON_NAME"].ToString();
                    string mTmpLsExtid = mLschinstruc["LS_EXTID"].ToString();
                    string mTmpCenter = mLschinstruc["ILTLOC_NAME"].ToString();
                    string mTmpRoom = mLschinstruc["ILTROOM_NAME"].ToString();
 
                    if (mTmpStartTime != DateTime.MinValue && mTmpStartTime != new DateTime(1900, 1, 1) &&
                        mTmpEndTime != DateTime.MinValue && mTmpEndTime != new DateTime(1900, 1, 1) &&
                        !string.IsNullOrWhiteSpace(mTmpCourse) && !string.IsNullOrWhiteSpace(mTmpLesson) &&
                        !string.IsNullOrWhiteSpace(mTmpCsExtid) && !string.IsNullOrWhiteSpace(mTmpLsExtid))
                    {
                        string sSubject = oLoc.GetString("LblCourse", oUser.Subdomain) + " : " + mTmpCourse + Environment.NewLine + mTmpCsExtid;
                        string sDescription = oLoc.GetString("LblLesson", oUser.Subdomain) + " : " + mTmpLesson + Environment.NewLine + mTmpLsExtid;
                        if (!string.IsNullOrWhiteSpace(mTmpCenter))
                            sDescription += "<br />" + oLoc.GetString("LblIltLocation", oUser.Subdomain) + " : " + mTmpCenter;
                        if (!string.IsNullOrWhiteSpace(mTmpRoom))
                            sDescription += "<br />" + oLoc.GetString("LblIltRoom", oUser.Subdomain) + " : " + mTmpRoom;
                        Appointments.Add(new AppointmentInfo(sSubject, sDescription, mTmpStartTime, mTmpEndTime, string.Empty, null, string.Empty, 1));
                    }
                    #endregion Instructor
                }
            }
        }
 
        [Serializable]
        class AppointmentInfo
        {
            ...
        }
    }
}

When debugging step by step, I update appointments list but it never appears correctly on client side
Moreover, if my appointment list is empty at first load, depending on my browser, the radscheduler is sometimes shrinked with a javascript error in the axd file..

If any one has a good idea....it would be greatly appreciated

Regards.
Boyan Dimitrov
Telerik team
 answered on 22 May 2014
1 answer
575 views
Hi ,

  I have developed one telerik grid with filter options on every columns , here I have name column and date column and I need to show and hide the  filter menu options as per the column type for name column  need to hide between and Not Between options and  date  column need to show above two options  but my problem is when I hide the between option in name column it hided  and date column also this action is affected I need to show these two option in date column but not to show name column please help me to do filter menu show hide as per columns and I am using vb for server side code and aspx for design

below is my code for hide the filter menu option :

  Dim Menu As GridFilterMenu = grdAssessment.FilterMenu
        Dim menuItem As RadMenuItem
        For Each column As GridColumn In grdAssessment.MasterTableView.Columns

            If column.UniqueName = "Name" Then
                For Each menuItem In Menu.Items
                    If menuItem.Text = "StartsWith" Then
                        menuItem.Text = "Starts With"
                    ElseIf menuItem.Text = "GreaterThanOrEqualTo" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "DoesNotContain" Then
                        menuItem.Text = "DoesNot Contain"
                    ElseIf menuItem.Text = "GreaterThanOrEqualTo" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "GreaterThan" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "LessThan" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "LessThanOrEqualTo" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "EndsWith" Then
                        menuItem.Text = "Ends With"
                    ElseIf menuItem.Text = "NotEqualTo" Then
                        menuItem.Text = "Not Equal To"
                    ElseIf menuItem.Text = "Between" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "NotBetween" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "IsEmpty" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "NotIsEmpty" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "IsNull" Then
                        menuItem.Visible = False
                    ElseIf menuItem.Text = "NotIsNull" Then
                        menuItem.Visible = False
                    End If
                Next
            ElseIf column.UniqueName = "ProposedStartDate" Then
                For Each menuItem In Menu.Items
                    If menuItem.Text = "NotBetween" Then
                        menuItem.Visible = True
                        menuItem.Text = "Not Between"
                    ElseIf menuItem.Text = "NoFilter" Then
                        menuItem.Text = "No Filter"
                    ElseIf menuItem.Text = "Between" Then
                        menuItem.Visible = True
                    End If
                Next
            End If

        Next    





Antonio Stoilkov
Telerik team
 answered on 22 May 2014
1 answer
590 views
Hi,

I am trying to to bind the readonly property of a text box in Edit Item Template of rad grid as below, But it is not working. Please help me to achieve this.

<telerik:GridTemplateColumn DataField="invAmountToPay" SortExpression="invAmountToPay" UniqueName="invAmountToPay"
                                    Aggregate="Sum" DataType="System.Decimal" HeaderText="Amount To Pay"
                                    FooterAggregateFormatString="{0:N}" AllowFiltering="false">
                                    <EditItemTemplate>
                                        <asp:TextBox runat="server"
                                            ID="AmountToPayTextBox"
                                            Width="90px"
                                            Style="text-align: right"
                                            Text='<%# Eval("invAmountToPay","{0:N}") %>' 
                                            ReadOnly='<%# Eval("isReadOnly") %>'                                          
                                            DataFormatString="{0:N}">
                                        </asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="AmountToPayLabel" runat="server" Text='<%# Eval("invAmountToPay","{0:N}") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Width="100px" />
                                    <FooterStyle HorizontalAlign="Right" />
                                    <ItemStyle HorizontalAlign="Right" ForeColor="#0000ff" />
                                </telerik:GridTemplateColumn>





Princy
Top achievements
Rank 2
 answered on 22 May 2014
1 answer
172 views
I have a number of Ajaxified controls and panels using the RadAjaxManagerProxy. Everything works fine, except the following scenario: I have a panel (UpdatedControl) that shows or hides based on a radio button (AjaxControlID). I have another panel that shows or hides based on a dropdown list. The radio button controlled panel has a number of fields with validators attached. If the panel controlled from the radio button is shown, for every dropdownlist ajax call on the screen, all validation messages inside the radio button controlled panel will repeat. I've read that taking the validators outside the Ajaxified panel will fix the problem, but this is not feasible as the validation indicators need to appear next to the fields they are validating.
Shinu
Top achievements
Rank 2
 answered on 22 May 2014
3 answers
160 views
I have a ComboBox with a over 100 items in it. I expect that when the dropdown list appears, it would expand to show as many items as possible, given the browser's viewport, then show a scroll bar within the dropdownlist to allow selection of additional items. Instead the ComboBox's dropdown list expands up to the height of the entire page, meaning the user must scroll the entire page to see the list. Is there a way to configure the RadComboBox to function as desired?
Princy
Top achievements
Rank 2
 answered on 22 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?