Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
127 views
Hi,

How can I force validation of the currently selected tab on tabclick?  The RadTabStripEventArgs object contains only information on the tab that was just clicked, not the tab that was previously selected.

Thanks,

Craig
Yana
Telerik team
 answered on 07 Sep 2010
1 answer
159 views
We are using Telerik Dropdownllist in one of our Asp.Net application.

Issue is that when we click on the dropdownlist which is on the bottom of the page, the expanded 'tray' of that raddropdownlist seems to detached from the dropdownlist and appears to the top of the page. Dropdownlist and expanded tray are far apart.

Attached screenshots which will be more clear for you regarding the scenario.

Any idea, what's going wrong here ?

Visual Studio 2008 / .Net Framework 3.5

Finally somehow I done 'patch' fix by adding these properties for raddrownlist -

OffsetX

 

="-2" OffsetY="-657"

 


But I know it is not a permanent solution. Only the depth of difference is far reduced. Any permanent solution ?

Attachments:-
1) & 2) screenshots (Click to view it in original size)
3) Some of the relevant portion of this ASPX Page. You can see the <telerik:RadComboBox ID="uxRadComboAgent2"  there

<!-- TOP PART OF THE ASPX PAGE -->

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MApplicationManifestData.aspx.cs"
   MaintainScrollPositionOnPostback="true"  Inherits="MDXIAS.Applications.MApplicationManifestData1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

.......................


<body>
    <form id="MAppManifestDatafrm" runat="server">
    <telerik:RadScriptManager ID="RdScptMgrMAppManifestData" EnablePartialRendering="true"
        AsyncPostBackTimeout="36000" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="RdStyMgrMgrMAppManifestData" EnableStyleSheetCombine="true"
        runat="server">
    </telerik:RadStyleSheetManager>
    <div class="contentcontainer">
        <table style="width: 95%">
            <tr style="height: 400px;">
                <td>
                    <fieldset style="width: 100%; height: 100%">
                    <div style="overflow: auto; height: 100%; width: 99%" id="Div1" runat="server">

..........................

<tr>
                                <td colspan="7">
                                    <asp:UpdatePanel ID="uPnlAgentDetails" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <fieldset style="height:50px; width:100%; vertical-align:middle; text-align:center;">
                                                <legend>Agent Details</legend>
                                                <table border="0" cellspacing="2" cellpadding="3" style="width: 100%;">
                                                    <tr>
                                                        <td class="datatext" style="width: 25%;">
                                                            Agent Name
                                                        </td>
                                                        <td class="datafield" colspan="3">
                                                            <telerik:RadComboBox ID="uxRadComboAgent2" runat="server" Width="250px" Height="250px"
                                                                EmptyMessage="Select a Agent" EnableLoadOnDemand="true"  ShowMoreResultsBox="true"
                                                              OnItemsRequested="uxRadComboAgent2_ItemsRequested" EnableVirtualScrolling="true"  >
                                                            </telerik:RadComboBox>
                                                           
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="datafield TDWidth15">
                                                            <asp:TextBox runat="server" ID="uxAgentCode2" Visible="false" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </fieldset>
                                        </ContentTemplate>
                                        <Triggers>
                                             <asp:AsyncPostBackTrigger ControlID="uxRadComboAgent2" EventName="ItemsRequested" /> 
                                     </Triggers>
                                    </asp:UpdatePanel>                                    
                                </td>
                            </tr>



Hope it is clear
Raj
Yana
Telerik team
 answered on 07 Sep 2010
3 answers
116 views
Hey,

I just had a question about the rotator.  I want to know if it is possible to only scroll one item at a time.  I want to display three items at a time.  But when they click the next/previous buttons it only should scroll one to the right or left.  So if the current items being displayed are:  Item 2 Item 3 Item 4 and they click the next button I would expect it to display: Item 3 Item 4 Item 5.

I read some previous posts and the only thing I could find was to use the scrollItem() client side method.  I tried using that method.  It does move the rotator 1 at a time, but it only moves it to the right.  To test this stuff, I added a third button (the other two are the ones added automatically) that called the scrollitem method.  If I clicked the scrollitem button first, it would move one forward.  Then if I click the built in previous and next buttons, they will then move one at a time.  But if I initially click the built in previous and next buttons, they move 3 at a time. 

Also, I want to set the intial index, but I want it to start in the middle of my list.  I'm writing out 11 items.  They all say Period 1 Period 2 Period 3, etc...  I want to always start in the middle of this list which would be Period 6.  But when I set the index, it does start at Period 6.  But I can't scroll back to Period 1.  Period 1-5 all get attached to the end of the rotator.  Is there a way I can make it so that the rotator starts in the middle of a list?

I can add my code if you need to see what I'm doing.
Pero
Telerik team
 answered on 07 Sep 2010
0 answers
127 views
Hi,

I have created Menu using Sitemap.

SITEMAP CODE

 <siteMapNode title="MainMenuItem">                 
                  <siteMapNode controller="subController1" action="Index" title="SubMenu1"/>
                  <siteMapNode controller="subController2" action="Index" title="SubMenu2" />
                  <siteMapNode controller="subController3" action="Index" title="SubMenu3" />
  </siteMapNode>

Telerik Code is:
 Html.Telerik().Menu().Name("MyMenu").BindTo("web").Orientation(MenuOrientation.Vertical).Render()

how can i add image to MainMenuItem or SubMenuItem of Menu

Thanks,
Lakul
Lakul
Top achievements
Rank 1
 asked on 07 Sep 2010
1 answer
168 views
Hi,

i have a control with multiple input boxes where i need to validate required values.

Following http://www.telerik.com/help/aspnet/ajax/ajxexclude.html i have added a submit button.

When is use in page_load

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            btnStoreCustom.Attributes.Add("onclick", String.Format("realPostBack('{0}', ''); return false;", btnStoreCustom.UniqueID))
        End If
    End Sub

my code code

Protected Sub btnStoreCustom_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnStoreCustom.Click
        ' save all custom made values in Session Variables for future use
        Session("MP1A") = CInt(rntbPM1A.Value)
        Session("MP1B") = CInt(rntbPM1B.Value)
        Session("MP2A") = CInt(rntbPM2A.Value)
        Session("MP2B") = CInt(rntbPM2B.Value)
        Session("MP3A") = CInt(rntbPM3A.Value)
        Session("MP3B") = CInt(rntbPM3B.Value)
        Session("MP4A") = CInt(rntbPM4A.Value)
        Session("MP4B") = CInt(rntbPM4B.Value)
        Session("MP5A") = CInt(rntbPM5A.Value)
        Session("MP5B") = CInt(rntbPM5B.Value)
        Session("MP6A") = CInt(rntbPM6A.Value)
        Session("MP6B") = CInt(rntbPM6B.Value)
        Session("MP7A") = CInt(rntbPM7A.Value)
        Session("MP7B") = CInt(rntbPM7B.Value)
        Session("MP8A") = CInt(rntbPM8A.Value)
        Session("MP8B") = CInt(rntbPM8B.Value)
        Session("MP9A") = CInt(rntbPM9A.Value)
        Session("MP9B") = CInt(rntbPM9B.Value)
        Session("MP10A") = CInt(rntbPM10A.Value)
        Session("MP10B") = CInt(rntbPM10B.Value)
        Session("MP11A") = CInt(rntbPM11A.Value)
        Session("MP11B") = CInt(rntbPM11B.Value)
        Session("MP12A") = CInt(rntbPM12A.Value)
        Session("MP12B") = CInt(rntbPM12B.Value)
        Session("MP13A") = CInt(rntbPM13A.Value)
        Session("MP13B") = CInt(rntbPM13B.Value)
        Session("MP14A") = CInt(rntbPM14A.Value)
        Session("MP14B") = CInt(rntbPM14B.Value)
        Session("MP15A") = CInt(rntbPM15A.Value)
        Session("MP15B") = CInt(rntbPM15B.Value)
        Session("MP16A") = CInt(rntbPM16A.Value)
        Session("MP16B") = CInt(rntbPM16B.Value)
        Session("MP17A") = CInt(rntbPM17A.Value)
        Session("MP17B") = CInt(rntbPM17B.Value)
        Session("Weight") = CInt(rntbGewicht.Value)
        Session("Height") = CInt(rntbGroesse.Value)
    End Sub

is executed but no validating was done. 

In case of excluding the  btnStoreCustom.Attributes.Add

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
       If Not Page.IsPostBack Then
           '  btnStoreCustom.Attributes.Add("onclick", String.Format("realPostBack('{0}', ''); return false;", btnStoreCustom.UniqueID))
       End If
   End Sub

validation is done, but the code is not executed.

My ASPX for the button looks like this

<asp:Button ID="btnStoreCustom" runat="server" 
     Text="Diese Daten zwischenspeichern!" PostBackUrl="~/overlay.aspx" 
     ValidationGroup="AllPoint" CommandName="Submit" CausesValidation="True" />

Any suggestion on this task ?

Kind regards

Martin Gartmann
Cori
Top achievements
Rank 2
 answered on 07 Sep 2010
1 answer
95 views
Hi Team

I have rad grid in that i have six colums i need to edit the last two colums only when i click the rad grid row on double click i on that time these two colums only in edit mode. i have to update the using the datakey names, in asp.net code behind page.

Please Kindly send me examples or Solutions as soon as possible.


Regards,
Ashok Anbarasu.
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2010
2 answers
284 views
Hi,

I am trying to dynamically add the values entered in the cells and populate the total in another Cell.  So i call total() function onTextChange in each texbox within the Grid. The entire grid postbacks, this will be annoying to the user. I need a funcationality similar to Excel where one cell holds the formula to add the values in required cells.      I have pasted the code snippet here below just for testing purpose, i tried to populate one textbox with the value of other and checking the onTextChange event in each textbox within the grid.                     
Please let me know what needs to be fixed so that the entire page doesnot postbacks, the total value is automatically added.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="" AutoGenerateColumns=false>
                                        <MasterTableView DataKeyNames="WEB_ACCOUNT_ID,WEB_PER_ID,WEEK_ID,DETAIL_ID">
                                            <Columns>                                               
                                                <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_sun_hrs" runat="server" Text='<%# Eval("SUN_HRS") %>' Width="90%"
                                                            MaxLength="4" OnTextChanged="textBox_TextChangedRad" AutoPostBack=true>   </asp:TextBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txt_mon_prem" runat="server" Text='<%# Eval("MON_PREM") %>' Width="90%"
                                                            MaxLength="4" OnTextChanged="textBox_TextChangedRad" AutoPostBack=true></asp:TextBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>

CodeBehind:
    protected void textBox_TextChangedRad(object sender, System.EventArgs e)
    {
        int start, end, updatedrow;
        double sun_Hrs, mon_prem;
        TextBox txtHrs = ((TextBox)(sender));
      
        GridDataItem item = (GridDataItem)txtHrs.NamingContainer;        
       
        sun_Hrs = Convert.ToDouble(((TextBox)item.FindControl("txt_sun_hrs")).Text.Equals("") ? "0" : ((TextBox)item.FindControl("txt_sun_hrs")).Text.ToString());

        ((TextBox)item.FindControl("txt_mon_prem")).Text = sun_Hrs.ToString();

    }
Manikandan Balasubramaniyan
Top achievements
Rank 1
 answered on 07 Sep 2010
4 answers
132 views

Hello,

I am using RadEditor  in sharepoint and facing one issue.

 

I just want to restrict my editor's font name and size (say Arial,2) ,for that  i  made changes in ListToolsFile.Xml,
in following sections

 

<fontNames>
    <item name="Arial" />
  </fontNames>
  <fontSizes>
    <size value="2" />
  </fontSizes>

Now  the problem is that i am still getting default option(Times New Roman,3).(See Attached file)
Note-
I am using Lite Edition of RadEditor,also using it in SharePoint List.

Regards,
Sham@

Lini
Telerik team
 answered on 07 Sep 2010
1 answer
335 views
hello all, i have updated my radcontrols  from old version to 2010,
previously i was using the skin file which is in my App_Teheme folder and now also i want to use my old skin file for all controls.
but it is not setting that skin file.
even also i  have set EnableEmbeddedSkins="false to each rad controls in skin file. then also it is not setting, i am getting some ... UI,

i have attached my snap file 1st one is Previously and 2nd one is after upgraded and also i attached my skin file.
please help me
Dimo
Telerik team
 answered on 07 Sep 2010
2 answers
59 views
Hello,
 
Is it possible to use the google like filtering example with an object datasource?

Adonis
Top achievements
Rank 1
 answered on 07 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?