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

I have a client-side situation where I need to control when the <asp:CustomValidator> ClientValidationFunction is called. Is there any way to disable the default (implicit) call and then call it explicitly from javascript?

Thanks for any tips!
R
Yana
Telerik team
 answered on 30 Sep 2009
4 answers
115 views
If you go to our site www.baudville.com and search for item 71238RD and click on the personalize and add to cart, and then select the drop down for Anniversary year, it seems to jump off to the right in any version of Firefox. Any help on this would be appreciated, thanks.

 

 

<tr style="display: none;" id="trQualFlagA" runat="server">

 

 

 

<td nowrap="nowrap">

 

 

 

<span id="Span1">Anniversary Year</span>

 

 

 

</td>

 

 

 

<td>

 

 

 

 

<rad:RadComboBox ID="radDdlYear" runat="server" NoWrap="false"

 

 

 

Skin="Vista" Width="50px" AutoPostBack="false" OnClientSelectedIndexChanged="changeYear"

 

 

 

EnableScreenBoundaryDetection="false" EnableVirtualScrolling="false">

 

 

 

</rad:RadComboBox>

 

 

 

<rad:RadTextBox ID="radTbAnnivYear" Style="width: 20px; display: none;" TextMode="SingleLine"

 

 

 

runat="server" MaxLength="2">

 

 

 

</rad:RadTextBox>

 

 

 

</td>

 

 

 

<td>

 

 

 

&nbsp;

 

 

 

</td>

 

 

 

</tr>

 

Kamen Bundev
Telerik team
 answered on 30 Sep 2009
1 answer
159 views
Hi

I'm having trouble with the RadAjax tools, I guess it stems from not fully understanding them, dispite being able to use them due to their ease of use.

I have an update trigger that updates several area of a page, at first I didn't have a loading panel, but for lengthy updates the users didn't get any feedback that something was going on.

When I add the loading panel it showed in each area of the page when working, that upto 4 instances.

I have set the IsSticky to true and it appears on the left only, and dispite seting the background position property to center it stays there.

How do I get a loading panel to disply in the centre of my page?

Andy
Dimo
Telerik team
 answered on 30 Sep 2009
0 answers
185 views
Hi
          I used the user control, the user control functions like combo box with rad tree view. this user control i used so many pages. I used the sessions for selected rad tree view selected nodes for searching or inserting values. it is working fine.When i select(node rad tree view) and search. the result found.  when i move to another page search by default this session value search result is showing. Herewith i cannot clear the session value after search because the need data source asking session value for  Edit and retrieval purpose. Let me how can i solved this problem..

Herewith i send some sample coding


Ascx User Cotnrol Sample Codings

 <telerik:RadAjaxPanel ID="ajaxPnlcmbUniversalSearchDestination" runat="server">
 <telerik:RadComboBox  CausesValidation="false" ID="cmbUniversalSearchDestination"   Text="Destination" EmptyMessage="Destination"
OnItemsRequested="cmbUniversalSearchDestination_OnItemsRequested"
   runat="server"  Width="98%" Font-Size="Small" TabIndex="11">
   <ItemTemplate>                           
   <div class="cmbareadiv">                                    
  <div style="overflow: auto">
 <asp:LinkButton ID="btnDestinationSelect" CausesValidation="false"  OnClick="lnkDestinationSelect_Click" CssClass="footsize"   Text="Select" runat="server"></asp:LinkButton>                                                                                                                                                                                                                                               
<asp:LinkButton ID="btnDestinationClear" CausesValidation="false"  OnClick="btnDestinationClear_Click" CssClass="footsizeclose"   Text="Clear" runat="server"></asp:LinkButton>                                                                                                             
 </div></div>    
<telerik:RadTreeView runat="server" ID="treeDestination"    PersistLoadOnDemandNodes="true"   Skin="Web20" CheckBoxes="true" MultipleSelect="true">                                             
</telerik:RadTreeView>   
 </ItemTemplate>  
<Items>  
 <telerik:RadComboBoxItem Text="" />  
   </Items>  
<CollapseAnimation Duration="200" Type="OutQuint" />
  </telerik:RadComboBox>
 </telerik:RadAjaxPanel>

ascx User control Code behind




        //Load SubArea Details in DropDown
        public void LoadSubAreaFromDB()
        {

            IList<AreaData> subAreaData = new List<AreaData>();
            ArrayList AreaIdList = new ArrayList();
            List<long> destinationlist = new List<long>();
            RadTreeView treedestination = (RadTreeView)cmbUniversalSearchDestination.Items[0].FindControl("treeDestination");
            // treedestination.ClearCheckedNodes();
            destinationlist.Clear();
            foreach (RadTreeNode node in treedestination.Nodes)
            {

                if (node.Checked)
                {
                    destinationlist.Add(Convert.ToInt32(node.Value));
                    long destinationnode = (Convert.ToInt32(node.Value));
                    AreaIdList.Add(destinationnode);
                    Destinationvalues += node.Text + ",";
                    
                }
            }

            JSSessionHandler.SetSessionValue("AreaIdList", AreaIdList);
}}



Aspx Page Calling this function

 
        //Load Area Reference Data From Page
        public AreaAssociationData LoadAreaReferenceDataFromPage()
        {

            UserData sessionUser = (UserData)JSSessionHandler.GetSessionValue("UserData");
            AreaAssociationData aAreaAssociationData = new AreaAssociationData();
            if (sessionUser != null && sessionUser.Id > 0)
            {

                if ((ArrayList)JSSessionHandler.GetSessionValue("AreaIdList") != null)
                {
                    List<AreaData> AssociatedDestinations = new List<AreaData>();
                    List<AreaData> AssociatedSubAreas = new List<AreaData>();
                    List<AreaData> AssociatedLocations = new List<AreaData>();

                    ArrayList DestinationList = new ArrayList();
                    DestinationList = (ArrayList)JSSessionHandler.GetSessionValue("AreaIdList");

                    if (DestinationList != null)
                    {
                        foreach (long DestinationId in DestinationList)
                        {
                            AreaData aDestination = new AreaData();
                            aDestination.Id = DestinationId;
                            AssociatedDestinations.Add(aDestination);

                        }
                    }
                 

                    aAreaAssociationData.DestinationCollection = AssociatedDestinations;
                   
            }
            else
            {
                Server.Transfer("~/Default.aspx");
            }
            return aAreaAssociationData;
        }



  if ((txtUniversalSearchFirstName.Text == string.Empty) && (txtUniversalSearchLastName.Text == string.Empty) && (txtUniversalSearchEmail.Text == string.Empty) && (txtUniversalSearchPostalZipCode.Text == string.Empty) && (JSSessionHandler.GetSessionValue("AreaIdList") == null) && (JSSessionHandler.GetSessionValue("SessioncontactTypelist") == null) && txtContactCode.Text == string.Empty)
            {
                LblSearchMsg.Visible = true;
            }

            else
            {

 SearchContacts();

   }

}



mani
Top achievements
Rank 1
 asked on 30 Sep 2009
1 answer
202 views
Hello.

I am using a rad numeric textbox on my page, but however, I cannot make use of the decimal key of my numeric keypad.
I have tried using groupseparator="," and even groupseparator="." but still, the control does not accept the [del] key value.
Instead, if I press the comma "," key, the control accepts it.

<telerik:RadNumericTextBox ID="tbxtest" runat="server">
</telerik:RadNumericTextBox>



I have not set any localization on my page


Can someone please advise how I can achieve that? My users make intensive use of the numeric keypad.
Thanks
Dimo
Telerik team
 answered on 30 Sep 2009
2 answers
60 views
Hi,

I need help, i want to show a multi radgrid header, lol, I dont know if I explain the idea, I need something like this:

Imagine a Radgrid Header: 

1st. row of header:    |DataCol 1   | DataCol 2  |DataCol 3   |
2nd. row of header:   |dc1|dc2|dc3|dc1|dc2|dc3|dc1|dc2|dc3|

then de datarows... I dont know how i created that header type... it´s possible?

Thks.
jesus trejo
Top achievements
Rank 1
 answered on 30 Sep 2009
2 answers
177 views
Hi Everybody,

I have been trying to edit just a cell on row of the grid, but i didnt know how do implent it.

There is a radgrid on page where this grid has 4 columns. The type of coluns are the following:
textbox, textbox, textbox and combobox.

the first textbox its type is numeric, the second is a date and third is character.

I show how the grid will be:

price    |    date             |   name    |   city
$1.89      9/10/2009          James      New york

the combobox city there is a list of cities where It gets in database

When the page shows, the grid shows too with all the registers with it.

when the user clicks in some cell the cell show a field for eample a textbox for user types there.

I need to implement it on code behind.

Can anybody help me?

Thank you for attention.

Carlos
Carlos Marchi
Top achievements
Rank 1
 answered on 30 Sep 2009
3 answers
129 views
hi all,
i added this code too my project global.asax

HttpApplication app = (HttpApplication)sender;
        string acceptEncoding = app.Request.Headers["Accept-Encoding"];
        Stream prevUncompressedStream = app.Response.Filter;

        if (acceptEncoding == null || acceptEncoding.Length == 0) return;

        acceptEncoding = acceptEncoding.ToLower();
       if (acceptEncoding.Contains("gzip"))
       {
            // gzip
            app.Response.Filter = new GZipStream(prevUncompressedStream,CompressionMode.Compress);
            app.Response.AppendHeader("Content-Encoding","gzip");
        }
        else
            if (acceptEncoding.Contains("deflate"))
        {
            // defalte
           app.Response.Filter = new DeflateStream(prevUncompressedStream,CompressionMode.Compress );
           app.Response.AppendHeader("Content-Encoding","deflate");


but my rad controls not shown correctly,
how i can correct it?



Erjan Gavalji
Telerik team
 answered on 30 Sep 2009
4 answers
193 views
Hello!

I don't know what's going on, because when I initiate RadWindow control, it has been working some time.

Suddendly the window won't show up. I turn off compression and it shown up.

The most interesting is that, when I turn on the compression it worked again some time and die.

In global.asax I have the following code:

 Dim app As HttpApplication = TryCast(sender, HttpApplication) 
            Dim acceptEncoding As String = app.Request.Headers("Accept-Encoding"
            Dim prevUncompressedStream As Stream = app.Response.Filter 
 
            If Not (TypeOf app.Context.CurrentHandler Is Page) OrElse app.Request("HTTP_X_MICROSOFTAJAX") IsNot Nothing Then 
                Return 
            End If 
 
            If String.IsNullOrEmpty(acceptEncoding) OrElse acceptEncoding.Length = 0 Then 
                Return 
            End If 
 
            acceptEncoding = acceptEncoding.ToLower() 
 
            If acceptEncoding.Contains("deflate"OrElse acceptEncoding = "*" Then 
                ' defalte 
                app.Response.Filter = New DeflateStream(prevUncompressedStream, CompressionMode.Compress) 
                app.Response.AppendHeader("Content-Encoding""deflate"
            ElseIf acceptEncoding.Contains("gzip"Then 
                ' gzip 
                app.Response.Filter = New GZipStream(prevUncompressedStream, CompressionMode.Compress) 
                app.Response.AppendHeader("Content-Encoding""gzip"
            End If 

Anyone can help me?


Grzesiek
Top achievements
Rank 2
Iron
 answered on 30 Sep 2009
1 answer
54 views
Hi, i am trying to utilize the client functions for the RadControls working in the 2008 Q3 version.  I try to use $find in order to get the telerik client version of the controls but it bombs on the $find call.  What do i need in order for this to work?
Michael Arocho
Top achievements
Rank 2
 answered on 30 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?