Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Hi,

I am trying to use the radfilter as a rules engine, where the user can create expression and check whether the object properties matches whats been defined in the radfilter.

Is it possible to apply the radfilter expression against an collection or a single object.

Say I have a user class with the following properties.

Id
Name
DateOfBirth
Age ( Calculated from DateOfBirth)

I want to build the expression Age > 18 and apply it against the List<User> or even an User object.

Thanks

Tsvetina
Telerik team
 answered on 04 Apr 2012
1 answer
310 views
Hi,
I have
 a combobox with a treeview ( checkbox activated). My problem is when a user selects multiple items he has to click somewhere on the page to exit the combobox, which is not very practical.
can I have two buttons "OK" "Cancel" in the combox? Something like that :
http://www.hostingpics.net/viewer.php?id=326557ButtoninCombo.png  

Thank you very much. 


Princy
Top achievements
Rank 2
 answered on 04 Apr 2012
2 answers
90 views
Can we have 3d look of rad grid rows. 
and can we have two column view for rad grid rows. and have drag and drop feature with in grid columns. and rows.

Please find sample file attached.

Thanks and Regards
raman singla


Tsvetina
Telerik team
 answered on 04 Apr 2012
3 answers
262 views
Hi,
I want to dynamically insert a table in  the cells of a Grid Column.
Please tell me how can this be done on item_bound event ?

below is the designer code of the grid.

<

 

 

telerik:RadGrid AutoGenerateColumns="False" ID="RadGridAssignment" AllowFilteringByColumn="False"

 

 

 

AllowSorting="True" PageSize="50" ShowFooter="False" AllowPaging="True" runat="server"

 

 

 

EnableLinqExpressions="False" EnableHeaderContextMenu="False" EnableHeaderContextFilterMenu="False"

 

 

 

OnDeleteCommand="RadGridAssignment_DeleteCommand" OnNeedDataSource="RadGridAssignment_NeedDataSource"

 

 

 

OnItemDataBound="RadGridAssignment_ItemDataBound" OnItemCreated="RadGridAssignment_ItemCreated"

 

 

 

OnCancelCommand="RadGridAssignment_CancelCommand" ShowGroupPanel="True" OnItemCommand="RadGridAssignment_ItemCommand"

 

 

 

OnUpdateCommand="RadGridAssignment_UpdateCommand" OnPreRender="RadGridAssignment_PreRender"

 

 

 

EnableEmbeddedSkins="True" EnableTheming="True" Skin="Office2007" GridLines="None"

 

 

 

HeaderStyle-HorizontalAlign="Left" HorizontalAlign="Center">

 

 

 

<MasterTableView AllowFilteringByColumn="False" AllowSorting="True" AllowMultiColumnSorting="True"

 

 

 

AllowPaging="True" TableLayout="Auto" CommandItemDisplay="Top" InsertItemDisplay="Top"

 

 

 

Dir="LTR" EditMode="EditForms" DataKeyNames="ObjectId,ParentObjectId,AssignmentId"

 

 

 

GridLines="None" EnableTheming="True">

 

 

 

<HeaderStyle Font-Bold="true" />

 

 

 

<CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="false" AddNewRecordText=""

 

 

 

AddNewRecordImageUrl="~/client/Images/Edit.gif" />

 

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" EditImageUrl="~/client/Images/Edit.gif"

 

 

 

EditText="Edit" ItemStyle-Width="20" HeaderStyle-Width="35">

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridButtonColumn CommandName="Delete" ImageUrl="~/client/Images/Delete.gif"

 

 

 

ButtonType="ImageButton" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"

 

 

 

Text="Delete" UniqueName="Delete" ItemStyle-Width="20" HeaderStyle-Width="35">

 

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridBoundColumn DataField="ObjectName" HeaderText="ObjectName" SortExpression="ObjectName"

 

 

 

UniqueName="ObjectName">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="AssessorName" HeaderText="Assessor" SortExpression="AssessorName"

 

 

 

UniqueName="AssessorName">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Reviewer1" HeaderText="ReviewerLevel1" SortExpression="ReviewerLevel1"

 

 

 

UniqueName="Reviewer1">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Reviewer2" HeaderText="ReviewerLevel2" SortExpression="ReviewerLevel2"

 

 

 

UniqueName="Reviewer2">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Reviewer3" HeaderText="ReviewerLevel3" SortExpression="ReviewerLevel3"

 

 

 

UniqueName="Reviewer3">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Reviewer4" HeaderText="ReviewerLevel4" SortExpression="ReviewerLevel4"

 

 

 

UniqueName="Reviewer4">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Reviewer5" HeaderText="ReviewerLevel5" SortExpression="ReviewerLevel5"

 

 

 

UniqueName="Reviewer5">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="ParentObjectName" DataField="ParentObjectName"

 

 

 

GroupByExpression="ParentObjectName Group By ParentObjectName " Visible="false">

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="ParentObjectTypeId" UniqueName="ParentObjectTypeId"

 

 

 

Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

Tsvetina
Telerik team
 answered on 04 Apr 2012
0 answers
50 views
Hi,

I'm using javascript to dynamically bind data to data source on text change of a rad text box  to display search results. Every thing works find except for when I get to the data bind it throws the following error: "Microsoft JScript runtime error: Unable to get value of the property 'indexOf': object is null or undefined" Through debug mode I can see that I am getting the results I want from the database but binding is giving me a problem that I unable to solve so far. Here is the code:
function SearchValueChanged(sender, args) {
 
       InvoiceWebService.SearchInvoice(3, 36, updateGrid, OnFail);
       return false;
   }
   function OnFail(result) {
       alert(result);
   }
   function updateGrid(result) {
 
       var tableView = $find("<%= grdInvoices1.ClientID %>").get_masterTableView();
       tableView.set_dataSource(result);
       tableView.dataBind();
 
   }
Thanks,
Ron
Ron
Top achievements
Rank 1
 asked on 04 Apr 2012
3 answers
64 views
Hello

System: ASP.NET AJAX v2012.1.215.40
Visual Studio 2010

We use ShowInsertItem(DefaultValues) to display the <InsertItemTemplate> and give the possibility to insert new data with default values.
After inserted data from the <InsertItemTemplate>, we keep this template open by putting the option RadListViewInsertedEventArgs.KeepInInsertMode of the RadListView ItemInserted event to true.

Everything works fine, except that we want to continue to display the default values in the newly <InsertItemTemplate>,.(after the posback), Currently, the default values are not displayed anymore.

Is there an option to keep these default values in this case?

Best regards,
Alain
Maria Ilieva
Telerik team
 answered on 04 Apr 2012
1 answer
85 views
Hello,
I've created an ASPX page inheriting from Master Page to test a modal tooltip. In the Modality Tooltip demo the browser window is faded out and only the tooltip can be accessed by the user. With my code below however the browser window isn't faded out and the button for example can still be accessed and i get this run time error: "Microsoft JScript runtime error: 'Sys' is undefined"

Do you have any idea about a solution to this ?

Thanks for help!

<%@ Page Title="" Language="C#" MasterPageFile="~/FunctionalityMasterPage.master"
    AutoEventWireup="true" CodeFile="Test_Wait.aspx.cs" Inherits="Test_Wait" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="Server">
    <script type="text/javascript">
        //<![CDATA[
        var toHide = false;
        function OnClientBeforeHide(sender, args) {
            if (!toHide) args.set_cancel(true);
        }
  
        function OnClientBeforeShow(sender, args) {
            sender.set_modal(sender.get_modal());
        }
  
        //Attach to event that will indicate when ajax request is complete
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest
    (
        function (sender, args) {
            toHide = false;
            if (args.get_postBackElement().id == "Button1") {
                var tooltip = $find("<%=RadToolTip1.ClientID%>");
                tooltip.show();
            }
        }
    );
        function GetActiveToolTip() {
            var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
            return tooltip;
        }
        //Attach to event that will indicate when ajax request is complete
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest
    (
        function (sender, args) {
            var tooltip = GetActiveToolTip();
            if (tooltip != null && tooltip.get_id() == "RadToolTip1") {
                toHide = true;
                tooltip.hide();
            }
        }
    );  
  
    //]]>
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="Server">
 <telerik:RadToolTip ID="RadToolTip1" IsClientID="false" runat="server" Modal="true"
        ShowEvent="FromCode" Position="Center" RelativeTo="BrowserWindow" OnClientBeforeShow="OnClientBeforeShow"
        OnClientBeforeHide="OnClientBeforeHide" Width="140px" EnableShadow="true" HideEvent="FromCode">
        <img src='Images/Icons/loading.gif' alt="loading" style="margin-left: 35px;" />
    </telerik:RadToolTip>
    <asp:Panel ID="Panel1" runat="server" BorderColor="White">
        <table>
            <tr>
                <td style="width: 50px;">
                </td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:ImageButton ID="Button1" ImageUrl="Images/Icons/send_sms.png" runat="server"
                                OnClick="Button1_Click" CssClass="button" Style="display: block; float: left;" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td style="width: 50px;">
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
Marin Bratanov
Telerik team
 answered on 04 Apr 2012
1 answer
183 views
Hello,

I have data which should pass to print pdf. I want to display multiple Rad window but i will pass the values through for loop in another page and open that rad Window in another page.

Could we open the rad window with different  data.

I used the following code:
Session["RTF"] = strPatientSummary;
            if (Session["RTF1"] != "" && intCount==0)
                    {
                        RadWindow2.NavigateUrl = "~/Editor/PrintNote.aspx?Count" + intCount;
                        RadWindow2.Height = 600;
                        RadWindow2.Width = 950;
                        RadWindow2.Top = 40;
                        RadWindow2.Left = 100;
                        RadWindow2.Behavior = WindowBehaviors.Maximize | WindowBehaviors.Minimize | WindowBehaviors.Close | WindowBehaviors.Move | WindowBehaviors.Pin;
                        RadWindow2.Modal = true;
                        RadWindow2.VisibleOnPageLoad = true; // Set this property to True for showing window from code    
                        RadWindow2.VisibleStatusbar = false;
                        RadWindow2.Title = "Print Note";
                      }
                    else if (Session["RTF2"] != "" && intCount == 1)
                    {
                        RadWindow3.NavigateUrl = "~/Editor/PrintNote.aspx";
                        RadWindow3.Height = 600;
                        RadWindow3.Width = 950;
                        RadWindow3.Top = 40;
                        RadWindow3.Left = 100;
                        RadWindow3.Behavior = WindowBehaviors.Maximize | WindowBehaviors.Minimize | WindowBehaviors.Close | WindowBehaviors.Move | WindowBehaviors.Pin;
                        RadWindow3.Modal = true;
                        RadWindow3.VisibleOnPageLoad = true; // Set this property to True for showing window from code    
                        RadWindow3.VisibleStatusbar = false;
                        RadWindow3.Title = "Print Note";
                     }
and so no..

and
<telerik:RadWindowManager ID="RadWindowManager" runat="server" EnableViewState="false">
                                <Windows>
                                       <telerik:RadWindow ID="RadWindow2" OpenerElementID="btnPrintNote_Click" runat="server"
                                        Behaviors="None">
                                    </telerik:RadWindow>
                                    <telerik:RadWindow ID="RadWindow3" OpenerElementID="btnPrintNote_Click" runat="server"
                                        Behaviors="None">
                                    </telerik:RadWindow>
                                                                                                 
                                </Windows>
                            </telerik:RadWindowManager>

but this is limited to the rad window. It will display how many rad window in the RadWindowManager.
Marin Bratanov
Telerik team
 answered on 04 Apr 2012
1 answer
72 views
I'm using the advanced form, and when a user hits the "cancel" button it causes a post back that has some delay to it. 

Is there a way to avoid the delay?  I feel like "canceling" should be almost instantaneous.

Thanks!
Peter
Telerik team
 answered on 04 Apr 2012
2 answers
100 views
Hi,

I have radgrid with detailtable.
I want to exapnd the child item after inserting the parent.
Any one know the idea..?


Regards,
Raja.M
Raja M
Top achievements
Rank 1
 answered on 04 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?