Telerik Forums
UI for ASP.NET AJAX Forum
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
1 answer
125 views
HI, I have a project in Visual Studio 2012 and fw 4, I'm using some grids between entity framework and generated automatic crud operations, when I test the App in my pc this work fine, in the azure emulator work fine too, bue when I deploy to the cloud services the App does not work, and I get the next error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.



 But if I only used the grid to show data the App go fine!



Any ideas??



Thank you
Tsvetoslav
Telerik team
 answered on 14 Sep 2012
1 answer
91 views
Would anyone be willing to show me how to write the code to use SPContext in order to get the UserName (without Domain) of the currently logged in SharePoint user, and then to Query a SQL Server external content source for items in a field called "Assignee" where the logged in name is contained in the Assignee? 

Further, could you then tell me how to load that query into a RadGrid by default.... But to be able to clear the filter (or apply a new one) when desired?
Marin
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?