Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views
I am trying to remove the vertical strip that the sliding zone appears from.  i would like the sliding zone appear out from element we designed, but do not want the default bordered look it has.  also, we do not want the icon bar (with the icons of X and push pin).  we want that removed too.

thanks much.
Bruce
Top achievements
Rank 2
 answered on 23 Feb 2009
1 answer
90 views
Hi everybody. I want to know if it is possible to disable all the appointments only at the monthly view. For visibility reasons, we prefer not to show them at that view, and to have the view only to create new appointments .

Any ideas? Thanks!

Fernando
Peter
Telerik team
 answered on 23 Feb 2009
2 answers
423 views
Hello,

For some reason the 'add new record' button does not allways apears in my radgrid. I did not have one in the maingrid before untill I copied some old grid and hooked it up with the new data. But now I still can get the button to apear in the subgrid. I really dont have clue what im doing wrong, anyone has the awnser for me?

THANX

----

        <telerik:RadGrid    ID="grdCategories"
                            runat="server"
                            AllowAutomaticInserts="True"
                            AllowAutomaticDeletes="True"
                            AllowAutomaticUpdates="True"
                            DataKeyNames="id"
                            EnableAJAX="false"
                            ShowStatusBar="True"
                            AutoGenerateDeleteColumn="True"
                            AutoGenerateEditColumn="True"
                            MasterTableView-EditMode="EditForms"
                            DataSourceID="dataCategories"
                            GridLines="None"
                            Skin="WebBlue"
                            AllowPaging="True"
                            AllowSorting="True" PageSize="5">

    <HeaderContextMenu Skin="WebBlue" EnableTheming="True">
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </HeaderContextMenu>

            <PagerStyle Mode="NextPrevAndNumeric" />

            <MasterTableView    autogeneratecolumns="False"
                                InsertItemDisplay="Bottom"
                                CommandItemDisplay="Bottom"
                                datasourceid="dataCategories"
                                DataKeyNames="id" ShowFooter="True">
                <DetailTables>
                    <telerik:GridTableView  runat="server"
                                            DataKeyNames="id"
                                            DataSourceID="dataSubcategories"
                                            AllowAutomaticDeletes="true"
                                            AllowAutomaticInserts="true"
                                            AllowAutomaticUpdates="true"
                                            AllowFilteringByColumn="True"
                                            MasterTableView-EditMode="EditForms"
                                            AllowSorting="False"
                                            AutoGenerateColumns="False"
                                            InsertItemPageIndexAction="ShowItemOnFirstPage">
                        <DetailTables>
                            <telerik:GridTableView  runat="server"
                                                    DataSourceID="dataFeatures"
                                                    DataKeyNames="id"
                                                    AllowFilteringByColumn="True"
                                                    InsertItemDisplay="Bottom"
                                                    AllowSorting="False" >
                                <parenttablerelation>
                                    <telerik:GridRelationFields DetailKeyField="subcatid" MasterKeyField="id" />
                                </parenttablerelation>
                                <rowindicatorcolumn>
                                    <HeaderStyle Width="20px" />
                                </rowindicatorcolumn>
                                <expandcollapsecolumn>
                                    <HeaderStyle Width="20px" />
                                </expandcollapsecolumn>
                            </telerik:GridTableView>
                        </DetailTables>
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="catid" MasterKeyField="id" />
                        </ParentTableRelation>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Visible="True">
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="subcategory" UniqueName="column">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn    DataField="name"
                                                HeaderText="name"
                                                SortExpression="name"
                                                UniqueName="name" />
                </Columns>
            </MasterTableView>

<FilterMenu Skin="WebBlue" EnableTheming="True">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
        </telerik:RadGrid>
Daniel
Telerik team
 answered on 23 Feb 2009
1 answer
105 views
Hi
How can I retrive ViewStartDate and ViewEndDate in the Load event, before any DefaultViewChanged events has occured?
I need it to populate my calendar at the time it is displayed first time.

- Thorgeir
Princy
Top achievements
Rank 2
 answered on 23 Feb 2009
1 answer
148 views
Is there any way to have the RadSpell component ignore words that are detected using a regular expression.  We are evaluating RadEditor and RadSpell for a current project and one of the requirements is that the editor allow insertion of placeholders such as the following:

*----appearancedialog---#
*----------not----------+

We wish for the spellchecker to completely ignore anything between *----# and *----+.  Is there any way to accomplish that currently?  Thanks in advance and we love your stuff!

-Ray

Axispoint Inc.
New York, NY
Rumen
Telerik team
 answered on 23 Feb 2009
1 answer
121 views
Hi...
I have place First,Pervious,Next, & Last button in pagetemplate. when i am on last record, and then clicking on 'Next' button it does not display any record. displays 'No records to display'.

If i am on first page and click on 'Previous' button it displays first page. it works find.

my page template code is:

 <PagerTemplate> 
                                    <table id="tblPageMain" border="0" cellpadding="0" cellspacing="0" width="100%"> 
                                        <tr> 
                                            <td style="width: 200px;"> 
                                                <asp:Button ID="Button1" runat="server" OnClientClick="changePage('first'); return false;" 
                                                    CommandName="Page" CommandArgument="First" CssClass="PagerButton FirstPage" /> 
                                                <asp:Button ID="Button2" runat="server" OnClientClick="changePage('prev'); return false;" 
                                                    CommandName="Page" CommandArgument="Prev" CssClass="PagerButton PrevPage" /> 
                                                <span style="vertical-align: middle;">Page:</span> 
                                                <telerik:RadNumericTextBox ID="RadNumericTextBox1" Skin="Office2007" Width="25px" 
                                                    Value='<%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>' 
                                                    runat="server"> 
                                                    <ClientEvents OnValueChanged="RadNumericTextBox1_ValueChanged" OnKeyPress="RadNumericTextBox1_KeyPress" /> 
                                                    <NumberFormat DecimalDigits="0" /> 
                                                </telerik:RadNumericTextBox> 
                                                <span style="vertical-align: middle;">of 
                                                    <%# DataBinder.Eval(Container, "Paging.PageCount")%> 
                                                </span> 
                                                <asp:Button ID="Button3" runat="server" OnClientClick="changePage('next'); return false;" 
                                                    CommandName="Page" CommandArgument="Next" CssClass="PagerButton NextPage" /> 
                                                <asp:Button ID="Button4" runat="server" OnClientClick="changePage('last'); return false;" 
                                                    CommandName="Page" CommandArgument="Last" CssClass="PagerButton LastPage" /> 
                                            </td> 
                                            <td> 
                                                <div style="float: right;"> 
                                                    <asp:Panel runat="server" ID="NumericPagerPlaceHolder" /> 
                                                </div> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </PagerTemplate> 


Thanks,
Legalia
Top achievements
Rank 1
 answered on 23 Feb 2009
1 answer
207 views
I have placed a RAD combobox inside a table cell and I set the skin as below:

<telerik:RadComboBox ID="listSupplier" runat="server" Skin="Outlook" HighlightTemplatedItems="true"><CollapseAnimation Duration="200" Type="OutQuint" /></telerik:RadComboBox> 

Image Hosted by ImageShack.us

But if I apply a css style to the table, it looks like:

Free Image Hosting at www.ImageShack.us

The style is:

#mytable500 th.nobg  
{  
    border-top: 0px none;  
    border-left: 0px none;  
    border-right: 1px solid #C1DAD7;  
    background: none;  
    color: #ffff66;  
}  
 
#mytable500 td {  
    border-right: 1px solid #C1DAD7;  
    border-bottom: 1px solid #C1DAD7;  
    background: #fff;  
    padding: 6px 6px 6px 12px;  
    color: #4f6b72;  
}  
 
 
#mytable500 td.alt {  
    background: #F5FAFA;  
    color: #797268;  
}  
 
#mytable500 td.spec {  
    border-left: 1px solid #C1DAD7;  
    border-top: 0px none;  
    background: #fff url('images/bullet1.gif') no-repeat;  
    font-style:normal; font-variant:normal; font-weight:bold; font-size:10px; font-family:Trebuchet MS, Verdana, Arial, Helvetica, sans-serif 
}  
 
#mytable500 td.specalt {  
    border-left: 1px solid #C1DAD7;  
    border-top: 0px none;  
    background: #f5fafa url('images/bullet2.gif') no-repeat;  
    color: #797268; font-style:normal; font-variant:normal; font-weight:bold; font-size:10px; font-family:Trebuchet MS, Verdana, Arial, Helvetica, sans-serif 
}  
#mytable500 th.spec {  
    border-left: 1px solid #C1DAD7;  
    border-top: 0px none;  
    background: #fff url('images/bullet1.gif') no-repeat;  
    font-style:normal; font-variant:normal; font-weight:bold; font-size:10px; font-family:Trebuchet MS, Verdana, Arial, Helvetica, sans-serif 
}  
 
#mytable500 th.specalt {  
    border-left: 1px solid #C1DAD7;  
    border-top: 0px none;  
    background: #f5fafa url('images/bullet2.gif') no-repeat;  
    color: #797268; font-style:normal; font-variant:normal; font-weight:bold; font-size:10px; font-family:Trebuchet MS, Verdana, Arial, Helvetica, sans-serif 
} 

I have already set the HighlightTemplatedItems="true".

Also, the calendar behaves similarly as well.
Free Image Hosting at www.ImageShack.us
calendar

Thanks.

Alfred

Yana
Telerik team
 answered on 23 Feb 2009
2 answers
148 views
Hello guys.
In my data grid edit form i have a RadioButtonList (which is not binded to a grid column!) and a radUpload control which is disabled by default.
I would like to have this radUpload control beeing enabled depending on the selected radio button.
I mean: the user selects an option and depending on his choose the radUpload control is enabled or disabled immediately.
Which settings do i have to make in the AJAX Manager? Where to handle the event in my VB ocde? How to update the edit form?
Any help is appreciated.
Cheers Roberto

 <EditItemTemplate>
                                <asp:Label runat="server"  ID="lblFileName" Text="Attached file: "></asp:Label>
                                <asp:Label ID="lblFileNameValue" runat="server" Text='<%# Eval("File name") %>'></asp:Label>
                                    <asp:RadioButtonList  ID="RadioButtonList1" runat="server" Font-Names="Arial" Font-Size="Small" RepeatDirection="Horizontal" AutoPostBack="True">
                        <asp:ListItem Selected="True">Keep file</asp:ListItem>
                        <asp:ListItem>Replace file</asp:ListItem>
                        <asp:ListItem>Delete file</asp:ListItem>
        </asp:RadioButtonList>
                                    <telerik:RadUpload ID="FileUpload" runat="server" Font-Size="Small" Enabled="false"
                                    AllowedFileExtensions=".zip,.pdf,.txt,.rtf,.jpg,.bmp,.tif,.rar"
                                    ControlObjectsVisibility="RemoveButtons"
                                        InitialFileInputsCount="1" MaxFileInputsCount="1" Skin="Sunset" Width="400">
                                    </telerik:RadUpload>
                                                                        
                                </EditItemTemplate>
Roberto Wenzel
Top achievements
Rank 2
 answered on 23 Feb 2009
7 answers
206 views
Hi,

I have a grid with grouping enabled. I am using RADAjaxManager to enable Ajax in the page. I grouped the resultset with one column. When I press enter with the focus in any one of the filter textboxes the grid sorts based on the grouped column. This happens only for the first time. What is the issue here? How do I access the image button with column name on the top to suppress it? Is there any workaround I can get? Thanks in advance. Any help would be highly appreciated. This is happening in all the grids I have. I have added the grid code.

<

rad:RadGrid ID="rgVessel" CssClass="ms-WPTitle" AutoGenerateColumns="False"

 

 

PageSize="10" AllowPaging="True" AllowSorting="True" runat="server" Width="100%"

 

 

AllowFilteringByColumn="True" OnItemDataBound="rgVessel_OnItemDataBound" HorizontalAlign="NotSet"

 

 

FilterMenu-CssClass="FilterMenuClass1" ShowGroupPanel="True" Skin="Default" OnNeedDataSource="rgVessel_OnNeedDataSource"

 

 

OnDataBound="rgVessels_DataBound" OnItemCreated="rgVessel_OnItemCreated" OnPreRender = "rgVessel_PreRender">

 

 

<SelectedItemStyle Font-Bold="true" />

 

 

<ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True">

 

 

<Scrolling UseStaticHeaders="True" ScrollHeight="350px" AllowScroll="True" />

 

 

<Resizing AllowColumnResize="True" AllowRowResize="True" />

 

 

</ClientSettings>

 

 

<MasterTableView GridLines="None" CommandItemDisplay="Top">

 

 

<CommandItemStyle HorizontalAlign="right" />

 

 

<CommandItemTemplate>

 

 

<asp:LinkButton ID="lnkRefresh" runat="server" CommandName="RebindGrid"><img style="border:0px" alt="" src="/wpresources/VesselAssurance/Images/Refresh.gif" /> Refresh</asp:LinkButton>

 

 

</CommandItemTemplate>

 

 

<Columns>

 

 

<rad:GridTemplateColumn UniqueName="TemplateColumn1" DataField="VesselID" DataType="System.Int32"

 

 

HeaderText="Serial Number" SortExpression="VesselID" Groupable="false" HeaderStyle-Width="120px" ItemStyle-Width="70px">

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

<ItemTemplate>

 

 

<asp:LinkButton Text='<%#DataBinder.Eval(Container.DataItem,"VesselID")%>' style="cursor:pointer;" runat=server ID="lnkVesselDetails" OnClick="lnkVesselDetails_Click"></asp:LinkButton>

 

 

</ItemTemplate>

 

 

<HeaderTemplate>

 

S.No

 

</HeaderTemplate>

 

 

</rad:GridTemplateColumn>

 

<%

------------------------------------------------------- --%>

 

 

<rad:GridTemplateColumn Visible="True" UniqueName="VesselsReport" HeaderText="Report"

 

 

AllowFiltering="false" Groupable="false" HeaderStyle-Width="90px" ItemStyle-Width="70px" ItemStyle-HorizontalAlign="Center">

 

 

<ItemTemplate>

 

 

<img style="cursor: pointer;" src="/RadControls/Grid/Skins/Default/notes.gif" alt="Report"

 

 

onclick="javascript:OpenReportWindow('<%#DataBinder.Eval(Container.DataItem,"VesselID")%>')" />

 

 

</ItemTemplate>

 

 

</rad:GridTemplateColumn>

 

<%

---------------------------------------------------------%>

 

 

<rad:GridTemplateColumn UniqueName="TemplateColumn3" DataField="VesselShortdesc" HeaderStyle-Width="90px" ItemStyle-Width="50px"

 

 

AllowFiltering="false" Groupable="false" SortExpression="VesselShortdesc" HeaderText="Vessel Status Indicator">

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

<ItemTemplate>

 

<%

-- <img src='/wpresources/vesselassurance/images/<%#DataBinder.Eval(Container.DataItem,"ColorCode")%>' alt="" />--%>

 

<%

#GetColorCodePath(DataBinder.Eval(Container.DataItem,"ColorCode"))%>

 

 

</ItemTemplate>

 

 

<HeaderTemplate>

 

Vessel Status Indicator

 

</HeaderTemplate>

 

 

</rad:GridTemplateColumn>

 

 

<rad:GridTemplateColumn UniqueName="TemplateColumn2" DataField="VesselName" FilterListOptions="AllowAllFilters"

 

 

HeaderText="Vessel Name" SortExpression="VesselName" Groupable="false" HeaderStyle-Width="126px" ItemStyle-Width="126px">

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

<ItemTemplate>

 

 

<div style="cursor: pointer;" onclick="javascript:OpenWindow('<%#DataBinder.Eval(Container.DataItem,"VesselID")%>','Vessels')">

 

 

<span><u>

 

<%

#DataBinder.Eval(Container.DataItem, "VesselName")%>

 

 

</u></span>

 

 

</div>

 

 

</ItemTemplate>

 

 

<HeaderTemplate>

 

Vessel Name

 

</HeaderTemplate>

 

 

</rad:GridTemplateColumn>

 

 

<rad:GridBoundColumn DataField="VesselID" UniqueName="VesselID" Visible="False" HeaderText="S.No">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="VesselName" UniqueName="VesselName" Visible="False"

 

 

HeaderText="Vessel Name">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="SPUName" UniqueName="SPUName" HeaderText="SPU Name" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="IMONum" UniqueName="IMONum" HeaderText="IMO Number" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="CMID_Dt" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy }"

 

 

UniqueName="CMID_Dt" HeaderText="CMID" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="CMIDReview_Dt" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy }"

 

 

UniqueName="CMIDReview_Dt" HeaderText="CMID Review" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="DPTrial_Dt" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy }"

 

 

UniqueName="DPTrial_Dt" HeaderText="DP Trial" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="FMEA_Dt" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy }"

 

 

UniqueName="FMEA_Dt" HeaderText="FMEA" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="Struct_Dt" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy }"

 

 

UniqueName="Struct_Dt" HeaderText="Structural Audit" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn ItemStyle-HorizontalAlign="center" DataField="Drydock" DataType="System.DateTime"

 

 

DataFormatString="{0:MM/dd/yyyy }" UniqueName="Drydock" HeaderText="Dry Dock" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="RetiredDt" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy }"

 

 

UniqueName="RetiredDt" HeaderText="Expiry Date" HeaderStyle-Width="110px" ItemStyle-Width="120px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="VesselShortdesc" SortExpression="VesselShortdesc"

 

 

UniqueName="VesselShortdesc" Visible="True" HeaderText="Vessel Status" HeaderStyle-Width="126px" ItemStyle-Width="126px">

 

 

</rad:GridBoundColumn>

 

 

<rad:GridBoundColumn DataField="VesselTypeCode" UniqueName="VesselTypeCode" HeaderText="Vessel Type" HeaderStyle-Width="126px" ItemStyle-Width="126px">

 

 

</rad:GridBoundColumn>

 

<%

------------------------------------------------------- --%>

 

 

<rad:GridTemplateColumn Visible="True" UniqueName="VesselsHistory" AllowFiltering="false"

 

 

Groupable="false" HeaderStyle-Width="20px" ItemStyle-Width="20px">

 

 

<ItemTemplate>

 

 

<img style="cursor: pointer;" src="/RadControls/Grid/Skins/Default/history.gif" alt="Audit"

 

 

onclick="javascript:OpenHistoryWindow('<%#DataBinder.Eval(Container.DataItem,"VesselID")%>')" />

 

 

</ItemTemplate>

 

 

</rad:GridTemplateColumn>

 

<%

---------------------------------------------------------%>

 

 

<rad:GridTemplateColumn HeaderText=" " UniqueName="TemplateColumn2" AllowFiltering="false"

 

 

Groupable="false" HeaderStyle-Width="20px" ItemStyle-Width="20px">

 

 

<ItemTemplate>

 

 

<!--<img style="cursor: pointer;" src="/RadControls/Grid/Skins/Default/Delete.gif" alt="Del"

 

onclick="javascript:postBack_Delete('<%#DataBinder.Eval(Container.DataItem,"VesselID")%>')" />-->

 

<asp:Button UseSubmitBehavior="false" ID="imgDelete" runat="server" style="cursor: pointer;" ImageUrl="/RadControls/Grid/Skins/Default/Delete.gif" AlternateText="Del"

 

 

OnClick="imgDelete_Click" />

 

 

</ItemTemplate>

 

 

</rad:GridTemplateColumn>

 

 

</Columns>

 

 

<ExpandCollapseColumn Visible="False" Resizable="False">

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<RowIndicatorColumn Visible="False">

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

</MasterTableView>

 

 

<ActiveItemStyle BackColor="White"></ActiveItemStyle>

 

 

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />

 

 

</rad:RadGrid>

 



Georgi Krustev
Telerik team
 answered on 23 Feb 2009
1 answer
118 views
Hello,

I am trying to display a list of product in a RadGrid. Product belongs to multiple categories. Product to the categories relatioships are kept in a separate table. So I got three tables: Product, Category and ProductCategory. I want to display a list of products in a RadGrid along with a templateColumn which lists the product's categories.

I tried various different methods such as DetailTables, TemplateColumn with a child RadGrid etc, but unable to get the product categories displayed in a template column. Any assistance you could provide is greatly appreciated.

Thanks,

Buddha Manandhar
Shinu
Top achievements
Rank 2
 answered on 23 Feb 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?