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

We are trying to filter the recources in the scheduler.
But it is possible that the filter returns no recources, so the scheduler would be empty then.

Is there some kind op EmptyDataTemplate that we can show if there is no resource available?
Another problem is that we are getting some javascript errors when there is no recource.

Error message see following:  Link

Translation is : Runtime-fout Microsoft JScript: 'this._weekModels.0' is empty or not an object
Peter
Telerik team
 answered on 24 Sep 2009
1 answer
95 views
Hi there.
I was wondering if there is a way of skining a page view so it fits de radtabstrip that contains it (like drawing some borders similar to those drawn automatically when I add the fieldset tag in html, but that adjusts to the tab).
Cheers
Paul
Telerik team
 answered on 24 Sep 2009
1 answer
93 views
Is it possible to lock content layout. For example if I have a 2 divs one next to another  that I don’t want user to to delete div definitions  but add content inside of them  how do I do it.

For example
        <div id="wrap">  
            <div class="left">  
                User can add content Here  
            </div> 
            <div class="right">              
                User can add content Here  
            </div> 
        </div> 
Rumen
Telerik team
 answered on 24 Sep 2009
4 answers
246 views
I'm having trouble wrapping my head around how to implement something that I previously accomplished with a standard .Net DataGrid.  I've created a RadGrid control with a Master/Details table structure.  The detail columns include: ID, title, bReady, and bCompleted.  I want to programmatically check if bReady=false and if so set a hyperlink column to not be visible.  There are also some other pieces of logic I'd like to implement.

I tried using ItemDataBound of the Grid and OnDataBinding on the DetailsTable GridView, but nothing I've tried is working.

    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="lpu" 
        GridLines="None" Width="576px"> 
        <MasterTableView DataKeyNames="uid" DataSourceID="lpu" HierarchyLoadMode="ServerBind"> 
            <DetailTables> 
                <telerik:GridTableView DataKeyNames="esi" 
                    DataSourceID="lps" Width="100%" runat="server" CommandItemDisplay="None"  
                    HeaderStyle-Height="0"> 
                    <ParentTableRelation> 
                        <telerik:GridRelationFields DetailKeyField="eui" MasterKeyField="eui" /> 
                    </ParentTableRelation> 
                    <Columns> 
                        <telerik:GridBoundColumn SortExpression="esi" HeaderText="esi" 
                            DataField="esi" UniqueName="esi" Visible="false" 
                            ReadOnly="true"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn AllowSorting="false" DataField="title" 
                            UniqueName="title"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn AllowSorting="false" DataField="bReady" Visible="true" 
                            UniqueName="bReady"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn AllowSorting="false" DataField="bCompleted" Visible="false" 
                            UniqueName="bCompleted"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridHyperLinkColumn DataNavigateUrlFormatString="javascript:launch('launch.aspx?esi={0}');" 
                            DataNavigateUrlFields="esi" DataType="Int32" Text="View"> 
                        </telerik:GridHyperLinkColumn> 
                    </Columns> 
 
<HeaderStyle Height="0px"></HeaderStyle> 
                </telerik:GridTableView> 
            </DetailTables> 
            <ExpandCollapseColumn Visible="True"> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="eui" DataType="System.Decimal" HeaderText="eui" 
                    ReadOnly="True" SortExpression="eui" UniqueName="eui" 
                    Visible="False"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="uo" DataType="System.Int32" HeaderText="uo" 
                    SortExpression="uo" UniqueName="uo" Visible="False"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="un" HeaderText="Name" SortExpression="un" 
                    UniqueName="un"> 
                </telerik:GridBoundColumn> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 
 

Can someone guide me on what I need to put into the ItemDataBound method to set up this behavior?  Here's where I've started but have gotten stuck.

Thanks

        if (e.Item is GridItem) 
        { 
            if (e.Item.OwnerTableView.ParentItem != null) 
            { 
                if (e.Item.OwnerTableView.DetailTables.Count > 0) 
                { 
                    foreach (GridTableView dt in e.Item.OwnerTableView.DetailTables ) { 
                        foreach (GridDataItem gdi in dt.Items) 
                        { 
                        } 
                    } 
                } 
            } 
        } 
 
Erik Willsey
Top achievements
Rank 1
 answered on 24 Sep 2009
17 answers
471 views
Hi,

Using 2008 Q3 SP2 (2008.3.1314.35), I build a RadGrid using :
   <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 

I've programmed a small helper class that basically localizes the RadGrid from a global resource file, but I've got two problems :

1) The pager is always reverted back to "NextPrev" when setting the localized text via "RadGrid.MasterTableView.PagerStyle", for example :
RadGrid.MasterTableView.PagerStyle.NextPagesToolTip = (string)HttpContext.GetGlobalResourceObject("RadGrid", "MasterTableView_PagerStyle_NextPagesToolTip"); 

but is remains to "NextPrevNumericAndAdvanced" when setting via "RadGrid.PagerStyle", for example :
RadGrid.PagerStyle.NextPagesToolTip = (string)HttpContext.GetGlobalResourceObject("RadGrid", "MasterTableView_PagerStyle_NextPagesToolTip"); 

Why is that ? Which one is the right one to use ?

2) The "Advanced" part cannot be localize using the same manner. I've found this old thread that mentions that you have to use the "RadGrid1_ItemCreated" event handler and set GoToPageLabel, GoToPageLinkButton, ChangePageSizeLabel and ChangePageSizeLinkButton. Is there a better way now ? It seems strange that everything else but that is so easily localizable...

Thanks for your help,

dstj.
Rini Boo
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
405 views
I want to reftesh the child windos from parent how refresh the child windows from parent.

the child windows contain the Radgrid . want to refresh the grid value
how to do this
my code is
for open child windows
function OpenResults() {
                GetRadWindow().BrowserWindow.OpenPopUp(null);
                GetRadWindow().close();

}

  function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)

                return oWindow;
            } 

and the child windows contains the

<telerik:RadGrid ID="dgResult" runat="server" AllowPaging="True" GridLines="None"
                    HeaderStyle-Font-Bold="true" PageSize="15" Height="190px" Skin="Black" ShowFooter="false"
                    ShowGroupPanel="false">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="300px" />
                        <Resizing AllowColumnResize="false" AllowRowResize="false" ResizeGridOnColumnResize="false"
                            ClipCellContentOnResize="true" />
                    </ClientSettings>
                    <AlternatingItemStyle Font-Bold="True" />
                    <MasterTableView AutoGenerateColumns="False" ItemStyle-Font-Bold="true" AllowAutomaticDeletes="true"
                         DataKeyNames="ProjectID">
                        <%--<ItemStyle Font-Bold="True" ForeColor="White" HorizontalAlign="Center" VerticalAlign ="Middle"  />--%>
                        <Columns>
                            <telerik:GridTemplateColumn HeaderText="Created Projects" UniqueName="TemplateCol">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle " Font-Bold="True" ForeColor="White" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="projectID" runat="server" Text='<%#Eval("ProjectID") %>' OnClientClick="Redirectwin(this.innerHTML);"
                                     Visible='<%#Eval("Visible") %>'></asp:LinkButton>
                                      <%--<asp:Label ID="lblError" runat="server" Text="'<%#Eval("ProjectID") %>'" Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>--%>
                                       <asp:Label  ID="lblError" runat="server" Text='<%#Eval("ProjectID") %>' Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                           
                            <telerik:GridTemplateColumn HeaderText="Proposals Used" UniqueName="TemplateCol">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle " Font-Bold="True" ForeColor="White" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:Label  ID="ProposalID" runat="server" Text='<%#Eval("ProposalID") %>' Visible='<%#Eval("Visible") %>'> </asp:Label>
                                    <asp:Label  ID="lblError1" runat="server" Text='<%#Eval("ProposalID") %>' Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>
                                   
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>


want to fresh the child when i added the value from parent

how do this
Its urgent



Shinu
Top achievements
Rank 2
 answered on 24 Sep 2009
2 answers
143 views
Hi,

This is probably really quick and simple but I couldn't see an answer.

My rotator displays two entries at a time.  I need to say that if the count is less than 3 don't rotate.  at teh moment the rotation still occurs and as such the two items switch place which looks a bit stupid.

Is there some way of setting the rotator to not rotate.  Obviously I could set the frame duration to some silly value to get around this. 

I need to do this from the code behind.

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 24 Sep 2009
3 answers
138 views
I just upgraded RadControls for ASP.NET AJAX (2009.2.826.35)

I have a gridview which has Edit form with combobox. It always working fine until this latest update.

<telerik:RadComboBox ID="ddlSubCategoryEdit" runat="server"
    DataTextField="SubCatDesc"
    DataValueField="SubCatId" Width="250px" AutoPostBack="True"
    onselectedindexchanged="ddlSubCategoryEdit_SelectedIndexChanged">
    <CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>

Here is the problem. When I click the the drop down button and select the same item. By right the selectedIndexChanged fire. However after the latest telerik version update. It will fire and the selectedvalue is blank.
I found this problem in IE7 and IE8 but working fine in firefox.

Simon
Telerik team
 answered on 24 Sep 2009
2 answers
112 views
Hi,

When I group my appointments by a certain resource I want to visually distinguish each group with a vertical bold line.
How do I accomplish that?

Screenshot -> http://screencast.com/t/zpNcUbnXJ

Thank you in advance!

Regards,
Andrew
Roman Janki
Top achievements
Rank 1
 answered on 24 Sep 2009
4 answers
319 views

Hi,

I am Feroz. I am using telerik radgrid for my application. I need to add fileupload control dynamicaly to columns in radgrid.

Please give any suggestions.

Thanks in advance.

Regards
Feroz
feroz minnadad
Top achievements
Rank 1
 answered on 24 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?