Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
168 views
when in my Window i call oWindow.close(); it works perfect for both IE/89 and Mozila 4/5
but in Chrome somthing funny is happening. it closes the window then it opens an empty  window !!!

this is how i call the window (MainPage.aspx)

            <telerik:RadWindow ID="RadWindow_QuikInfo" runat="server" Behavior="Default" InitialBehavior="None"
                    ShowContentDuringLoad="false" OpenerElementID="Button1" 
                    VisibleOnPageLoad="false" NavigateUrl="~/Win1.aspx" 
                    Behaviors="Close,Move,Resize,Reload" >
            </telerik:RadWindow>

and this is how i try to close window (Win1.Aspx)

            function AdjustRadWidow() {
                var oWindow = GetRadWindow();
                if (1 == 1) oWindow.close();
                setTimeout(function () { oWindow.autoSize(true); if ($telerik.isChrome || $telerik.isSafari) ChromeSafariFix(oWindow); }, 500);
            } 
Ashim
Top achievements
Rank 1
 answered on 28 Jul 2011
4 answers
322 views
This must be very simple, so I assume I am at fault for not knowing how to do it!

I have a RadGrid with a check-box (not populated from the data-source) as follows:

<telerik:RadGrid ID="rgYoungWeber" runat="server" AllowSorting="true" AllowPaging="true" PagerStyle-Position="Top" DataSourceID="sdsYoungWeber" AutoGenerateColumns="false">
  <MasterTableView>
    <Columns>
      <telerik:GridBoundColumn DataField="Year" HeaderText="Year"></telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="Author" HeaderText="Author"></telerik:GridBoundColumn>      <telerik:GridBoundColumn DataField="Page" HeaderText="Page"></telerik:GridBoundColumn>
      <telerik:GridTemplateColumn>
        <ItemTemplate><asp:CheckBox id="cb" runat="server" /></ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

I want to be able to select certain items for printing by ticking the relevant boxes.  I can tick the boxes perfectly well but if I change page and then come back again, the ticks are removed.  How can I enable them to retain their state?  I am using a RadAjaxManagerProxy on the page (with a RadAjaxManager in the corresponding master-page) for partial post-backs: I have tried removing this but the check-boxes still lose their state after paging.

I am using Telerik DLL 2010.2.713.40 under Windows Server 2008.

All answers gratefully received,

Ed Graham
Allen
Top achievements
Rank 2
Iron
Veteran
 answered on 27 Jul 2011
0 answers
83 views
Hi,
I am displaying a grid in the window.sohwModalDialog(xxx.aspx).
When I try to add a new record or refresh on that modal dialog it is opening a new window.

Can anyone help me out with this.

Regards,
Arvind
Top achievements
Rank 1
 asked on 27 Jul 2011
1 answer
75 views
Scroll Bar Add Extra White Sapace instead of Grid Header Theme Continue whenever we are using Static Header with Scroll Bar its Showing in Attached image .
Tell me how i should remove this problems.



ram
James Daresta
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
62 views
Class People
    Property Name As String ()
    Property IsAssigned As Boolean
End Class

Class Assignment
    Property ManagerName As String ()
    Property AssignmentDetails As String ()
    Property AssignedToList As List (Of People)
End Class

I have a requirement where i have a Telerik grid which is bound to a list of a custom collection. The structure of the collection is
List (Of Assignment), which is bound to my grid. I have a couple of bound columns which are bound to the string properties. I also have a template column, where i want to have another grid, which gets bound to AssignedToList. This binding should be two-way. How can I achieve this ?

Pavlina
Telerik team
 answered on 27 Jul 2011
2 answers
220 views
Hi,
I have the following scenario:
A RadTabStrip that has 4 tabPages.
On first page i have some textboxes with validators on it.

I want to do the following:
when i try to change the page, the notification should show up if there are validation errors.
I want this done on client side script.

It looks that the validation fires before any onClient... event of the RadTabStrip.
If i use a button inside the TabPage and i attach the script to the button, everything works fine.

Please give me a solution.
Thanks,
Tiberiu
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
446 views
I've got an issue with RadComboBox where the style is incorrectly loading. In the CSS the style is being supplied by both WebResource.axd and Telerik.Web.UI.WebResouce.axd under the same style reference names.

Using the F12 tools in IE9, it seems to ignore the style provided by WebResource.axd and uses the Telerik.Web.UI.WebResource.axd declaration instead. All of the settings specified works except one, the background-image attribute.

url("/WebResource.axd?d=zOVDqaYoPgeOeTYRB8nFIraLP5bLJSS9mMvDXS2Gx92JFqyRrNGZriTPN9mB7xlBQFxVSthsLQnMRvJxdzh-NApiIOzkarqCcMpJuch6Tgb8cKKZ0WIUgnuFhTjBEQcHDVzKVTvN77djfMIX88P3QnswbBED1M2cytf8YE-HDNWhzSyZ0&t=634466635859336554")

This does not exist and causes a 404 error viewable in fiddler2. The style provided by WebResource.axd that is ignored does actually work

url("WebResource.axd?d=6f34yHv5y1TzMk-qXSedyUJ3gu_cuzFGdK186mb7ERzGXwRyXOrZcRZFvvBZU2BqM8REO42TLDNxTUpIk7koA_PsHFXVUovxk3l-H1Kep8esMtd22bWXhtBYtHaRWNs2Jzoa0ZCiZTx0uS1_usC6OqWvQQIRw2L4IsgFrEhgBCm7v1MX0&t=634466635859336554")

First of all I'm confused why both web resources are serving for the same content, and secondly how the telerik web resource can generate a reference for something that doesnt exist.

As an extra twist, the issue does not happen with everyone.
Dimitar Terziev
Telerik team
 answered on 27 Jul 2011
3 answers
96 views

Hi All,

 

In the new 2011 Q2 controls the Checkbox in RadCombo is introduced.

 

I'm adding Items to the Control by Code, Always Select the first one, which cant be deselected

So on the Item_created i do the following:

if e.item.index = 0 then

e.item.checked = true

e.item.enabled = false

endif

 

which results in a greyed out Text, but still enabled Checkbox.
See attached picture

Kind regards Marco

Kalina
Telerik team
 answered on 27 Jul 2011
1 answer
132 views
Hi,

Given:
- I have an AjaxControlToolKit TabPanel.
- I have a radgrid in a tab with Master Table and Detail Table views. I am using Client hierarchy mode.
- I have having a dropdown in master table ItemTemplate. A selected index changed event is handled in code behind.
- I have a textbox in detailtable ItemTemplate. A javascript function is called on click of the textbox where I send textbox's Client ID. Inside the javascript function, I use document.getElementById() to get the DOM object of textbox.

Problem:
- When grid loads for the first time, everything works fine. I expand child items, click on texboxes and document.getElementById() gets me the textbox object.
- But when I click on dropdown, change the selected item and the grid loads back.
- Now when I open a child item and click on textbox, document.getElementById() throws a null reference error.
- I checked the viewsource, I was able to find the textox with id. But document.getElementById() is not able to locate it.

I believe this has something to do with Ajax and viewstate of DetailTable views but I dont know where the problem. Please help me pinpoint the issue and find a solution.

Regards,
Himalay
Pavlina
Telerik team
 answered on 27 Jul 2011
1 answer
89 views
Hi supporter,

I meet a problem, if i disabled the javascript of the browser, the upload control can't display.
So i want to check if the upload control is created by js?

Thanks.
Peter Filipov
Telerik team
 answered on 27 Jul 2011
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?