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

I having an issue rebinding and/or clearing the old results in the grid. The code below populates RadGridType. On load returnCourseName return 63 records (confirmed). Then the user selects something on RadGridProduct and this function is launched again, this time returnCourseName returns 21 records (confirmed) but the 63 records are still in RadGridType. All I want to do is clear the grid and send it new results. That all!!!

<telerik:RadGrid   
                                        ID="RadGridType"   
                                        runat="server"   
                                        AutoGenerateColumns="False"   
                                        GridLines="None"   
                                        AllowMultiRowSelection="True"   
                                        ShowHeader="False"   
                                        BorderStyle="None"   
                                        Skin="Web20"   
                                        ForeColor="#3399CC"   
                                        Font-Bold="False"   
                                        Font-Italic="False"   
                                        Font-Names="Verdana"   
                                        Font-Overline="False"   
                                        Font-Strikeout="False"   
                                        Font-Underline="False">  
                                        <AlternatingItemStyle   
                                            Font-Bold="False"   
                                            Font-Italic="False"   
                                            Font-Overline="False"   
                                            Font-Strikeout="False"   
                                            Font-Underline="False"   
                                            ForeColor="#3399CC"   
                                            Wrap="True" /> 
                                        <ItemStyle   
                                            Font-Bold="False"   
                                            Font-Italic="False"   
                                            Font-Overline="False"   
                                            Font-Strikeout="False"   
                                            Font-Underline="False"   
                                            ForeColor="#3399CC"   
                                            Wrap="True" /> 
                                        <MasterTableView   
                                            Font-Bold="False"   
                                            Font-Italic="False"   
                                            Font-Names="Verdana"   
                                            Font-Overline="False"   
                                            Font-Strikeout="False"   
                                            Font-Underline="False"   
                                            Font-Size="11px">  
                                        <RowIndicatorColumn> 
                                        <HeaderStyle Width="20px"></HeaderStyle> 
                                        </RowIndicatorColumn> 
                                        <ExpandCollapseColumn> 
                                        <HeaderStyle Width="20px"></HeaderStyle> 
                                        </ExpandCollapseColumn> 
                                            <Columns> 
                                                <telerik:GridClientSelectColumn Display="False" UniqueName="columnBlank">  
                                                </telerik:GridClientSelectColumn> 
                                                <telerik:GridBoundColumn   
                                                    DataField="CourseName"   
                                                    UniqueName="colCourseNameSelect"   
                                                    HeaderButtonType="None">  
                                                </telerik:GridBoundColumn> 
                                            </Columns> 
                                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#3399CC" Wrap="True" /> 
                                            <AlternatingItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#3399CC" Wrap="True" /> 
                                            <EditItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" BackColor="Black" ForeColor="White" /> 
                                        </MasterTableView> 
                                        <SelectedItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" ForeColor="Maroon" BackColor="Silver" /> 
                                        <ClientSettings EnableRowHoverStyle="False">  
                                            <Selecting AllowRowSelect="True" /> 
                                        </ClientSettings> 
                                    </telerik:RadGrid> 

public void returnCourseName(string strLocation)  
    {  
        GridItemCollection GDC = RadGridProduct.SelectedItems;  
        RadGridType.DataSource = new List<string>(0);  
        RadGridType.DataBind();  
        RadGridType.DataSource = clsTraining.returnCourseName(strLocation, GDC);  
        RadGridType.DataBind();  
    } 
Schlurk
Top achievements
Rank 2
 answered on 09 Oct 2009
6 answers
109 views

I have a number of pages that all use a given master page.

The master page includes a RadAjaxManager and a LoadingPanel control.

I would like, if it possible to arrange it so, to have /all/ of the controls on the page blocked whenever and AJAX request fires and to have the LoadingPanel displayed.

I know I could modify /each/ page but I'd rather, if possible, have it all managed from the Master Page.

Is such a thing possible?

-- 

Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 09 Oct 2009
2 answers
87 views
I am trying to install the RadEdtior and I've completed all the steps here.

http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html
 and here
http://www.telerik.com/help/aspnet-ajax/installing-radeditor-in-moss-2007-farm.html

I belive that its installed correctly, so when i got to activate for lists I get a strange result.

I get the rad editor but with no content and the toolbar is 1px. If i type in the html and switch to design the text clears. I am open to try anything at this point.

Tom Daly
Thomas
Top achievements
Rank 1
 answered on 09 Oct 2009
18 answers
422 views
Ever since upgrading to the new 2009 Q1 my column widths are being ignored in IE8.

Everything renders perfect in Firefox and Opera, but IE8 is broken. In addition to the column widths being ignored, any template fields with hyperlinks are crossing over into other columns. I'm using the converted "Vista" skin provided by Telerik to maintain the Q3 2008 look. The Q3 2008 release did not have this issue. I'm wondering if you guys have tested the new skins with the MasterTableView TableLayout="Fixed" property set. Also, In all my grids I set widths for all columns except one, so that any extra width will go to that column. This has never been a problem until the new release. Here is my markup, although I'm not sure how helpful it will be. I emptied out my template fields just to rule out the contents of them causing the problem.

  <telerik:RadGrid ID="DetailGrid" runat="server" AllowPaging="True" AllowSorting="True"
                AllowCustomPaging="True" GridLines="None" ShowGroupPanel="True" AutoGenerateColumns="false"
                CssClass="grid2Line" PageSize="10" MasterTableView-AllowCustomPaging="true" Skin="swVista"
                EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" OnNeedDataSource="DetailGrid_NeedDataSource"
                OnSortCommand="DetailGrid_SortCommand">
                <MasterTableView TableLayout="Fixed" OverrideDataSourceControlSorting="true" Width="100%">
                    <PagerTemplate>
                        <uc1:GridPagerTemplate ID="GridPagerTemplate1" runat="server" />
                    </PagerTemplate>
                    <PagerStyle AlwaysVisible="true" />
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="StartTimeClean" SortExpression="StartTime" HeaderText="Arrived"
                            GroupByExpression="StartTimeGB Arrived Group By StartTimeGB" DataField="StartTimeClean"
                            ItemStyle-CssClass="gridItemRow" ItemStyle-HorizontalAlign="Right" Visible="True">
                            <HeaderStyle Width="90px"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn UniqueName="LocationImage" Visible="true" HeaderText="From"
                            SortExpression="CountryName" GroupByExpression="CountryName Country Group By CountryName">
                            <HeaderStyle Width="54px" HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle></ItemStyle>
                            <ItemTemplate>
                                DODO
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn UniqueName="Visit" DataFormatString="{0:###,###,##0}" SortExpression="VisitNumber"
                            HeaderText="Visit" DataField="VisitNumber" ItemStyle-HorizontalAlign="Center"
                            HeaderStyle-HorizontalAlign="Center" ItemStyle-CssClass="gridItemRow" GroupByExpression="VisitNumber Visit Group By VisitNumber">
                            <HeaderStyle Width="52px"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn UniqueName="TemplateColumn2" SortExpression="StartPageTitle"
                            HeaderText="Entry Page" GroupByExpression="StartPageURL Entry&nbsp;Page&nbsp;URL Group By StartPageURL">
                            <HeaderStyle></HeaderStyle>
                            <ItemStyle Height="35px"></ItemStyle>
                            <ItemTemplate>
                                DODO
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn UniqueName="Location" GroupByExpression="Country Group By City"
                            SortExpression="Country" HeaderText="Location" Visible="false">
                            <HeaderStyle Width="0px"></HeaderStyle>
                            <ItemStyle Height="35px"></ItemStyle>
                            <ItemTemplate>
                                 DODOfs
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn UniqueName="CountryCode" SortExpression="CountryCode" HeaderText="CountryCode"
                            DataField="CountryCode" Visible="false">
                            <HeaderStyle Width="0px"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="PageViews" DataFormatString="{0:###,###,##0}"
                            SortExpression="PageViews" HeaderText="Page Views" DataField="PageViews" ItemStyle-HorizontalAlign="Center"
                            HeaderStyle-HorizontalAlign="Center" ItemStyle-CssClass="gridItemRow" GroupByExpression="PageViews Page&nbsp;Views Group By PageViews">
                            <HeaderStyle Width="58px"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="TimeOnClean" SortExpression="TimeOn" HeaderText="Time On"
                            GroupByExpression="TimeOn Time&nbsp;On Group By TimeOn" DataField="TimeOnClean"
                            HeaderStyle-HorizontalAlign="Center" ItemStyle-CssClass="gridItemRow" ItemStyle-HorizontalAlign="Center"
                            Visible="true">
                            <HeaderStyle Width="62px"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn UniqueName="TimeOn" SortExpression="TimeOn" HeaderText="Time On"
                            DataField="TimeOn" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            GroupByExpression="TimeOnGroupBy Time&nbsp;On Group By TimeOnGroupBy" Visible="false">
                            <HeaderStyle Width="62px"></HeaderStyle>
                            <ItemTemplate>
                               DODO
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn UniqueName="Referrer" GroupByExpression="ReferrerName Referrer&nbsp;Name Group By ReferrerName"
                            HeaderText="Referrer / Keyword" SortExpression="ReferrerName">
                            <HeaderStyle Width="180px"></HeaderStyle>
                            <ItemStyle Height="35px"></ItemStyle>
                            <ItemTemplate>
                               DODO
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowDragToGroup="False">
                </ClientSettings>
                <GroupingSettings GroupContinuesFormatString="" GroupContinuedFormatString="" />
            </telerik:RadGrid>

Any help would be greatly appreciated as I am not able to use the new release with this issue present.

Thanks,
Levi
Andrew Benson
Top achievements
Rank 2
 answered on 09 Oct 2009
2 answers
98 views
Hello forum,
RadControl newbie looking for help:

I would like to build a grid custom paging function that returns a pagesize dependant on a datasource value - is this possible? The actual scenario I'm trying to accomplish is displaying a grid of tracks belonging to an album (trackcollection). If the album contains more than one CD, ideally, I'd like to page/show the tracks belonging to this particular CD only.

Each datasource row/griditem contains among other things cdNo and trackNo - if an album contains 4 CDs with 12, 14, 4, and 6 tracks respectively, the paging function should then result in 12 records on page1, 14 on page2 and so on.

Does anyone have something that could get me going in the right direction?

Thank you very much.
knut
Knut
Top achievements
Rank 1
 answered on 09 Oct 2009
3 answers
232 views
I am trying to use a custom css for slider control for that I created new theme folder with name SliderCustom, inside I pasted the CSS and Images from default skin and changed the name of css like "Slider. SliderCustom.css"  and changed all the css class name as well. but while I am refereing this custom css, the track bar and drag hand is getting disappear, here I hav attached a screen shot of my code sample, please let me know how can I fix this issue?

Tsvetie
Telerik team
 answered on 09 Oct 2009
1 answer
54 views
I want to use the RadScheduler to create different events in a calendar, once the events are created I want to have a process running everyday that looks for things scheduled then executes based off of them.  I don't understand how the process will know when to run because only one record is created and controlled by RecurrenceRule field.  How is the demon to know when it is suppose to run if there are not in individual records to look at, only

DTSTART:20091007T100000Z
DTEND:20091007T113000Z
RRULE:FREQ=WEEKLY;COUNT=10;INTERVAL=1;BYDAY=MO,WE

is there another way that 3rd party processes can know when its actually been scheduled?

Thanks,
Brian
Peter
Telerik team
 answered on 09 Oct 2009
4 answers
84 views
I needed to create a custom header back color for my RadGrid. I tried setting the HeaderStyle to my desired color but only portion of the header would display the color. Therefore I created a Custom Skin and now the entire background header is set to this color. The problem now is that my Collapse/Expand images are showing blank sprite buttons. Prior to me changing to a custom skin my Collapse/Expand images were clearly shown or displayed. I have tried setting the CollapseImageUrl and ExpandImageUrl to the custom skin but this has not helped, any help on this issue would be appreciated.

cds_user
Top achievements
Rank 1
 answered on 09 Oct 2009
3 answers
403 views
Hi

Is it possible for the RadDateTimePicker to display and select the hours and minutes seperately? For example a drop down with hours and a drop down with minutes? As I am currently using your controls and we need to be able to select by the minute, but if i did it using your control it would just give me too many options to select from.I thought it would be worth asking rather than having to remove your control and doing it using code.

Thanks

Dimo
Telerik team
 answered on 09 Oct 2009
2 answers
93 views
I have a very strange problem. I have used Radupload in a DNN module and it works perfectly with the standard DNN skin.
If I change the skin to (Catalyst) the Upload is not responding. This behavior only happens with IE6 or IE7, have not testet IE8, but it works ok with Mozilla. The skin developper suggest that the Radupload component  only works in a XHTML skin. The Catalyst skin is an HTML skin with a doctype of HTML 4.0 Transitional
I am confused.

/Torben
Torben
Top achievements
Rank 1
 answered on 09 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?