Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Hi,

I'm using the following codes to remove the some of the filter selections.  For some reason, it set the filters for all of the datetime columns to 'no filter'

 

 

GridFilterMenu menu = GridWellVent.FilterMenu;  

int i = 0; 

while (i < menu.Items.Count)

{

if (menu.Items[i].Text == "NoFilter" || menu.Items[i].Text == "Contains")

{

i++;

}

else

{

menu.Items.RemoveAt(i);

}

}

thanks,
Minh Bui

Andrey
Telerik team
 answered on 15 Sep 2011
5 answers
1.2K+ views
Hi,

I am trying to show vertical scrollbars on a RadGrid and on initial pageload column headers squeeze to the left and leave large empty space on right.  However, the columns render properly after postback.  How can I  render the coloumns correctly even on initail page load. Given below is my mark up.


<telerik:RadGrid ID="TicketsGrid" runat="server" 
                           EnableEmbeddedSkins="false"   AllowPaging="True" PageSize="20"
                           AllowFilteringByColumn="True" AllowSorting="True"    ShowGroupPanel="True"
                           ClientSettings-ClientEvents-OnRowClick="gridClick"
                           EnableHeaderContextFilterMenu="True" EnableHeaderContextMenu="True" 
                           GridLines="None" oncolumncreated="rgTicketsGrid_ColumnCreated"
                           ondatabound="rgTicketsGrid_DataBound"
                           ongroupschanging="rgTicketsGrid_GroupsChanging"
                           onsortcommand="rgTicketsGrid_SortCommand"
                           onpageindexchanged="rgTicketsGrid_PageIndexChanged"
                           onpagesizechanged="rgTicketsGrid_PageSizeChanged"     >
                          <mastertableview allowfilteringbycolumn="False" GroupLoadMode="Server"   Height="95%"   TableLayout="Auto" >
                          </mastertableview>  
                         <SortingSettings  EnableSkinSortStyles="false" />
                          
                          <clientsettings allowdragtogroup="True" allowrowsdragdrop="True"  enablerowhoverstyle="True"  >
                                 <selecting allowrowselect="True" />
                                 <clientevents onrowdropping="rowDropping" />
                                 <clientevents onrowcontextmenu="RowContextMenu" />
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"   >
                                 </Scrolling>
                          </clientsettings>
                          <activeitemstyle borderstyle="Solid" font-bold="True" />
                          <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                          <GroupingSettings ShowUnGroupButton="true"    />
                          
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                        <AlternatingItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                   </telerik:RadGrid>


If I use  Fixed Table layout,  all columns  headers render properly and Fixed layout shows problem when you try to group records by field name. When grouped in fixed layout, edge of column headers and items do not align. In grouped mode, all records squeeze to left.

Any help is appreciated.

Thanks,
Prava
Pavlina
Telerik team
 answered on 15 Sep 2011
8 answers
198 views
I am using a RadBinaryImage to display images that have been previously uploaded into our database by dynamically setting its DataValue property.  While the control successfully renders the byte[] as an image, it fails to correctly render transparent gif colors as transparent.  For example:  Instead of rendering this transparent gif with transparent background, the RadBinaryImage control renders the gif like this.

Is this a bug in the RadBinaryImage control?  Or, is there a property that I missed that denotes image type?
Tsvetina
Telerik team
 answered on 15 Sep 2011
7 answers
205 views
Hi Guys, I have a RadScheduler that use a Datatable as Datasource.

DataTable Structure
 DataTable dtAppointments = new DataTable("Appointments");
            dtAppointments.Columns.Add("ItemID", typeof(int));
            dtAppointments.Columns.Add("Title", typeof(string));
            dtAppointments.Columns.Add("CalendarType", typeof(string));
            dtAppointments.Columns.Add("StartDate", typeof(DateTime));
            dtAppointments.Columns.Add("EndDate", typeof(DateTime));
            dtAppointments.Columns.Add("hasEndDate", typeof(bool));
            dtAppointments.Columns.Add("Description", typeof(string));
            dtAppointments.Columns.Add("Location", typeof(string));
            dtAppointments.Columns.Add("RecurrenceRule", typeof(string));
            dtAppointments.Columns.Add("RecurrenceParentID", typeof(string));
            dtAppointments.Columns.Add("IsRecurrence", typeof(bool));

Everything works great until I need to use the DataRecurrenceField field. I use the value "DTSTART:20110801T000000Z\r\nDTEND:20110802T000000Z\r\nRRULE:FREQ=WEEKLY;COUNT=20;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SU\r\n"
in the column RecurrenceRule as a string but when the calendar is loaded the item is add in all days of the month. What I did wrong?
 RadScheduler1.DataSource =Call the method that create the DataTable with the data.
  RadScheduler1.DisplayRecurrenceActionDialogOnMove = true;
                    RadScheduler1.DataSubjectField = "Title";
                    RadScheduler1.DataStartField = "StartDate";
                    RadScheduler1.DataEndField = "EndDate";
                    RadScheduler1.DataKeyField = "itemID";
                    RadScheduler1.DataRecurrenceField = "RecurrenceRule";
                    RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID";
RadScheduler1.DataBind();

I also used a static text that represent "Monday, 20 June 2011 12:00 AM - Friday, 31 January 2025 11:59 PM (Central Time Zone)
Repeat weekly every 5 weeks on Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"

RecurrenceRule 
"DURATION:P1D\r\nDTSTART;VALUE=DATE:20110620\r\nRRULE:FREQ=WEEKLY;INTERVAL=5;BYDAY=SU,MO,TU,WE,TH,FR,SA;WKST=MO\r\n"

I need your help!!
Hank


Kalina
Telerik team
 answered on 15 Sep 2011
2 answers
122 views
We have just started to implement using the RAD Menu. On one of our pages, we have a div which we set with a css style (background:url('....'))

When using IE6, when the Rad Menu expands the menu appears behind the image, getting hidden. I have read the posts on the z-index on other parts of the telerik site and have manually set the z-index of the menu and the menu items, and set the div itself to have a z-index of 1. I have also set the position of the div to be relative. It still goes behind.

Are there any known fixes for this? It works fine in all other browsers, we unfortunately have to support IE 6 for some of our clients.

Thanks

Eric
Eric
Top achievements
Rank 1
 answered on 15 Sep 2011
7 answers
121 views
Hi, 
I am using rad rotator and have 7 item templates with a single image in every itemtemplate... When it rotates the image will scroll one by one.. working fine .. 
Now I have an scenario I have numeric buttons outside the rotator like with caption 1 2 3 4 5 6 7... I want to achieve that if the rotator is on image 3 just suppose and user click button with caption 7 then the rotator should rotate 4 images (4 images visibly slide) and stops at image 7... 


Can you help me how can I achieve this through Client Side API function, any routine or function .. 

Thanks in Advance .. 
Slav
Telerik team
 answered on 15 Sep 2011
1 answer
74 views
I have a hierarchical radgrid that has a button that can toggle the column filtering on and off.  I have this working except for the following case.  When I toggle the column filtering to off all my column filters correctly are removed (done via client side javascript api), but when I expand another row, the detail table I just expanded has the column filtering turned on.

Also, if I enter some text in a detail table's column filter and apply it, when I expand another row, its detail table has the same text already entered in the column filter (but not applied).  Why is the text copied to that filter as well?

Thanks in advance!

Tsvetoslav
Telerik team
 answered on 15 Sep 2011
2 answers
146 views
I have a rather complicated scenario:
-> Ragdrid (Grouped Data)
    -> NestedViewTemplate
        -> RadGridDetail (Ungrouped or Detail of data, here users can edit data)
            -> GridTemplateColumn
                -> EditItemtemplate
                    -> RadComboBox (For insert or update)
                    -> Imagebutton (open RadWindow)

On insert or update, the ImageButton is enabled and open a RadWindow, with a CRUD of a table that populate the RadComboBox.
When I run any command of CRUD, I need to reload all items of RadComboBox. How I can to do this? (or where can I find info about this?)

Thank in advance

Charly 
Carlos Amigo
Top achievements
Rank 1
 answered on 15 Sep 2011
1 answer
157 views
I have an interesting issue.  When I use the Sitefinity skin on RadGrid the row colors do not change when selected if I'm setting the row backcolor in the ItemCreated Event or setting the ItemStyle/AlternatingItemStyle in the ASP.

                <MasterTableView DataKeyNames="pID" CanRetrieveAllData="false">
                    <ItemStyle BackColor="White" ForeColor="Black" />
                    <AlternatingItemStyle BackColor="White" ForeColor="Black" />


OR

                    e.Item.ForeColor = Drawing.Color.Red
                    e.Item.Font.Bold = True


I need to be able to dynamically change row color based on values in the row, which is why I am handling the ItemCreated event, and I do not like having AlternatingItem's in the grid, which is why I'm setting the color in the ASP.  I really like the style of the Sitefinity skin, but if I cannot see which rows are selected, it's just not going to work.

I should also say, I've tried using the visual style builder to change the Sitefinity skin but nothing changed.  Selected rows still did not display as selected.

Any ideas?
Galin
Telerik team
 answered on 15 Sep 2011
3 answers
125 views
Hi,

I tried to make the code in the following to work, but it  doesnt work  for  me. 
http://www.telerik.com/help/aspnet-ajax/grid-persist-selection-in-nopersistence-mode.html

The item is always null. Could you please help me with a sample demo application?

Thanks in advance for your support.

Regards,
Vijay
Veli
Telerik team
 answered on 15 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?