Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views

if any possible do function like crystal report like in Telerik report


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 19 Feb 2013
2 answers
116 views
Hi,

I am openning a radwindow on button click from code behind as below in silverlight 5 app:

 RadWindow newChldWindow = newRadWindow();
            newChldWindow.Closed += popUpCloseEvent;
            newChldWindow.Height = 650;
            newChldWindow.Width = 1000;
            newChldWindow.ResizeMode = ResizeMode.CanResize;
            newChldWindow.CanMove = true;

Would it be possible to add print functionality to this from code behind?

Thanks
Sam
Top achievements
Rank 1
 answered on 19 Feb 2013
1 answer
107 views
Hi,

I am using the Telerik Radtreeview with the checkbox nodes, which works fine until i implement the RadAjaxManager
to enable the export functions on the grid, then i am unable to click the checkboxes, but space ticks them? I generate
the Nodes Dynamically.

Heres a sample of my RadAjaxManager:
<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
                <ClientEvents OnRequestStart="onRequestStart"></ClientEvents>
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="grdUsers">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="grdUsers"></telerik:AjaxUpdatedControl>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>

 

 

 

 

 


Any idea on how to fix this?

Kate
Telerik team
 answered on 19 Feb 2013
2 answers
77 views
Hi,
I am using Radeditor with EditorDropDown on toolbar. I need to bind data to the EditorDropDown client side or using web method,  if there any option for add  Clinet events for EditorDropDown.  I need a quick reply.






Thanks





Dhamodharan
Top achievements
Rank 1
 answered on 19 Feb 2013
1 answer
100 views
Hi All,
I'm having trouble with Form Validation when using the MetroTouch skin. I'm using a mix of RequiredFieldValidator/RequiredExpressionValidator controls for my RadTextBox's on a simple registration page. On all the other skins if a user enters text that doesn't meet the validation criteria the error is displayed immediately to the right hand side of the RadTextBox.

However, with the MetroTouch skin nothing is displayed until the RadButton is hit to postback. Also, when you fix something unless you click on another control the error does not go away.

I can reproduce this behaviour on all skins by simply adding this to the style sheet as well:

body

{

font-size:smaller;

}

 


I'll post my code here so you can test. You shouldn't need the style sheet as the functionality remains broken without it.
Register.aspx
<head runat="server">
    <title></title>
 
    <link rel="stylesheet" type="text/css" href="styles.css"/>
</head>
<body>
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Hay" ShowChooser="True"></telerik:RadSkinManager>
    <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="All"></telerik:RadFormDecorator>
 
    <div class="exampleWrapper">
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1" >
            <Tabs>
                <telerik:RadTab runat="server" Selected="True" Text="Registration" PageViewID="Registration">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="How it works" PageViewID="HowitWorks">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Prizes" PageViewID="Prizes">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
 
            <telerik:RadPageView ID="Registration" runat="server">                          
                 <br />
                 <telerik:RadTextBox runat="server" ID="Email" Label="Email:" Width="400px" ></telerik:RadTextBox>
                 <asp:RegularExpressionValidator ID="emailValidator" ValidationGroup="Registration" runat="server" Display="Dynamic" ErrorMessage="Please, enter valid e-mail address." ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$" ControlToValidate="Email" CssClass="RegularExpressionValidator"></asp:RegularExpressionValidator>
                 <asp:RequiredFieldValidator ID="TextBoxRequiredFieldValidator" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="Email" ErrorMessage="Please enter a valid email address!" CssClass="RegularExpressionValidator"></asp:RequiredFieldValidator>
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="Password" Label="Password:" Width="400px" TextMode="Password"></telerik:RadTextBox>
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="ConfirmPassword" Label="Confirm Password:" Width="400px" TextMode="Password"></telerik:RadTextBox>
                 <asp:CompareValidator ID="valCompPassword" runat="server" ValidationGroup="Registration" ControlToValidate="ConfirmPassword" ControlToCompare="Password" Display="Dynamic" ErrorMessage="Please make sure your passwords match!" CssClass="RegularExpressionValidator" />
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="Firstname" Label="First name:" Width="400px"></telerik:RadTextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="Firstname" ErrorMessage="Please enter your first name!" CssClass="RegularExpressionValidator"></asp:RequiredFieldValidator>
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="Surname" Label="Surname:" Width="400px"></telerik:RadTextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="Surname" ErrorMessage="Please enter your surname!" CssClass="RegularExpressionValidator"></asp:RequiredFieldValidator>
                 <br /><br />
                 <telerik:RadMaskedTextBox runat="server" ID="PhoneNumber" Label="Mobile number:" Width="400px" Mask="####-###-###"></telerik:RadMaskedTextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="PhoneNumber" ErrorMessage="Please enter your mobile number!" CssClass="RegularExpressionValidator"></asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationGroup="Registration" runat="server" Display="Dynamic" ErrorMessage="Please enter valid mobile number." ValidationExpression="^[0]\d{3}-\d{3}-\d{3}$" ControlToValidate="PhoneNumber" CssClass="RegularExpressionValidator"></asp:RegularExpressionValidator>
                 <br /><br />
                 <telerik:RadMaskedTextBox runat="server" ID="AlternatePhoneNumber" Label="Alternate number:" Width="400px" Mask="####-###-###"></telerik:RadMaskedTextBox>                
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="Address" Label="Street Address:" Width="400px"></telerik:RadTextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="Address" ErrorMessage="Please enter your address!" CssClass="RegularExpressionValidator"></asp:RequiredFieldValidator>
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="City" Label="City/Suburb:" Width="400px"></telerik:RadTextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="City" ErrorMessage="Please enter your city/suburb!" CssClass="RegularExpressionValidator"></asp:RequiredFieldValidator>
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="Country" Label="Country:" Width="400px"></telerik:RadTextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="Country" ErrorMessage="Please enter your country!" CssClass="RegularExpressionValidator" InitialValue="Australia"></asp:RequiredFieldValidator>
                 <br /><br />
                 <telerik:RadTextBox runat="server" ID="PostCode" Label="Post Code:" Width="400px"></telerik:RadTextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator7" ValidationGroup="Registration" runat="server" Display="Dynamic" ControlToValidate="PostCode" ErrorMessage="Please enter your post code!" CssClass="RegularExpressionValidator" InitialValue="Australia"></asp:RequiredFieldValidator>
                 <br /><br />
                 <telerik:RadButton ID="btnRegister" runat="server" Text="Register Now" ValidationGroup="Registration" ButtonType="StandardButton" BackColor="#F9F9F9"></telerik:RadButton>
                 <p></p>
            </telerik:RadPageView>
 
            <telerik:RadPageView ID="HowItWorks" runat="server" ForeColor="White">
                <p>HowItWorks</p>
            </telerik:RadPageView>
            <telerik:RadPageView ID="Prizes" runat="server">
                <p>Prizes</p>
            </telerik:RadPageView>
        </telerik:RadMultiPage>       
    </div>
    </form>
</body>
</html>
Vasil
Telerik team
 answered on 19 Feb 2013
3 answers
297 views
I have a page where I have a number of sitemap controls.  Each one may have a different background color.  For some of the sitemaps, I can use the default font, color, background hover color, etc.  For the others, I need to change different attributes.  I tried using the CssClass to override the color as well as the ForeColor attribute on the control and the nodes but alas, it did not work.  I know I can override the group css class, but that's not an option as far as I can see, it would override all of my sitemap controls.

Please advise if there is a solution to my issue.  I can supply a screenshot if that is helpful to understanding what I am trying to accomplish.
Kate
Telerik team
 answered on 19 Feb 2013
3 answers
106 views

I have  a GridTemplateColumn bind to “State” data field and the values are fixed or Enum type:

<telerik:GridTemplateColumn DataField="State" DataType="System.Byte" DefaultInsertValue="1"

    UniqueName="StateColumn" GroupByExpression="State Group By State">

    <EditItemTemplate>

        <telerik:RadComboBox ID="StateRadComboBox" runat="server"

SelectedValue='<%#Bind("State")%>'>

            <Items>

                <telerik:RadComboBoxItem runat="server" Text="Active" Value="1" />

                <telerik:RadComboBoxItem runat="server" Text="Inactive" Value="2" />

                <telerik:RadComboBoxItem runat="server" Text="Erased" Value="3" />

                <telerik:RadComboBoxItem runat="server" Text="Pendent" Value="4" />

            </Items>

        </telerik:RadComboBox>

    </EditItemTemplate>

    <ItemTemplate>

        <asp:Label ID="StateLabel" runat="server"

Text='<%# … a logic to get text based on numeric value '></asp:Label>

    </ItemTemplate>

</telerik:GridTemplateColumn>

When forms a group show the numerical value (State: 1, State: 2, State: 3 or State: 4). How can I show your description instead of the numerical value (State: Active, State: Inactive, State: Erased or State: Pendent)?

 

I have the same problem when use GridDropDownColumn and ObjectDataSource:

<telerik:GridDropDownColumn DataField="State" DataSourceID="StateObjectDataSource"

    ListTextField="TextValue" ListValueField="ByteValue" UniqueName="StateColumn"

    DataType="System.Byte">

</telerik:GridDropDownColumn>

Any help?
Kostadin
Telerik team
 answered on 19 Feb 2013
1 answer
52 views
Hi I have two date selectors using the RadDate control I would like to set the first date selector to be from today and not allow previous dates to be selected the second date control should only allow dates from the date selected in the first date box onward 

datebox 1 date = 21/02/2013
datebox 2 date => 21/02/2013 or later 
with 
<telerik:RadDatePicker ID="dpRequired1" runat="server" SelectedDate='<%# Bind("Required") %>'></telerik:RadDatePicker>

any suggestions thanks
Vasil
Telerik team
 answered on 19 Feb 2013
1 answer
113 views
Hi, when i press enter in the Textbox (input), I wan't the default button (in the Panel) to hit, so I jump in to the "SearchOnClick" method on enter press, but i can't get it to work. When i press enter nothing happens. How can i solve this?

<asp:Panel runat="server" ID="SearchPanel" DefaultButton="BtnSearch" CssClass="search-box">
    <telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox2" AllowCustomEntry="true" TextSettings-SelectionMode="Single"
        OnClientDropDownOpened="GUI.AutoCompletedOpened" OnClientRequestFailed="GUI.SearchRequestFailed"
        OnClientTextChanged="GUI.SearchInputChanged" InputType="Text" Filter="StartsWith" Width="180px" DropDownWidth="300px" 
        CssClass="telerik-search"  EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False" OnEntryAdded="Search_Entry">
        <WebServiceSettings Path="~/Views/Search/SearchResult.aspx" Method="GetSearchResult"></WebServiceSettings>
        <ClientDropDownItemTemplate>
                <div style="display: #= Attributes.DisplayMode #">
                    <a href="#= Attributes.ProductUrl #">
                        <span class="image-holder">
                            <img src="#= Attributes.ImageUrl # " alt=" #= Text # " width="50" height="50" />
                        </span>
                        #= Text # <br />
                        <span>#= Attributes.Identifier #</span>
                    </a>
                    #= Attributes.SearchUrl #
                </div>
        </ClientDropDownItemTemplate>
    </telerik:RadAutoCompleteBox>
    <asp:HiddenField runat="server" ID="hSearchValue" ClientIDMode="Static" />
    <asp:Button id="BtnSearch" runat="server" OnClick="SearchOnClick" CssClass="search"  />
</asp:Panel>
Kate
Telerik team
 answered on 19 Feb 2013
4 answers
162 views
hi

i wonder if you can help

i have set up a radgrid with the google style filtering as explained here google like filter

and i have combined it with drag and drop rows like here http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

fyi i have both grids in a RadAjaxPanel which seems ok as ive tried it with and without it.

the problem i am having is that when i apply a filter and then drag one of the filtered rows to the new grid the actual item that turns up in the

e.DraggedItems collection of RadGrid1_RowDrop(object sender, GridDragDropEventArgs e) event is the wrong one.

if you imagine the grid as the following items
a b
1 1
1 2
2 1
2 2

and i filter on b = 2 i only see
a b
1 2
2 2

and then i select 2 2 to drag and drop , the recieving grid actually gets 1 2 , this is because the source grid has lost its filter at some point during the drag and drop process.

i hope this makes sense , and i am hoping someone can help.

thanks alot in advance.

Peter

 
Peter
Top achievements
Rank 1
 answered on 19 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?