Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
110 views
Hi,

          I have two combo box  , one for country another one for state.  Depends upon the selection in Country combo i will load the states in states Combobox.

                             I have selected index changed server side function for both the combo box.  I have set the Autopostback property for the both the combo box as false.

                              In the client side selected index chnaged function I have used the __doPostBack   function with corresponding combobox unique id  as EventTarget.

When i select any country both country and state server side selected Index changed function will be called. 
   
            My problem is when I select the state in the state combo box again both functions will be called. Here I can't understand why the country selected index changed function is called.

I have placed both the combobox in asp updatepanel. I have set the trigger of the country update panel  is the country combobox and the trigger for the state update panel is  also country combo box.

**** I want to know how these events will be handled and how these functions called depends on this events.

Please give the solution for this problem.


Thanks
Velkumar.
Velkumar
Top achievements
Rank 2
 asked on 10 Aug 2012
0 answers
32 views
Hi Team,
I want to disable/invisible the Image Files table from Image Manager window. Please refer the image http://screencast.com/t/bRxuvHZgIi

Thanks in Advance.

Regards,
Babu R

Babu Raghu
Top achievements
Rank 1
 asked on 10 Aug 2012
2 answers
233 views
Hello everyone,

Using Telerik ASP.NET AJAX Q1 2012 SP1

I'd like to change the drop down arrow of the radcombobox while the combo box loads it's items on the client.  Here is some background of what i've done/tested/got working thus far.  I have a combobox on the page I've attached a $telerik.$(document).ready handler that calls a function to load the combobox.  This all works great.  I've read about using the combox.get_imageDomElement(); in the documentation and then setting the src property to a gif.  However this does not work.

Documentation Line: http://www.telerik.com/help/aspnet-ajax/combobox-client-side-radcombobox.html  see the description for get_imageDomElement()

I've also inspected the return DOM element and tried to manipulate the DOM properties (e.g. style.backgroundImage; currentStyle.backgroundImage) to se the image that way with no luck.

Desired results are as follows: change the triangle image of the drop down to a loading animation gif while the combobox items are loaded, then change it back to the triangle image when everythings ready. This needs to happen client side without post back.

Code examples:
Javascript:
$telerik.$(document).ready(function () {
     LoadComboBox1($telerik.findComboBox("RadComboBox1"));
});
 
function LoadComboBox1(sender){
     var myComboBox = sender;
     var myComboBoxImage = myComboBox.get_imageDomElement();
     //The loading.gif image is in the same directory as the aspx file
     //This is what is not working properly
     var myComboBoxImage.src = "loading.gif";
     $telerik.$.ajax({
          //ajax post done here removed for clarity this code works perfectly
     });
}

ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server"></telerik:RadComboBox>
<telerik:RadCodeBlock ID=RadCodeBlock1" runat="server">
<script type="text/javascript">
//See Javascript Code Block Above
</script>
</telerik:RadCodeBlock>

Any help would greatly be appreciated.

Thanks,
Sean
Derek Kepler
Top achievements
Rank 1
 answered on 09 Aug 2012
3 answers
77 views
It works fine when page is 61 or smaller, but the moment you increase it to 62, and higher you get a system.webforms.pagerequestmanagerservererrorexception 500. There is nothing wrong with the data because for testing purpose the query is a union of rows that work. Image of the error attached.
Martin
Top achievements
Rank 1
 answered on 09 Aug 2012
1 answer
83 views
It is possible to span a template column to Multiple columns in the grid.
 One of the column in my grid is very long. It introduces the additional scrollbar.
Pavlina
Telerik team
 answered on 09 Aug 2012
1 answer
100 views

I have a RadGrid configured with Paging and Grouping with Aggregates
- AllowPaging = true
- ShowGroupFooter = true
- RetainGroupFootersVisibility=true

 

 

 

 

<telerik:GridGroupByExpression>
    <GroupByFields>
        <telerik:GridGroupByField FieldName="A" SortOrder="Ascending" HeaderText="A" />
    </GroupByFields>
</telerik:GridGroupByExpression>

I have 1 column defined as Aggregate

 

<telerik:GridBoundColumn AllowFiltering="False" SortExpression="Amount"
    DataField="Amount"  DataFormatString="{0:C2}" Groupable="False" HeaderText="Amount"
    ReadOnly="True" Reorderable="False" Resizable="False" UniqueName="Amount"
    Aggregate="Sum">
</telerik:GridBoundColumn>

Problem

The RadGrid, by default, appears to Aggregate for items in the current page (i.e. The Grouping Total that appears in the GroupFooter... only applies to visible items on the currently selected page (even when the group extends into other pages).

Question

How can I implement a custom aggregate in which I sum all of the values for a particular column within a group (across all data items that are in the group / i.e. across all pages)? 




Preston
Top achievements
Rank 1
 answered on 09 Aug 2012
1 answer
72 views
In any other excel format, the caption appears as an extra row at the top of the spreadsheet. Is there a way to get this behavior when exporting to BIFF?
If not is there a way to insert an arbitrary row at the top of the resultant spreadsheet?

Thanks!
Daniel
Telerik team
 answered on 09 Aug 2012
8 answers
267 views
Hi,

I have a RadTabStrip tied to a RadMultiPage.  The RadTabStrip has CausesValidation="false" and the ontabclick event is handled.  In the event handler, I call Page.Validate() and then inspect Page.IsValid.  When the RadMultiPage control has RenderSelectedPageOnly="false", this works as expected.  When it has RenderSelectedPageOnly="true", my validator is effectively ignored and Page.IsValid is returned as true.

Example code:
    <telerik:RadScriptManager ID="rsm" runat="server"></telerik:RadScriptManager>
  
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                    <telerik:AjaxUpdatedControl ControlID="ltResult" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>    
      
    Result: <asp:Literal ID="ltResult" runat="server" Text=""></asp:Literal>
    <br />
  
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            ontabclick="RadTabStrip1_TabClick" SelectedIndex="0" CausesValidation="false">
        <Tabs>
            <telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="RadPageView1" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab2" PageViewID="RadPageView2">
            </telerik:RadTab>
        </Tabs>
</telerik:RadTabStrip>
    </div>
    <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0" RenderSelectedPageOnly="false">
        <telerik:RadPageView ID="RadPageView1" runat="server">        
            Tab 1 content:  <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TextBox2" runat="server" ControlToValidate="TextBox2" ErrorMessage="Client Error">
                            </asp:RequiredFieldValidator>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">
            Tab 2 content:            
        </telerik:RadPageView>
    </telerik:RadMultiPage>
protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            Page.Validate();
            if (Page.IsValid)
            {
                ltResult.Text = "page is valid";
            }
            else 
            {
                ltResult.Text = "page is not valid";
            }
        }

If you run this code and click on the second tab, the ltResult control shows "page is not valid".  This is correct as there is a requiredfieldvalidator in the RadPageView.  If you change the value of RenderSelectedPageOnly to "true", the ltResult control shows "page is valid", which is incorrect.

In reality, my page has several RadPageView controls with dynamically loaded usercontrols containing a lot of content.  I need to be able to set RenderSelectedPageOnly="true" to save on bandwidth and client processing time.  Can you tell me how to get this working with RenderSelectedPageOnly="true"?

I am using Version 2010.3.1215.40 of Telerik RadControls for ASP.NET Ajax.

Thanks,

Craig

Helen
Telerik team
 answered on 09 Aug 2012
20 answers
162 views
Hi All
I am using the custom advance form template with my scheduler,
and have added a few custom resources , i want to add required field validator's to these resources!
However i am struggling with this as the validator cannot find the control.

Can anyone give me some help with this or point me in the direction of a good way/method of validating resources please.

Many Thanks in advance

Regards

Darren
Ken
Top achievements
Rank 1
 answered on 09 Aug 2012
3 answers
120 views
Hello,

It seems that the component does not work in IE9, based on clicking around on the RadSpell demos on the site.  After a few clicks, the popup window shows up, but is blank. 

I have also had the issue on a simple web application when debugging in Visual Studio.  Seems an exception is thrown when trying to create an iframe element (if in IE).  I have attached the screenshot from VS.

Thanks,

-Chris
Rumen
Telerik team
 answered on 09 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?