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

Hi,

please any one help me code or demo for Hierarchy grid parent with one child and child only have edit column

Eyup
Telerik team
 answered on 10 Jun 2015
5 answers
54 views

Hello,

 When hitting a new line on Mozilla or Chrome, it introduces a <br/> tag, which is fine for us. However in IE the editor wraps up the line inside <p>...</p> tags, thus introducing a double spacing. Is there any way to put IE in line with the other browsers?

Regards

Ianko
Telerik team
 answered on 10 Jun 2015
1 answer
842 views
How to replace UpdatePanel with telerik, what to use RadAjaxManager or RadAjaxPanel. The UpdatePanel contains ListBox control where the items are retrieved from the database. Is there any replacement for ContentTemplate in telerik too?

<td class="td_populate">
<asp:UpdatePanel ID="updp1" runat="server">
<ContentTemplate>                                       
<asp:ListBox ID="countryCode" runat="server" Rows="1"></asp:ListBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="countryCode"
Display="Dynamic" ErrorMessage="* Please select the Country Code" SetFocusOnError="True" />
</ContentTemplate>
</asp:UpdatePanel>
</td>

<td class="td_populate">
<asp:UpdatePanel ID="updp2" runat="server">
<ContentTemplate>
<asp:ListBox ID="region" runat="server" Rows="1">
<asp:ListItem Value="">--- SELECT ---</asp:ListItem>
</asp:ListBox>                            
<asp:RequiredFieldValidator ID="RFV2" runat="server" ControlToValidate="region"
Display="Dynamic" ErrorMessage="* Please select the region code" SetFocusOnError="True" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="region" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
</td>

How to migrate this controls using telerik?
Marin Bratanov
Telerik team
 answered on 10 Jun 2015
3 answers
119 views

Hello,

 I'm experiencing a strange behavior. I'm using in the same page a RadGrid with EditMode="Batch" and other RadInputs with SelectionOnFocus="SelectAll".

The problems is:

The focus on the inputs don't always select the content as they should. It only happens when the EditMode of the grid is "Batch". When I remove the property the focus works fine.

 

Is there any workaround? Am I missing some property that handles that?

 

This is an example of one of the textboxes:

<telerik:RadTextBox
    ID="txtInputText" runat="server" Width="100%" ShowButton="False" TextMode="SingleLine"
    Rows="1" ReadOnly="False" Enabled="True" onkeydown="ignorarEnter(this,event)"
    OnTextChanged="txtInputText_OnTextChanged" SelectionOnFocus="SelectAll" />

And here is my RagGrid:

<telerik:RadGrid
    Width="100%" Height="100%" Style="border: 0; outline: none" CssClass="gridClass"
    runat="server" ID="grdControl" ClientIDMode="Predictable" BorderWidth="0px"
    OnItemCommand="grdControl_ItemCommand" OnNeedDataSource="grdControl_NeedDataSource"
    OnBatchEditCommand="grdControl_BatchEditCommand" PageSize="50"
    AllowSorting="true" Culture="pt-BR" AutoGenerateColumns="false"
    AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
    AllowAutomaticDeletes="true" FilterType="Classic"
    AllowPaging="false" AllowFilteringByColumn="false">
    <MasterTableView
        TableLayout="Fixed" AllowPaging="false" AllowFilteringByColumn="false"
        Width="100%" CommandItemDisplay="None" >
        <BatchEditingSettings SaveAllHierarchyLevels="true" EditType="Row" OpenEditingEvent="DblClick" />
        <RowIndicatorColumn Visible="False" />
        <ExpandCollapseColumn Created="True" />
        <Columns>
            <telerik:GridBoundColumn UniqueName="text1" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number1" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date1" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool1" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text2" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number2" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date2" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool2" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text3" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number3" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date3" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool3" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text4" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number4" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date4" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool4" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text5" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number5" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date5" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool5" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text6" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number6" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date6" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool6" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text7" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number7" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date7" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool7" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text8" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number8" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date8" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool8" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text9" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number9" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date9" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool9" Visible="false" />
            <telerik:GridBoundColumn UniqueName="text10" Visible="false" />
            <telerik:GridNumericColumn UniqueName="number10" Visible="false" />
            <telerik:GridDateTimeColumn UniqueName="date10" Visible="false" />
            <telerik:GridCheckBoxColumn UniqueName="bool10" Visible="false" />
        </Columns>
    </MasterTableView>
    <PagerStyle
        AlwaysVisible="false" PageSizeControlType="None" CssClass="grdpager" Position="Bottom" />
    <HeaderContextMenu RenderMode="Lightweight" />
 
    <ClientSettings EnableRowHoverStyle="true" AllowKeyboardNavigation="true">
 
        <ClientEvents OnKeyPress="desbilitarEnterGrid" />
 
        <Selecting AllowRowSelect="true" />
        <Resizing
            AllowRowResize="false" AllowColumnResize="true" AllowResizeToFit="true"
            ClipCellContentOnResize="true" EnableRealTimeResize="false"
            ResizeGridOnColumnResize="false" />
        <Scrolling AllowScroll="true" UseStaticHeaders="True" />
    </ClientSettings>
 
</telerik:RadGrid>

 

Konstantin Dikov
Telerik team
 answered on 10 Jun 2015
3 answers
144 views

I created my own CompositeControl that extends and automates many tasks for me with the RADGrid. Posting the code in it's entirety is impossible because of how complex it is. But I am going to do my best to explain the gist of my problem and what I am  looking for.

I use the RADGrid almost entirely using Server-Side code (VB.Net flavor). Now ad the time I initialize my grid (at page load) I add a custom Template to the MasterTableView.NestedViewTemplate. The custom template is a class I created inheriting from ITemplate and implements the InstantiateIn method. I set the MasterTableView.HierarchyLoadMode = Client as well. The template I created simply displays additional fields on the same parent record (ie: row) that I manually have hidden from the RADGrid column list (for lack of space). If the user wants to see the additional information, expanding the nested view will show them the remaining fields.

The first time my page/grid load...works perfectly, the arrow appears on the left side of each record and if clicks it expands to show my custom NestedViewTemplate. However the problem I have is that I am also sometimes allowing for paging, and if the user changes the page I lose the NestedViewTemplate completely. The arrows to the left of each row vanish.

I have saved the ITemplate class into the ViewState so that I can "reattach" it if it is found to be missing at a later reload. I have looked all around to see at which point I need to reattach it, but no matter where I re-attach the NestedViewTemplate, it doesn't re-appear on a page index change.

My question is, at which event should I be re-attaching the NestedViewTemplate so that it is early enough in the event timeline that it can bind with the parent data and display on the RADGrid? I've tried Page_Init, Page_Load, and grid_DataBinding...no luck. When stepping through my code, I see that at the time that the PageIndex is changed, the NestedViewTemplate is loaded into the RADGrid. The only thing I noticed that is different is that in the initial load of the grid, the gridDataBinding() event is fired, but when the page index is changed it does not fire.

HELP!

Kostadin
Telerik team
 answered on 10 Jun 2015
3 answers
132 views

Hello, I am using the Async Upload component, version 2013.3.1324.40

 When I use this component with IE11 sometime it works fine and a lot of time the browser freezes.

In the following link, I read this is a bug in IE11:  http://www.telerik.com/forums/radasyncupload-freezes

 

Do you have a solution or workaround about it? Comment: in the company the most users use IE11.



 

Nencho
Telerik team
 answered on 10 Jun 2015
3 answers
360 views

Hi,

When setting the maxlength and using multiline, you can paste more characters than you can type!

In your demo:

http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx

  • Set the maxlength to 10.
  • Paste the following​ in the multiline textbox:

1
2
3
4
5

All of the lines are pasted, but this should not be possible since a new-line should count as 2 chars!

When trying to write this text with the keyboard it will stop at "4".

Tried this in both Firefox and IE11.

Regards
Andreas

Kostadin
Telerik team
 answered on 10 Jun 2015
2 answers
288 views
Hi to all,

I have an issue in Rad Tree view. I need to insert Node to present Tree view Find Parent and do that process by client Side any one Help me,


How to Find parent Node and add child Node to that by Button Click.


Thanks in advance
Gokul
Top achievements
Rank 1
 answered on 10 Jun 2015
6 answers
167 views

Hello everyone,

After saving pdf files uploaded by AsyncUpload (using UploadedFile.SaveAs method), I could not view saved files' content in radwindow. However, if I changed the saved files with original files (have not been saved via AsyncUpload), the pdf files would be displayed properly in radwindow.

Do you have any ideas about my issue?

Linh Hoang
Top achievements
Rank 1
 answered on 10 Jun 2015
16 answers
1.6K+ views
I'm trying to setup a RadGrid in a Table that has a height and width set to 100% so that it can expand and contract as the user resizes their browser (I'm only using IE).  Inside the table I'd like to setup the RadGrid so that it will automatically expand and contract to fill the container (table cell) and to scroll the records when necessary.  In other words, I want the column headers to stay fixed at the top, the paging portion to stay fixed at the bottom and the scroll bar to show up for the data records if the page is not large enough to display all the records.

FYI... the records per page is a variable loaded at runtime.

I've found some other threads in the forum that talk about different work arounds using javascript at runtime.  I've tried this and it works sometimes.  But due to the complexity of my page, when some of the other javascript on the page executes it causes the RadGrid to collaps in size so that only the header, footer and a sliver of one record is visible.  There has to be a more stable way.

If I try to set the RadGrid height to 100% and the scroll height to 100% the grid also shriks its height to almost nothing.
Geoff
Top achievements
Rank 1
 answered on 09 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?