Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
240 views
Hello,

I'm having problems getting the value of RadDatePicker and using that value as an input for my SQL statement.  The query works if I replace the variables to normal values.

Here is my code snippet.

<asp:SqlDataSource ID="SqlDataSource" runat="server"
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
        SelectCommand="SELECT column, column, column, column, column
FROM table A, table B
WHERE (A.ACCEPTANCE_DATE >= TO_DATE(:fromDate, 'dd-mon-yyyy'))
AND (A.ACCEPTANCE_DATE <= TO_DATE(:toDate, 'dd-mon-yyyy'))
AND column = column
AND (column LIKE 'A')
ORDER BY column, column">
         
        <SelectParameters>
            <asp:ControlParameter ControlID="radDatePickerFrom" Name="fromDate" />
            <asp:ControlParameter ControlID="radDatePickerTo" Name="toDate" />
        </SelectParameters>
   </asp:SqlDataSource>
Vasil
Telerik team
 answered on 28 Oct 2011
1 answer
75 views
I just started today on trying out Telerik's controls for Visual Studio 2010. I've downloaded the Ultimate Collection for .Net. I have used LINQ-to-SQL and ASP.NET Configuration to setup roles and membership in the past with all my dynamic asp.net website. Are there some tools or other easier ways of setting up membership and roles when using telerik tools?

Any pointers or suggestions is much appreciated.
Sebastian
Telerik team
 answered on 28 Oct 2011
2 answers
316 views
Hi Team,
I have a aradgrid with some bound columns, CheckBox column and ClientSelect Column
What I want is, when I select All Rows (by clicking select all), i dont want some of the rows to get selected based on the values in my CheckBox column.
And I want this functionality from client side.
I tried this with server side DataBound Event and it worked (though not completly.)

here is my aspx :
<telerik:RadGrid ID="rgProjectBudget" runat="server" AllowFilteringByColumn="true" AllowMultiRowSelection="true" AllowPaging="true"
                                            OnNeedDataSource="rgProjectBudget_NeedDataSource" OnDeleteCommand="rgProjectBudget_DeleteCommand" PageSize="50"
                                            OnItemDataBound="rgProjectBudget_ItemDataBound" OnPreRender="rgProjectBudget_PreRender" PagerStyle-AlwaysVisible="true" >
                                            <ClientSettings  Selecting-AllowRowSelect="true">
                                                <ClientEvents OnRowSelected="RowSelected" />
                                            </ClientSettings>
                                    <MasterTableView EditMode="InPlace">
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="COABudgetDetailID" DataType="System.Int32"
                                                                HeaderText="COABudgetDetailID" Display="false"
                                                                UniqueName="COABudgetDetailID" AutoPostBackOnFilter="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="EntityKeyName" DataType="System.String" FilterControlWidth="40%"
                                                                HeaderText="Project Name" AllowFiltering="true" AutoPostBackOnFilter="true"
                                                                CurrentFilterFunction="Contains" UniqueName="EntityKeyName">
                                            <HeaderStyle Width="32%" HorizontalAlign="Left" />
                                            <ItemStyle  Width="32%" HorizontalAlign="Left" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ChartOfAccountSetDetailValueCode" DataType="System.String"
                                                                HeaderText="Project Heads" AllowFiltering="true" AutoPostBackOnFilter="true" FilterControlWidth="30%"
                                                                CurrentFilterFunction="Contains" UniqueName="ChartOfAccountSetDetailValueCode">
                                             <HeaderStyle Width="10%" HorizontalAlign="Left" />
                                            <ItemStyle  Width="10%" HorizontalAlign="Left" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ChartOfAccountSetDetailDescription" DataType="System.String"
                                                                 HeaderText="Description" AllowFiltering="true" AutoPostBackOnFilter="true"
                                                                 CurrentFilterFunction="Contains" UniqueName="ChartOfAccountSetDetailDescription"
                                                                 FilterControlWidth="60%">
                                            <HeaderStyle Width="20%" HorizontalAlign="Left" />
                                            <ItemStyle  Width="20%" HorizontalAlign="Left" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="QuotedValue" HeaderText="Quoted Amount" DataField="QuotedValue"
                                                                 CurrentFilterFunction="EqualTo" AllowFiltering="true" DataType="System.Double" FilterControlWidth="30%"
                                                                 AutoPostBackOnFilter="true">
                                            <HeaderStyle Width="10%" HorizontalAlign="Left" />
                                            <ItemStyle  Width="10%" HorizontalAlign="Left" />
                                        </telerik:GridBoundColumn>
                                         <telerik:GridTemplateColumn HeaderText="Project Budget" UniqueName="SecondaryEntityBudget" DataField="SecondaryEntityBudget"
                                                                    CurrentFilterFunction="Contains" AllowFiltering="true" AutoPostBackOnFilter="true">
                                                                    <ItemStyle Width="10%" />
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtBudgetAmount" runat="server" Width="70px"
                                                        Text='<%# DataBinder.Eval(Container,"DataItem.SecondaryEntityBudget") %>' />
                                            </ItemTemplate>
                                             <HeaderStyle Width="10%" HorizontalAlign="Left" />
                                            <ItemStyle  Width="10%" HorizontalAlign="Left" />
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn UniqueName="COAActualAmount" HeaderText="Actual Amount" DataField="COAActualAmount"
                                                                 CurrentFilterFunction="EqualTo" AllowFiltering="true" DataType="System.Double" FilterControlWidth="30%"
                                                                 AutoPostBackOnFilter="true">
                                            <HeaderStyle Width="10%" HorizontalAlign="Left" />
                                            <ItemStyle  Width="10%" HorizontalAlign="Left" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn HeaderText="Supplementary Budget1" UniqueName="SupplementaryBudget1" Display="true" DataField="SupplementaryBudget1"
                                                                    CurrentFilterFunction="Contains" AllowFiltering="true" AutoPostBackOnFilter="true">
                                                                    <ItemStyle Width="20%" />
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtSupplementaryBudget1" runat="server" Width="70px" Enabled="false"
                                                        Text='<%# DataBinder.Eval(Container,"DataItem.SupplementaryBudget1") %>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderText="Supplementary Budget2" UniqueName="SupplementaryBudget2" Display="true" DataField="SupplementaryBudget2"
                                                                    CurrentFilterFunction="Contains" AllowFiltering="true" AutoPostBackOnFilter="true">
                                            <ItemStyle Width="20%" />
                                            <ItemTemplate>
                                               <asp:TextBox ID="txtSupplementaryBudget2" runat="server" Width="70px" Enabled="false"
                                                        Text='<%# DataBinder.Eval(Container,"DataItem.SupplementaryBudget2") %>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn DataField="StatusID" DataType="System.Int32"
                                                                 HeaderText="StatusID" UniqueName="StatusID"
                                                                 Display="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridHyperLinkColumn DataTextField="StatusName" DataType="System.String" ItemStyle-HorizontalAlign="Center"
                                                                 HeaderText="Status" UniqueName="StatusName" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
                                                                 DataNavigateUrlFields="COABudgetDetailID,SecondaryEntityBudget,SupplementaryBudget1,SupplementaryBudget2"
                                                                 DataNavigateUrlFormatString="javascript:CheckBudgetAmount({0},{1},{2},{3});" >
                                        </telerik:GridHyperLinkColumn>
                                        <telerik:GridBoundColumn DataField="SecondaryEntityBudgetApproved" DataType="System.Double" Display="false"
                                                                 HeaderText="SecondaryEntityBudgetApproved" UniqueName="SecondaryEntityBudgetApproved">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SupplementaryBudget1Approved" DataType="System.Double" Display="false"
                                                                 HeaderText="SupplementaryBudget1Approved" UniqueName="SupplementaryBudget1Approved">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SupplementaryBudget2Approved" DataType="System.Double" Display="false"
                                                                 HeaderText="SupplementaryBudget2Approved" UniqueName="SupplementaryBudget2Approved">
                                        </telerik:GridBoundColumn>
                                        <%--<telerik:GridBoundColumn DataField="StatusName" DataType="System.String"
                                                                 HeaderText="Status" UniqueName="Status">
                                        </telerik:GridBoundColumn>--%>
                                          
                                        <telerik:GridTemplateColumn HeaderText="Not Applicable" UniqueName="IsBudgetNotApplicable" FilterControlWidth="20%"
                                                                    CurrentFilterFunction="Contains" AllowFiltering="true" AutoPostBackOnFilter="true" Display="false">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkApplicable" runat="server" Checked='<%# DataBinder.Eval(Container,"DataItem.IsBudgetNotApplicable") %>' />
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Left" Width="5%"/>
                                            <HeaderStyle  Width="5%" />
                                        </telerik:GridTemplateColumn>
                                          
                                        <telerik:GridCheckBoxColumn DataField="IsParent" UniqueName="IsParent" HeaderText="IsParent" Visible="true">
                                        </telerik:GridCheckBoxColumn>
                                          
                                        <telerik:GridClientSelectColumn HeaderText="Select" UniqueName="Select">
                                        </telerik:GridClientSelectColumn>
                                        <telerik:GridButtonColumn CommandName="Delete" HeaderText="Delete?"
                                            Text="Delete" UniqueName="DeleteCommandColumn" ButtonType="ImageButton" 
                                                        ConfirmText="Are you sure you want to delete ?">
                                            <ItemStyle HorizontalAlign="Left" Width="5%"/>
                                            <HeaderStyle Width="5%" />
                                        </telerik:GridButtonColumn>
                                    </Columns>
                                </MasterTableView>
                           </telerik:RadGrid>


And I have reached upto this :

 

function RowSelected(sender, eventArgs)

 

{

 

var grid = sender;

 

 

var MasterTable = grid.get_masterTableView();

 

 

var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];

 

 

var cell = MasterTable.getCellByColumnUniqueName(row, "IsParent");

 

 

//here cell.innerHTML holds the value of the cell

 

alert(cell.innerHTML);

 

// cell.innerHTML doe not return value of CheckBox Column

 

 

// but returns value if its a bound column

 

}

Waiting for your reply.

Regards,
Lok..

Vasil
Telerik team
 answered on 28 Oct 2011
1 answer
50 views
Some mobile device has special markup without HTML standard markup.
For example, <xyz>aaaa</xyz>

In the Internet explorer browser:
  1. switch to "HTML mode" of the Editor
  2. Add "<xyz>aaaa</xyz>"
  3. switch to design mode and back to html mode

You can see "<xyz/>aaaa" instead of  <xyz>aaaa</xyz>
Rumen
Telerik team
 answered on 28 Oct 2011
2 answers
169 views
Hello,

I have a page with ListView and filters surrounded with RadAjaxPanel (let's say 'Page A'). If any of filters changes, I save the previous state in history (using RadScriptManager AddHistoryPoint). It all works just fine, history is being populated every time I change filter(s) and after clicking browser's back button, ListView loads data with previous filters.
The problem comes up, when I navigate from 'Page A' to any other page in my web project. Then if browser's back button is hitted, ListView loads datasource which has been loaded at the beggining (before any of history points were made) and after approximately 1 second, loads datasource to the one stored in history.
I want, that only datasource from the history is loaded, without the datasource from the start.

Thanks for your reply,
Aleš.
Jure
Top achievements
Rank 1
 answered on 28 Oct 2011
9 answers
298 views
Hi,

Is it possible to set the line height for rows that are marked as separators?
Separator rows have the same height as other rows, but I would like to reduce them if possible.

I have tried altering the css file by adding a height to rcbseparator - but this had no effect.  The combobox is being used for both Template and Non-Template dropdowns.

Thanks
Shimon
Kate
Telerik team
 answered on 28 Oct 2011
1 answer
129 views
In FireFox the image size is visible when drag handle is dragged.
How can this be accomplished in IE?

BR,
Marc
Rumen
Telerik team
 answered on 28 Oct 2011
1 answer
67 views
Here is a sample page:  See the environment information in the UL tag in the markup sample.
Steps to reproduce in IE8:
. Select Image Manager Icon
. Click Cancel button on the image manager dialog
Notice the Scroll bar vanishes.  How can I fix this?  Thanks.

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadSplitter ID="splitterOuter" Height="99.9%" Width="99.9%" ResizeMode="Proportional"
            runat="server">
            <telerik:RadSplitBar ID="spVertical2" CollapseMode="Both" runat="server" />
            <telerik:RadPane ID="paneRightOuter" Scrolling="Y" runat="server">
                <telerik:RadSplitter ID="spHorizontalOuter" ResizeMode="AdjacentPane" LiveResize="true"
                    Width="100%" Orientation="Horizontal" runat="server">
                    <telerik:RadPane ID="rPaneTop" runat="server" Scrolling="None">
                        <div>
                        <h2>Environment:</h2>
                            <ul>
                                <li>RadEditor.dll Version 7.3.1.0 </li>
                                <li>TeleriK.Web.UI Version 2011.1.315.40</li>
                                <li>Telerik.Web.Design Version 2011.1.315.40 </li>
                                <li>jQuery-1.4.2.js </li>
                                <li>Visual Studio 2010 </li>
                                <li>IE8 </li>
                            </ul>
                        </div>
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="spHorizontalInner" AdjacentPanesNames-BottomPaneName="rpPaneBot"
                        runat="server" CollapseMode="Both" />
                    <telerik:RadPane ID="rpPaneBot" Scrolling="none" runat="server">
                        <telerik:RadEditor runat="server" ID="RadEditor1" Height="400px" SkinID="DefaultSetOfTools">
                            <Tools>
                                <telerik:EditorToolGroup Tag="FileManagers">
                                    <telerik:EditorTool Name="ImageManager" />
                                </telerik:EditorToolGroup>
                                <telerik:EditorToolGroup>
                                    <telerik:EditorTool Name="Bold" />
                                    <telerik:EditorTool Name="Italic" />
                                    <telerik:EditorTool Name="Underline" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="ForeColor" />
                                    <telerik:EditorTool Name="BackColor" />
                                    <telerik:EditorSeparator />
                                    <telerik:EditorTool Name="FontName" />
                                    <telerik:EditorTool Name="RealFontSize" />
                                </telerik:EditorToolGroup>
                            </Tools>
                            <ImageManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" />
                            <Content>
               The tight integration with ASP.NET AJAX and the powerful new capabilities make Telerik's WYSIWYG Editor a flexible and lightweight component, turning it into the fastest loading Web Editor. Among the hottest features are:
                <ul>
                    <li><em>Single-file, drag-and-drop deployment</em></li>
                    <li><em>Built on top of ASP.NET AJAX</em></li>
                    <li><em>Unmatched loading speed with new semantic rendering </em></li>
                    <li><em>Full keyboard accessibility</em></li>
                    <li><em>Flexible Skinning mechanism</em></li>
                    <li><em>Simplified and intuitive toolbar configuration</em></li>
                    <li><em>Out-of-the-box XHTML-enabled output</em></li>
                </ul>
                            </Content>
                        </telerik:RadEditor>
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

Rumen
Telerik team
 answered on 28 Oct 2011
1 answer
146 views
Hi,

I've got a page with a RadAjaxManager on with an OnResponseEnd method. It had a single Formview on the page, ajaxified by the RadAjaxManager. In this scenario, the OnResponseEnd method of the RadAjaxManager was called when the Formview updated, as expected.

I've now placed a RadTabStrip on the page, with an associated RadMultiPage control. I've added a RadPageView to the RadMultiPage, and placed my Formview in the RadPageView. Now, the Formview still appears to be ajaxified by the RadAjaxManager, but the OnResponseEnd javascript method is never fired.

Any ideas?

Thanks,

Matt
Maria Ilieva
Telerik team
 answered on 28 Oct 2011
3 answers
262 views
I using following code to implement checkAll functionality using a header template checkbox.it works fine for the current page when pagination is enabled.i need to check all checkboxs in all the pages


 function CheckHeaderCheckBoxIfNeeded(radGrid) {
                var checkHeaderCheckBox = true;
                var dataItems = radGrid.get_masterTableView().get_dataItems();
              
                for (var i = 0; i < dataItems.length; i++) {
                    var dataItem = dataItems[i];
                    var row = dataItem.get_element();
                    var ckeckBox = row.children[0].children[0];
                    if (!ckeckBox.checked) {
                        checkHeaderCheckBox = false;
                    }
                }


                SelectCheckBox(checkHeaderCheckBox);
            } 
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?