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

I am using the RadDateTimePicker to force user to enter a date and time. But when they select a date using the date calender popup a time (12:00 am) is also entered in the field along with the date.  How can I force the user to also pick a time so users do not leave the default time in the field.  I do not want to use 2 controls  ( one for date and one for time).  I would prefer to use the single control.

Thank you,

 

Dan

Eyup
Telerik team
 answered on 20 May 2015
0 answers
86 views

Hi,

I have a .aspx page on which I have a rad tool bar, radwindow.

Inside the radwindow, I have user control. This is shown when user selects some option on rad tool bar.

I need to implement required field validations inside the user control for some textboxes.

I get a weird issue where, if I add a RequiredFieldValidator control inside the usercontrol, the radwindow does not open. It does not even postback the main page.

I need -

1. A user control with required field validators

2. Radwindow opens on click of tool bar button.

3. Validation mesages are displayed either in user control or some place in rad window.

Thanks,

Amruta.

Amruta
Top achievements
Rank 1
 asked on 20 May 2015
6 answers
446 views
Hi,

I have a web page where i need to Put Two Rad Grid side by side (one on Left, one on Right). I want to make their rows aligned with each other and their Vertical Scrolling as well. 
Means  when User scroll One Grid (Top to Bottom) other grid should also do scroll.

Is It possible with Rad Grid?? or is there any work around?
If yes It would be great to have the solution or hint.

Thanks in advance,
Ankur Mittal
Konstantin Dikov
Telerik team
 answered on 20 May 2015
6 answers
183 views

I have setup CDN locally, however there are duplicate scriptresources.axd getting downloaded.

 

Below is the web config setting.

 

<add key="Telerik.Menu.EnableEmbeddedScripts" value="false"/>
<add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
<add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="http://IP:Port/Scripts/ " />
<add key="Telerik.ScriptManager.TelerikCdn.BaseSecureUrl" value="https://IP:Port/Scripts/" />

 

Also attached fiddler and screen shots. By enabling CDN settings I would expect only JS files to be downloaded over scriptresource.axd files.

Please provide clarity. 

 

Telerik Version - 2012.1.411

 

Thanks

Gokul

Peter Filipov
Telerik team
 answered on 20 May 2015
5 answers
172 views
So I have a problem with marking buttons in a RadToolBarDropDown.

If I'm simply using a RadToolBarButton with the CheckOnClick="true" outside of a RadToolBarDropDown it works perfectly but when I have it inside of one it doesn't mark it anymore for an unknown reason.

What I'm trying to create is to have this dropdown list where I have 3 options of what people want to "toggle on/off". So they click on the dropdown, pick one of the options to toggle it off which should then be marked/checked in some manner so they know it has been toggled off. I don't seem to get it to work.Any ideas how to solve this?

<telerik:RadToolBarDropDown runat="server" ToolTip="Show/Hide" ImageUrl="~/Images/icon.png">
    <Buttons>
          <telerik:RadToolBarButton runat="server" Text="Walls" Value="TOGGLE_WALLS" />
          <telerik:RadToolBarButton runat="server" Text="Floor" Value="TOGGLE_FLOOR" />
          <telerik:RadToolBarButton runat="server" Text="Roof" Value="TOGGLE_CEILING" />
    </Buttons>
</telerik:RadToolBarDropDown>
Yenza
Top achievements
Rank 1
 answered on 20 May 2015
4 answers
225 views
Hi,

I'm looking for the edit mode width setting for numeric columns.......the my edit mode numeric columns are much wider than needed. The following is my code.

 

 

<telerik:GridNumericColumn DecimalDigits="2"

FilterControlAltText="Filter SalesLinePressure column"

HeaderText="Sales Line Pressure (psig)" UniqueName="SalesLinePressure" DataField="Sales_Line_Pressure" FilterControlWidth="20px" >

<HeaderStyle Width="50px" />

<ItemStyle Width="50px" />

<FooterStyle Width="50px" />

</telerik:GridNumericColumn>

thanks,
Minh Bui

 

Eyup
Telerik team
 answered on 20 May 2015
16 answers
264 views
I am using a radtabstrip and have noticed that there is a vertical line toward the left hand side that I can see the tabstrip background through.  How can I get rid of this?

Thanks,

JF
Nencho
Telerik team
 answered on 20 May 2015
6 answers
183 views

 

 I need to add tooltip in edittampleate item.i am not able to see the tooltip while i hoverover. also i am using mouseover edit mode.please help. should display= high, medium, etc in tooltip. (dynamic value stored in db)

 

 <telerik:RadGrid ID="gridPersRating" GridLines="None" runat="server" AllowAutomaticDeletes="false" Width="100%" 
            AllowAutomaticInserts="True"  OnItemDeleted="gridPersRating_ItemDeleted" OnItemInserted="gridPersRating_ItemInserted"
            OnItemUpdated="gridPersRating_ItemUpdated" OnPreRender="gridPersRating_PreRender" AllowAutomaticUpdates="True" MasterTableView-TableLayout="Fixed" 
            AutoGenerateColumns="False" OnBatchEditCommand="gridPersRating_BatchEditCommand" OnNeedDataSource="gridPersRating_NeedDataSource" OnItemDataBound="gridPersRating_ItemDataBound" >
            <MasterTableView CommandItemDisplay="Top" DataKeyNames="ID" Font-Size="Small" CommandItemSettings-ShowAddNewRecordButton="false" CommandItemSettings-ShowRefreshButton="false"
                HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
                <BatchEditingSettings EditType="Cell" OpenEditingEvent="MouseOver" />

<%--                <SortExpressions>
                    <telerik:GridSortExpression FieldName="PerspModel_ID" SortOrder="Descending" />
                </SortExpressions>--%>
                <Columns>
                      <telerik:GridBoundColumn DataField="Perspective_ID" Display="false"  HeaderText="Perspective_ID" 
                        UniqueName="Perspective_ID">
                    </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="PerspModel_ID" Display="false"  HeaderText="PerspModel_ID" 
                        UniqueName="PerspModel_ID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Hint" Display="false"   HeaderText="Sub-Perspective" SortExpression="Hint"
                        UniqueName="Hint">
                    </telerik:GridBoundColumn>

                     <telerik:GridBoundColumn DataField="HintSubPerspective" ReadOnly="true" HeaderStyle-Width="160px" ItemStyle-Width="160px" HeaderText="Sub-Perspective"
                        UniqueName="HintSubPerspective">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="Question" ReadOnly="true"  HeaderStyle-Width="250px" ItemStyle-Width="250px"  HeaderText="Question" SortExpression="Question"
                        UniqueName="Question">
                    </telerik:GridBoundColumn>
                  <%--  <telerik:GridRatingColumn AllowRatingInViewMode="false" HeaderText="Original Rating"  HeaderStyle-Width="130px" ItemStyle-Width="130px" DataField="OriginalRating" UniqueName="OriginalRating"></telerik:GridRatingColumn>
                   --%>
                     <%--<telerik:GridRatingColumn AllowRatingInViewMode="false"  HeaderText="Perspective Rating" HeaderStyle-Width="130px" ItemStyle-Width="130px" DataField="PerspectiveRating" UniqueName="PerspectiveRating"></telerik:GridRatingColumn>--%>
                   <telerik:GridTemplateColumn ColumnEditorID="Original Rating" HeaderStyle-Width="150px" ItemStyle-Height="50px" ItemStyle-Width="150px" UniqueName="OriginalRating"   HeaderText="Original Rating">
                        <ItemTemplate>

                            <telerik:RadRating ID="txtOriginalRating"    HeaderStyle-Width="130px" ItemStyle-Width="130px"   DbValue='<%# DataBinder.Eval(Container.DataItem, "OriginalRating") %>'   runat="server" ></telerik:RadRating>
                        </ItemTemplate>
                        <EditItemTemplate>
                             <telerik:RadRating ID="txtEditOriginalRating"  HeaderStyle-Width="130px" ItemStyle-Width="130px"  DbValue='<%# DataBinder.Eval(Container.DataItem, "OriginalRating") %>'  runat="server" >
                                 <Items>
                                   <telerik:RadRatingItem Value="1" />
                                   <telerik:RadRatingItem Value="2" />
                                   <telerik:RadRatingItem Value="3" />
                                   <telerik:RadRatingItem Value="4" />
                                   <telerik:RadRatingItem Value="5" />
                               </Items>
                             </telerik:RadRating>

                             </EditItemTemplate>

                    </telerik:GridTemplateColumn>

                     <telerik:GridTemplateColumn ColumnEditorID="Perspective Rating" HeaderStyle-Width="150px" ItemStyle-Height="50px" ItemStyle-Width="150px" UniqueName="PerspectiveRating"  HeaderText="Perspective Rating">
                        <ItemTemplate>

                            <telerik:RadRating ID="txtPerspectiveRating"   HeaderStyle-Width="130px" ItemStyle-Width="130px"   DbValue='<%# DataBinder.Eval(Container.DataItem, "PerspectiveRating") %>'   runat="server" ></telerik:RadRating>
                        </ItemTemplate>
                        <EditItemTemplate>
                             <telerik:RadRating ID="txtEditPerspectiveRating"   HeaderStyle-Width="130px" ItemStyle-Width="130px"  DbValue='<%# DataBinder.Eval(Container.DataItem, "PerspectiveRating") %>'  runat="server" ></telerik:RadRating>

                             </EditItemTemplate>

                    </telerik:GridTemplateColumn>

                    <telerik:GridTemplateColumn ColumnEditorID="Comments" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="250px" ItemStyle-Height="50px" ItemStyle-Width="250px"  HeaderText="Comments">
                        <ItemTemplate>
                            <telerik:RadTextBox ID="txtComment" Height="50px"   Wrap="true" Width="240px" TextMode="MultiLine"  EmptyMessage='<%# Eval("DefaultComment")%>' runat="server" Text='<%# Eval("Comments")%>'></telerik:RadTextBox>
                        </ItemTemplate>
                        <EditItemTemplate>
                             <telerik:RadTextBox ID="txtEditComment"  Height="50px"  Wrap="true" Width="240px" TextMode="MultiLine"    runat="server" Text='<%# Eval("Comments")%>'></telerik:RadTextBox>

                             </EditItemTemplate>

                    </telerik:GridTemplateColumn>
                     <%--<telerik:GridTemplateColumn HeaderText="Category" DefaultInsertValue="Beverages" HeaderStyle-Width="150px" UniqueName="CategoryID" DataField="CategoryID">
                        <ItemTemplate>
                            <%# Eval("CategoryName") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList runat="server" ID="CategoryIDDropDown" DataValueField="CategoryID"
                                DataTextField="CategoryName" DataSourceID="SqlDataSource2">
                            </telerik:RadDropDownList>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>--%>
                  <%--  <telerik:GridNumericColumn DataField="UnitsInStock" HeaderStyle-Width="80px" HeaderText="Units In Stock"
                        SortExpression="UnitsInStock" UniqueName="UnitsInStock">
                    </telerik:GridNumericColumn>
                    <telerik:GridCheckBoxColumn DataField="Discontinued" HeaderStyle-Width="80px" HeaderText="Discontinued" SortExpression="Discontinued"
                        UniqueName="Discontinued">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridTemplateColumn HeaderText="UnitPrice" HeaderStyle-Width="80px" SortExpression="UnitPrice" UniqueName="TemplateColumn"
                        DataField="UnitPrice">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblUnitPrice" Text='<%# Eval("UnitPrice", "{0:C}") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <span>
                                <telerik:RadNumericTextBox Width="55px" runat="server" ID="tbUnitPrice">
                                </telerik:RadNumericTextBox>
                                <span style="color: Red">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                        ControlToValidate="tbUnitPrice" ErrorMessage="*Required" runat="server" Display="Dynamic">
                                    </asp:RequiredFieldValidator>
                                </span>
                            </span>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" HeaderText="Delete" HeaderStyle-Width="50px" ButtonType="ImageButton"
                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                    </telerik:GridButtonColumn>--%>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowKeyboardNavigation="true">
                  <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2"></Scrolling>
                <ClientEvents OnBatchEditCellValueChanging="RadGridAdditions_OnBatchEditCellValueChanging" />
            </ClientSettings>
        </telerik:RadGrid>

        </telerik:RadAjaxPanel>

 

 

 

  protected void gridPersRating_ItemDataBound(object sender, GridItemEventArgs e)
        {

            
            
            if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
            {                   
              
            //    GridDataItem item1 = e.Item as GridDataItem;
                GridEditableItem item = e.Item as GridEditableItem;
                int id1 = Convert.ToInt32(item["PerspModel_ID"].Text);
                RadRating rating12 = item.FindControl("txtEditOriginalRating") as RadRating;
                // rating.ItemBinding..ToolTip = Math.Round(ratio * 100, 0).ToString() + "%";
                rating12.ItemBinding.ValueField = "Value";
                rating12.ItemBinding.ToolTipField = "ToolTip";

                rating12.DataSource = SurveyModel.GetPerspectiveRatingCriteriaById(id1);
                rating12.DataBind();


                RadRating rating11 = item.FindControl("txtEditPerspectiveRating") as RadRating;
                // rating.ItemBinding..ToolTip = Math.Round(ratio * 100, 0).ToString() + "%";
                rating11.ItemBinding.ValueField = "Value";
                rating11.ItemBinding.ToolTipField = "ToolTip";

                rating11.DataSource = SurveyModel.GetPerspectiveRatingCriteriaById(id1);
                rating11.DataBind();
          }
           
            if (e.Item is GridDataItem)
            {
                GridDataItem dataItem1 = e.Item as GridDataItem;
                
                int id = Convert.ToInt32(dataItem1["PerspModel_ID"].Text);
                RadRating rating = dataItem1.FindControl("txtOriginalRating") as RadRating;
               // rating.ItemBinding..ToolTip = Math.Round(ratio * 100, 0).ToString() + "%";
                rating.ItemBinding.ValueField = "Value";
                rating.ItemBinding.ToolTipField = "ToolTip";

                rating.DataSource = SurveyModel.GetPerspectiveRatingCriteriaById(id);
                rating.DataBind();

                RadRating rating1 = dataItem1.FindControl("txtPerspectiveRating") as RadRating;
                // rating.ItemBinding..ToolTip = Math.Round(ratio * 100, 0).ToString() + "%";
                rating1.ItemBinding.ValueField = "Value";
                rating1.ItemBinding.ToolTipField = "ToolTip";

                rating1.DataSource = SurveyModel.GetPerspectiveRatingCriteriaById(id);
                rating1.DataBind();

               
            }
        }

Konstantin Dikov
Telerik team
 answered on 20 May 2015
7 answers
177 views

Hi , i am setting the parent grid row expand or collapse based on condition for each parent row from code behind based on condiion.

like below..

e.Item.OwnerTableView.HierarchyDefaultExpanded =true

Problem:

still the expand/collapse image icon showing "+" icon instead of "-".

 

Thanks,

Satish.

 

Eyup
Telerik team
 answered on 20 May 2015
1 answer
87 views
In
our project we are replacing existing menu with the RadMenu. after implementing
radmenu in the master page we found an issue in all radgrid with InsertCommand
. the InsertCommand event is not firing,
but the update and delete command works fine.

When
I have added RadWindowManager into the page then the issue is fixed.

Is
there any dependancy , radgrid has on RadWindowManager for invoking
InsertCommand.

 

Our
project contains 70 plus subproject so it's very difficult to add RadWindowManager
 to all pages which has a Radgrid with
InsertCommand.

 

I have also tried to add RadWindowManager into the master page, but it will affect
all the pages with Radwindow Pop up with different settings. If we implement RadWindowManager
in master page we will have to move all the Radwindows  used  in
the project to master page RadWindowManager.

      But, that is not practical, because every
RadWindow in pages have there own properties(width, height etc).

 

How
should we resolve this issue of InsertCommand of Radgrid without including RadWindowManager
into the page?

Konstantin Dikov
Telerik team
 answered on 20 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?