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

Hi,

We are trying to change the color of the filterItem when there is a filter in the grid(dynamicaly created).  It all seems to work fine but when one of the grid columns is filtered with the "Is Empty" function the color does not apply.  The code works fine and if a column is using a filterTemplate this column has the color applied correctly but the color is ignored by the other columns.

Here is the code that we use to make the filterItem change color when filter is applied :

using System;
using System.Collections;
using System.IO;
using System.Web.UI;
using CommonTools;
using Telerik.Web.UI;
namespace CCO.Fortress.MainWebApplication.Library.Helpers
{
     private void OnPageLoadComplete(object sender, EventArgs e)
        {
            FortressGrid.MasterTableView.AllowMultiColumnSorting = true;
            GridItem[] gridFilteringItems = FortressGrid.MasterTableView.GetItems(GridItemType.FilteringItem);
            if (gridFilteringItems.Length > 0)
            {      
                GridFilteringItem filteringItem = (GridFilteringItem)gridFilteringItems[0];
                foreach (GridColumn column in FortressGrid.MasterTableView.Columns)
                {
                    if (column.CurrentFilterValue != string.Empty)
                    {
                        Control control = filteringItem[column.UniqueName].Controls[0];
                        if(control is WebControl)
                        {
                            ((WebControl)control).BackColor = Color.PaleTurquoise;
                        }
                    }
                }
            }
        }
}

Thx for your help,
Guillaume

Pavel
Telerik team
 answered on 24 May 2011
3 answers
93 views
I need my scheduler to have a full 24 hour day as im using it for booking details (a band could be preforming at 1am)

eg  start time - 24:00
end time 23:59

so ive used these settings

DayStartTime="24:00:00" DayEndTime="23:59:00"   

when i run it, I get this error

Microsoft JScript runtime error: Unable to get value of the property 'cells': object is null or undefined
 on this line

l.cellWidth=l.targetRect.width/l.rows[0].cells.length;

so there seems to be a problem when creating the cells in the scheduler.  How can I set it up to use a 24 hour day ?


Stuart Hemming
Top achievements
Rank 2
 answered on 24 May 2011
1 answer
105 views
Hi all,

    I have a doubt in radWindow. I am having 3 pages.
    1. Master Page
    2.Content Page
    3. RadWindow.


My scenario is when the user clicks the link which is in master page. Then a radWindow will appear the navigateURL property points out an aspx page which uses the masterpage. So the radWindow loads both content page and master page but i need only the content page to display. Is there any solution?


Thanks in Advance.
Georgi Tunev
Telerik team
 answered on 24 May 2011
8 answers
888 views
Hi All

Have a radgrid with which works fine.

I have set the PageSize="6", AllowPaging ="true", then in PagerSytle have set AlwaysVisible="true". have set the grid height="250px".

But there are only 2 records in the grid. So the footer is displayed below the 2 records.

have attached an screen shot.

Is there any option to rectify this.

-Anto



Pavlina
Telerik team
 answered on 24 May 2011
1 answer
81 views
Hi,

Here I need to add some little text at cursor location into RadEditor's content on click of radbutton.

E.g.

If I have some text "My name is Kaushal Jani", also my cursor is between "Kaushal" and "Jani" and I clicked on RadButton than sample/some text "Hi" should place between that both words. Result will be "My name is Kaushal Hi Jani".

Is there any event or method by which I can locate some text to radeditor (specific to cursor location)?

Thanks & Regards,

Kaushal Jani
Rumen
Telerik team
 answered on 24 May 2011
1 answer
72 views
Hi ,

I am using RadDatePicker control inside the Gridview.
I have three operation on Gridview row:- Insert, Edit,Delete.
I am able to insert 10 records but when i insert 11th record i got the javascript runtime error. See Attachmenet Error.png
I am using two RadDatePicker. When i remove both the RadDatePicker control from Gridview my application ran successfully.
So RadDatePicker cause the error.
When i remove one of the two RadDatePicker control, I got same error on the insertion of 21st record instead of 11th record.
Please see the attachment for error.
Below is the designcode.

1st RadControl

<

 

asp:TemplateField meta:resourcekey="TemplateField3">

 

 

<EditItemTemplate>

 

 

 

<radCln:RadDatePicker ID="txtPriceValidFrom" runat="server" DbSelectedDate='<%# Bind("ValidFrom") %>' ControlContext="Product" RequiredPermission="EditProduct">

 

 

<Calendar ID="Calendar3" runat="server">

 

 

 

<SpecialDays>

 

 

 

<radCln:RadCalendarDay Repeatable="Today" Date="">

 

 

 

<ItemStyle CssClass="radCalendarTodayBackground" />

 

 

 

</radCln:RadCalendarDay>

 

 

 

</SpecialDays>

 

 

 

</Calendar>

 

 

 

<DateInput CssClass="TextBoxDays"></DateInput>

 

 

<PopupButton CssClass="radPopupImage" ImageUrl="~/images/icons/calendar.gif" HoverImageUrl="~/images/icons/calendar.gif"></PopupButton>

 

 

</radCln:RadDatePicker>

 

 

</EditItemTemplate>

 

 

<HeaderTemplate>

 

 

<asp:Label runat="server" Text="Valid from" ID="lblValidFromHeader" meta:resourceKey="Label31"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label runat="server" Text='<%# Bind("ValidFrom") %>' ID="lblValidFrom" meta:resourceKey="lblValidFrom"></asp:Label>

 

 

</ItemTemplate>

 

 

</asp:TemplateField>

 


2nd Radcontrol

<

 

asp:TemplateField meta:resourcekey="TemplateField4">

 

 

<EditItemTemplate>

 

 

<radCln:RadDatePicker ID="txtPriceValidTo" runat="server" DbSelectedDate='<%# Bind("ValidTo") %>'

 

 

ControlContext="Product" RequiredPermission="EditProduct">

 

 

<Calendar ID="Calendar4" runat="server">

 

 

<SpecialDays>

 

 

<radCln:RadCalendarDay Repeatable="Today" Date="">

 

 

<ItemStyle CssClass="radCalendarTodayBackground" />

 

 

</radCln:RadCalendarDay>

 

 

</SpecialDays>

 

 

</Calendar>

 

 

<DateInput CssClass="TextBoxDays">

 

 

</DateInput>

 

 

<PopupButton CssClass="radPopupImage" ImageUrl="~/images/icons/calendar.gif" HoverImageUrl="~/images/icons/calendar.gif">

 

 

</PopupButton>

 

 

</radCln:RadDatePicker>

 

 

</EditItemTemplate>

 

 

<HeaderTemplate>

 

 

<asp:Label runat="server" Text="Valid until" ID="lblValidUntil" meta:resourceKey="Label32"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label runat="server" Text='<%# Bind("ValidTo") %>' ID="lblValidTo" meta:resourceKey="lblValidTo"></asp:Label>

 

 

</ItemTemplate>

 

 

<ItemStyle VerticalAlign="Middle" />

 

 

</asp:TemplateField>

 

Tsvetoslav
Telerik team
 answered on 24 May 2011
1 answer
100 views
Hello ,
I'm using RadEditor as TextBox , and i want to disable drag and drop function to prevent add images .
any ideas ??
Thanks.
Rumen
Telerik team
 answered on 24 May 2011
2 answers
275 views
Hi, I'm using RadToolTip control, but I can't find a way to change the font size of the text

How can I do?

<telerik:RadToolTip ID="radToolTipLogin" runat="server" ContentScrolling="Auto" TargetControlID="btnMore"
HideEvent="ManualClose" Width="500px" Height="203px" RelativeTo="Element" Position="BottomCenter"
EnableShadow="true" ShowEvent="OnClick" RenderInPageRoot="true">
      <%# Eval("LOGIN") %>
</telerik:RadToolTip>

I try to put this block of code, but unsuccessfully...

    <style type="text/css">
        .ToolTipContent
        {
            font-size: 10px !important;
        }
    </style>
Marin Bratanov
Telerik team
 answered on 24 May 2011
4 answers
78 views
hi

i have a grid in which the autogenerate edit option is enabled and i want only to insert a new record and after inserting the new record i want to hide the edit option
abinav
Top achievements
Rank 1
 answered on 24 May 2011
2 answers
91 views
Hi,

I am using telerik rad chart. In which i need to give label on X axis to my chart.
But here i found limitation that i can have label of maximum 30 characters. If I am having label with more than 30 characters then it is truncating the label to 30 characters. So, is there any solution for this or is this by default limitation of telerik chart??
Or, is there any alternate way for this??....
Or, Can i have more than one 'DataLabelsColumn' for label of X axis???....

Please help, if there is any work around...

Regards......
Ketan
Top achievements
Rank 1
 answered on 24 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?