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

This is my RadListBox

     <tele:RadListBox ID="listboxview" runat="server"  Height="500px"  Width="100%" Font-Size="11px"  DataTextField="master"
                                             DataValueField="master" OnClientSelectedIndexChanged="putTag"    OnItemDataBound="listboxview_ItemDataBound"  ></tele:RadListBox>

 This is my RadEditor

     <tele:RadEditor ID="RadEditor1" runat="server" ToolbarMode="RibbonBar" AutoResizeHeight="true" Skin="Office2007"  EnableResize="false"  Height="760px"     _ToolsFile="tools.xml"    Width="100%" >  </tele:RadEditor>

 

This is my Javascript method for pasting the Text to the Cursor Postion.

 function putTag(sender, eventArgs) {
                     debugger;
                    var itemsValue = sender.get_selectedItem().get_value();  // i got the value there from selecting the Item in the Listview
                    var editor = $find("<%= RadEditor1.ClientID %>");
                    var rng = editor.getSelection().getRange();
                    editor.getSelection().selectRange(rng);
                    editor.pasteHtml("[/" + itemsValue + "/]");
           
            }

when i click on the Listview then i want the text to the RadHtmlEditor, but using the Following codes i cant do this.

Plz correct my code.

 

 

Ianko
Telerik team
 answered on 09 Dec 2015
4 answers
544 views

Hi, I have been using RadTabStrip to create 8 tabs in a horizontal line and want to make responsive to mobile devices (small screens). I have used scrollChildren  but it is not what I am looking for. Is there any other way to manipulate Tabstrip in such way?

Christian
Top achievements
Rank 1
 answered on 08 Dec 2015
2 answers
960 views
I would like to format a date in radtextbox to exclude the time.. I have the following code

<

 

telerik:RadTextBox ID="txtEntryDate"

 

 

EmptyMessage="" ToolTip="Entry date"

 

 

Text='<%#Bind("EntryDate") %>'

 

 

DataFormatString="{0:MM/dd/yyyy}"

 

 

readonly = "true"

 

 

runat="server" Width="100px"/>

This does not work and it is still displayed with the time. I do not want to use a date picker because this date should never be changed.
 Thank you.
Judith

 

Eon
Top achievements
Rank 1
 answered on 08 Dec 2015
3 answers
136 views

Hello Telerik,

 i have a RadGrid, all is fine, but only in chrome i have a issue. IE and FF havent the problem. As you can see in the screenshot chrome dont show the GridClientSelectColumn.I have tried a lot but without success.

Dou you have any idea, the solve the problem?

Thank you and best wishes,

Nick

<telerik:RadGrid ID="RadGrid1" runat="server"
    AllowSorting="True" AllowPaging="false"
    AutoGenerateColumns="False" GridLines="none" AllowMultiRowSelection="True"
    >
 
    <MasterTableView Width="100%" DataKeyNames="RecordId, MasterRelease, RefMasterId" Name="Master"
        >
        <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false"></CommandItemSettings>
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"></telerik:GridClientSelectColumn>
            <telerik:GridBoundColumn    HeaderText="Format"    UniqueName="RecordTypeName" DataField="RecordTypeName"  SortExpression="RecordTypeName" />
            <telerik:GridBoundColumn    HeaderText="Year"      UniqueName="RecordYear"     DataField="RecordYear"      SortExpression="RecordYear" />
            <telerik:GridBoundColumn    HeaderText="Record"    UniqueName="RecordName"     DataField="RecordName"      SortExpression="RecordName" />
            <telerik:GridBoundColumn    HeaderText="Label"     UniqueName="LabelName"      DataField="LabelName"       SortExpression="LabelName" />
            <telerik:GridBoundColumn    HeaderText="LabelNo"   UniqueName="LabelNumber"    DataField="LabelNumber"     SortExpression="LabelNumber" />
            <telerik:GridBinaryImageColumn HeaderText="Cover"  UniqueName="Cover"          DataField="Cover" ImageAlign="Middle" Resizable="False" ImageHeight="50px" ImageWidth="50px" Groupable="false" DataType="System.Byte" AutoAdjustImageControlSize="false" />
        </Columns>
    </MasterTableView>
    <ClientSettings >
        <Selecting AllowRowSelect="True"></Selecting>
    </ClientSettings>
</telerik:RadGrid>
Maria Ilieva
Telerik team
 answered on 08 Dec 2015
4 answers
155 views
I added a radtextbox but I've noticed that after I enter some text, if I click back on the textbox the cursor (after 1/2 second delay) jumps back to the beginning of the text area.

For exmaple if I type:
hello world(X) where (X) is where the cursor is, and then I click away and click back to the same textbox after 1/2 seconds it looks like:
(X)hello world

I'm using form decorator on the page with webblue.  Here is a snippet:


 

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

 

 

</telerik:RadScriptManager>

 

 

 

<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" Skin="WebBlue" DecoratedControls="All" />

 

 

 

 

<fieldset style="padding:10px"><legend></legend>

 

 

 

 

 

<table><tr><td>Company</td><td>

 

 

 

 

 

<telerik:RadTextBox runat="server" ID="txtCompanyName"></telerik:RadTextBox>

 

 

 

 

 

<asp:TextBox runat="server" ID="Test"></asp:TextBox>

 

 

 

 

 

</td><td>Contact</td><td><telerik:RadTextBox runat="server" ID="txtContact"></telerik:RadTextBox></td></tr>

 

 

 

 

 

<tr><td>Created From</td><td><telerik:RadDatePicker runat="server" ID="dtsStart"></telerik:RadDatePicker></td><td>Created To</td><td><telerik:RadDatePicker runat="server" ID="dtsEnd"></telerik:RadDatePicker></td></tr>

 

 

 

 

 

<tr><td>Status</td><td><telerik:RadComboBox SelectionMode="Single" ID="lstStatus"

 

 

runat="server" Skin="WebBlue"></telerik:RadComboBox></td></td><td colspan="2"><asp:Button ID="cmdSearch" runat="server" text="Search"/></td>

 

 

 

 

 

</table>

 

 

 

 

 

 

</fieldset>

 



As you can see I don't have CaretToBeginning for the SelectionOnFocus option.

Any idea whats going on?
Maria Ilieva
Telerik team
 answered on 08 Dec 2015
3 answers
114 views

Hi all,

 

Please help me to solve the attached issue.

Issue is dropdown list items box getting stick while scrolling and overlapping on other controls.

 

Viktor Tachev
Telerik team
 answered on 08 Dec 2015
3 answers
151 views

Hi

Is it possible to detect the first and last records while in the itemdatabound event - I need to handle the display for these t rows.

Andy

Viktor Tachev
Telerik team
 answered on 08 Dec 2015
1 answer
231 views

How can I changed the weekend days of the calendar?

The default weekend days are - Saturday and Sunday. I need to change them to be - Saturday and Friday.

I tried to define culture info:

        Dim culture As New CultureInfo("he-IL")    
        culture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday
        culture.DateTimeFormat.CalendarWeekRule = CalendarWeekRule.FirstFullWeek
        Calendar.CultureInfo = culture

 

I tried to change the weekend days on day render event:

    If e.Day.Date.DayOfWeek.Equals(DayOfWeek.Saturday) Or e.Day.Equals(DayOfWeek.Friday) Then
            e.Cell.CssClass = "rcWeekend rcDisabled"
        Else
            e.Cell.CssClass = ""
        End If

 

But the class is being override and changed to Saturday and Sunday is "rcWeekend "

 

Maria Ilieva
Telerik team
 answered on 08 Dec 2015
6 answers
526 views

I have an aspx page with RadTab (5 tabs) and RadMultiPage.

Each tab has a RadGrid which only binds (declaritively with DataSourceId) if its MultiPage is loaded.  If the user never clicks on tab 4 then the RadGrid4 never databinds.

That is good because it allows me to on_demand/lazy load the child collections on the business object that is driving the screen. The user only has to wait for the data they are interested in.  If they only visit Tab1 then only MainObject.ChildCollection1 lazy loads.  Nice and clean.

Business object is like this:

MainObject

   - ChildCollection1 (lazy load) - corresponds to Grid1

   - ChildCollection2 (lazy load) - corresponds to Grid2

...etc.

PROBLEM:  If user loads page and visits Tab1 and performs some db update on Grid1...then I have to reload MainObject after save.  Currently then I call Rebind() on all 5 grids.  This is expensive and the user may not have ever visited the other tabs.  Is there a way I can:

1.  Detect which grids have databound and only call Rebind() on those?

2.  Even better would be if I could "reset" the grid somehow so it doesn't think it has databound yet?

If there is a way to do #2 then I could only call Rebind() on the RadGrid that .Visible = True.

 

Something like this:

1. User performs some update that cause MainObject to reload from DB.

2. Detect which grid is currently visible and call Rebind on it

3. Reset all other grids so they think they have not databound yet

4. If user clicks on another tab after this...the corresponding RadGrid calls SelectObject on DataSource like normal

 

All updates are happening from RadAjaxPanel which contains tabs/multi-page/and grids

 

Thank you for your help.

Sean

 

 

Viktor Tachev
Telerik team
 answered on 08 Dec 2015
2 answers
379 views

Hello,

I have a grid that has a "GroupByExpression" that aggregates the sum of a particular column per grouped item.  This works just fine and I can make it so that the footer text displays something like "Total: 100".  However, the grid itself also has a footer that displays the total of all of the group totals at the very end.  I'm trying to figure out how to change the footer text for this footer value so that it's different from the other grouped footer texts (i.e Total Filters: 200).  In other words, I want the footer text for the subtotals to be different from the footer text for the Grand total.  Is this possible?  If so, then how can I do this?

 Thanks.

Viktor Tachev
Telerik team
 answered on 08 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?