Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
50 views
I think there may have been a change of behavior in how RadTextBox controls deal with multiline input in the latest quarterly release:

Previously, when a multiline value was supplied that included line breaks (when the user hits ENTER), the text posted back would include a '\r\n' to delineate the break. Now, the text posted back seems to include just the single '\n' character to delineate the break.

Telerik - can you please confirm the change in behavior? Is there any way of having the control go back to specifying a line break via '\r\n' instead? Need to know as we're going to have to change a lot of code in order to compensate. Please advise.

Thanks,

- Mike Oliver
Martin
Telerik team
 answered on 14 Sep 2012
1 answer
68 views

Hello Telerik Team,

I have used RadToolTip in my site extensively. Recently I have updated the Telerik version to “2012.2.724.35” and after that i am facing formatting issues related to RadToolTip.

Older Version we were using: 2011.1.519.35
New Version currently we are using: 2012.2.724.35

I have gone through on all release notes between the above two versions and as per the release note of “Q1 2012 (version 2012.1.215)” there is a improvement in default padding and/or margin to the content area and Tooltip title element for better UI and visualization. But these formatting improvements forced to change the other controls position present inside the RadToolTip control since in the new Telerik version the RadToolTip captures the more padding space which minimize the actual content area where the other controls are present.

To resolve this issue I have to change many of the pages in our project but it takes huge time to do changes for all RadToolTip.
Kindly suggest, is there any way to apply the older padding to RadToolTip or override the RadToolTip default padding?

Please suggest any workaround to get rid from these formatting issues.   

Thanks,
Ashish

Marin Bratanov
Telerik team
 answered on 14 Sep 2012
3 answers
186 views
Hi
i open a radwindow with radbutton1. I asign the OpenerElementID="radbutton1".
When i disable the radbutton1.enabled="false" i can still open the radwindow when i click on radbutton1.
Whats wrong here.
Thanks for any help
Marin Bratanov
Telerik team
 answered on 14 Sep 2012
1 answer
79 views
I am using AutoCompleteBox control
Inpage load I written below code

radtxtKeywordSearch.Filter =

 

RadAutoCompleteFilter.Contains;

 

radtxtKeywordSearch.Delimiter =

 

",";

 

 

 

string strcon = System.Configuration.ConfigurationManager.ConnectionStrings["con"].ToString();

 

 

 

SqlConnection con = new SqlConnection(strcon);

 

con.Open();

 

 

SqlDataAdapter adp = new SqlDataAdapter("select keywordsearch from tblkeywordsearch", con);

 

 

 

DataSet ds = new DataSet();

 

adp.Fill(ds);

radtxtKeywordSearch.DataSource = ds.Tables[0];

radtxtKeywordSearch.DataTextField =

 

"keywordsearch";

 

radtxtKeywordSearch.DataBind();

My query is in the textbox If I am entering example  "real"
then it will display what r the related words is there like intellisense  (like google )
if we want from that list we will select if not we will press Enter button
so whatever we entered that text only will be in the textbox that is scenario I need
but for me it is not like that
when i entered "real" it will display relatedwords right, first word is selecting
I entered " real"
            real player
            real estate
            realtek
is coming then i click enter it is selecting real player
but i dont want like i need whatever I entered  that only should be there when i click enter button
please suggest me ASAP.


Ivana
Telerik team
 answered on 14 Sep 2012
1 answer
146 views
Hello,

Can someone help me to achieve this functionality using client side?

I have a radcombobox and a radlistbox that was initially populated on page load.  Radcombobox has an attribute named "Attribute1".  When the selected index of the radcombobox is greater than 0, the radlistbox will be cleared out and new items will be added to the radlistbox which is the value of the custom attribute of the selected radcombobox item, "Attribute1".  This works fine.  My issue is when I set the radcombox selected index back to 0, I can't restore the previous value of the radlistbox before it was cleared out.

Thanks!
Ivana
Telerik team
 answered on 14 Sep 2012
1 answer
74 views
Im building a web app using MVC3 and I need to include a scheduler.  Is it possible somehow to incorporate the RadScheduler in an MVC app ?  Is so, are there any examples I could follow ?
Plamen
Telerik team
 answered on 14 Sep 2012
2 answers
86 views
Hi guys,

Is it possible to make the HeaderContextMenu to do a postback when you check/uncheck any Column submenu item to show/hide a column?

I need the postback to be able to save the column visibility state on the user's profile. I'm using this code to do it so.

I have tried attaching a new handler to the RadGrid.HeaderContextMenu.ItemClick event, but this event doesn't fire when checking/unchecking a column in the submenu.

Thank you in advance,
Joaquín
Joaquín
Top achievements
Rank 2
 answered on 14 Sep 2012
1 answer
310 views
Hello,

recently i have been working on calebdar functionality ,in datepicker calenadar on header where monthname is displayed if we click on that header a  table is opened which contains Today ok cancel buttons along with year names, now i want to put a down arrow button on datepicker calendar header adjcent to monthname, so that we click on that the popup having today ,ok,cancel will be opened how to add that button on header how to acheive this ,i am sending calendar image where i wanted to add taht button marked in it in ellipse ,please respond .

Regards,
madhukar.
Princy
Top achievements
Rank 2
 answered on 14 Sep 2012
1 answer
75 views
I'm creating my RadChart progrmatically on postback and making a curve like this,

Dim radChart As New Telerik.Web.UI.RadChart()
  
Dim chartSeries2 As New Telerik.Charting.ChartSeries()
chartSeries2.Type = Telerik.Charting.ChartSeriesType.Line
chartSeries2.Appearance.LabelAppearance.Visible = False
chartSeries2.Appearance.LineSeriesAppearance.Color = System.Drawing.ColorTranslator.FromHtml("#123252")
  
Dim csItem As New Telerik.Charting.ChartSeriesItem
Dim csItems As New Telerik.Charting.ChartSeriesItemsCollection
  
For i = 5 To 1000
    csItem = New Telerik.Charting.ChartSeriesItem
    csItem.XValue = i
  
    'lcyNet(i) is calculated each time based on form input values
    csItem.YValue = lcYNet(i)                      
  
    csItems.Add(csItem)
Next i
  
chartSeries2.AddItem(csItems)
radChart.Series.Add(chartSeries2)


This works perfectly first time, the problem occurs when I change values and resubmit the form. The axis and curve don't update, even though my values and the ChartSeriesItem YValues definitely do.

I tried adding the current time to the end of the ChartTitle text and that updates OK every time.
Peshito
Telerik team
 answered on 14 Sep 2012
1 answer
71 views

This part of our app allows users to have video file associated with a case.  The video file is on disk, and a database record has the metadata for the video.  When they edit the record in the RadGrid, the edit template contains a video tag so they can view the video.  This works well in the basic sense, the path is pulled from the database and put in the video tag when you edit the record.

Then I tried to get clever.  I found this: http://videojs.com/ which adds some functionality.  If you read their directions, if you have an ajax situation, you need to call a js function to configure your video tag.  So I added that in a RadScriptBlock in the Edit template.  The problem is, the script only works some of the time.  It always works on the first record you edit, but then may or may not if you open other records to edit.  I've tried various things, but I don't really know what to do to get that _V_ function to be called every time the grid edits.

Any suggestions?  If nothing else, here's a good sample of how to show a video with html 5 inside a RadGrid.

All this below is inside of an update panel.

At the top of the page, the video.js reference:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script src="http://vjs.zencdn.net/c/video.js" type="text/javascript"></script>
</telerik:RadScriptBlock>

And the grid:

<telerik:RadGrid ID="CaseVideosRadGrid" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="VideosSqlDataSource" GridLines="None">
<MasterTableView DataKeyNames="VideoID" DataSourceID="VideosSqlDataSource"  AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" EditMode="PopUp">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column" ItemStyle-Width="50px" HeaderStyle-Width="50px">
            <HeaderStyle Width="50px"></HeaderStyle>
            <ItemStyle Width="50px"></ItemStyle>
        </telerik:GridEditCommandColumn>
        <telerik:GridButtonColumn ConfirmText="Delete this Video? This cannot be undone." ConfirmDialogType="RadWindow"
            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" Width="50" />
        </telerik:GridButtonColumn>
        <telerik:GridBoundColumn DataField="VideoID" DataType="System.Int32" FilterControlAltText="Filter VideoID column" HeaderText="VideoID" ReadOnly="True" SortExpression="VideoID" UniqueName="VideoID" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoAdrIdx" DataType="System.Int32" FilterControlAltText="Filter videoAdrIdx column" HeaderText="Address" SortExpression="videoAdrIdx" UniqueName="videoAdrIdx" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoInspectionTypeIdx" DataType="System.Int32" FilterControlAltText="Filter videoInspectionTypeIdx column" HeaderText="Inspection Type" SortExpression="videoInspectionTypeIdx" UniqueName="videoInspectionTypeIdx" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoDiskFilename" FilterControlAltText="Filter videoDiskFilename column" HeaderText="Video" SortExpression="videoDiskFilename" UniqueName="videoDiskFilename">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoBatch" DataType="System.Int32" FilterControlAltText="Filter videoBatch column" HeaderText="Batch" SortExpression="videoBatch" UniqueName="videoBatch" ReadOnly="True">
            <ItemStyle HorizontalAlign="Center" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoCaption" FilterControlAltText="Filter videoCaption column" HeaderText="Caption" SortExpression="videoCaption" UniqueName="videoCaption">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoLocation" FilterControlAltText="Filter videoLocation column" HeaderText="Location" SortExpression="videoLocation" UniqueName="videoLocation">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoFieldNotes" FilterControlAltText="Filter videoFieldNotes column" HeaderText="Field Notes" SortExpression="videoFieldNotes" UniqueName="videoFieldNotes" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="videoCreatedOn" DataType="System.DateTime" FilterControlAltText="Filter videoCreatedOn column" HeaderText="Date" SortExpression="videoCreatedOn" UniqueName="videoCreatedOn" DataFormatString="{0:d}" ReadOnly="True">
        </telerik:GridBoundColumn>
   </Columns>
 
<EditFormSettings CaptionFormatString="Edit Info for Video: {0}" CaptionDataField="videoDiskFilename" EditFormType="Template">
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
    <FormTemplate>
        <br />
        <table cellspacing="2" border="0" width="100%">
            <tr>
                <td rowspan="5">
                    <video id='example_video_<%# Eval("VideoID") %>' class="video-js vjs-default-skin" controls width="320" height="240" preload="auto">
                        <source type="video/mp4" src='<%# Eval("FullPath") %>'>
                    </video>
                    <telerik:RadScriptBlock runat="server">
                     <script type="text/javascript">
 
                         var myPlayer = _V_('example_video_<%# Eval("VideoID") %>');
 
                    </script>
                    </telerik:RadScriptBlock>
                </td>
                <td>
                    <table cellspacing="2" border="0" width="100%">
                        <tr>         
                            <td class="formlabel">
                                Inspection:
                            </td>
                            <td>
                                <asp:DropDownList ID="InspectionDropDownList" runat="server" DataSourceID="MiscListSqlDataSource" DataTextField="mscName" DataValueField="mscIdx" SelectedValue='<%# Bind( "videoInspectionTypeIdx") %>' AppendDataBoundItems="True">
                                    <asp:ListItem Value="-1" Text="---"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>         
                            <td class="formlabel">
                                Location:
                            </td>
                            <td>
                                <asp:TextBox ID="LocationTextBox" runat="server" Text='<%# Bind( "videoLocation") %>' MaxLength="255"></asp:TextBox>                
                            </td>
                        </tr>
                        <tr>         
                            <td class="formlabel">
                                Address:
                            </td>
                            <td>
                                 <asp:DropDownList ID="videoAddressDropDownList" runat="server" DataSourceID="AddressSqlDataSource" DataTextField="adrFullname" DataValueField="adrIdx" AppendDataBoundItems="True"  SelectedValue='<%# Bind( "videoAdrIdx") %>'>
                                    <asp:ListItem Value="-1" Text="---"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                
                </td>
            </tr>
        </table>
        <table cellspacing="2" border="0" width="100%">
             <tr>         
                <td class="formlabel">
                    Caption:
                </td>
                <td >
                    <asp:TextBox ID="CaptionTextBox" runat="server" Text='<%# Bind( "videoCaption") %>' Width="500" MaxLength="255"></asp:TextBox>                
                </td>
            </tr>
             <tr>         
                <td class="formlabel">
                    Field Notes:
                </td>
                <td >
                    <asp:TextBox ID="FieldNotesTextBox" runat="server" Text='<%# Bind( "videoFieldNotes") %>' Width="500" TextMode="MultiLine"></asp:TextBox>                
                </td>
            </tr>
       </table>
        <table style="width: 100%">
            <tr>
                <td align="right" colspan="2">
                    <asp:Button ID="Button1" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
                        runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>
                    </asp:Button
                    <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                    </asp:Button>
                </td>
            </tr>
        </table>
    </FormTemplate>
    <PopUpSettings Width="800" Modal="true"  />
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
Antonio Stoilkov
Telerik team
 answered on 14 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?