Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
343 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
95 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
85 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
69 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
241 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
465 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
122 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
162 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
106 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
4 answers
189 views
I have radmenu control on my web page.
on chiled menu click i want to know the root menu text name in

RadHistorickMenu_ItemClick() menthod.



can any1 help me on this??


         <telerik:RadMenu ID="RadHistorickMenu" Skin="MenuSkin" runat="server" EnableEmbeddedSkins="false" OnClientItemClicking="OnClientItemClicking"
                            EnableRoundedCorners="true" EnableShadows="true" Width="100%" OnItemClick="RadHistorickMenu_ItemClick"> 
                            <Items>
                                <telerik:RadMenuItem Text="Quarterly" >
                                    <Items>
                                        <telerik:RadMenuItem Text="I S"/>
                                        <telerik:RadMenuItem Text="O D"  />
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Annual" >
                                    <Items>
                                        <telerik:RadMenuItem Text="I S"  />
                                        <telerik:RadMenuItem Text="O D"  />
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>


i mean on click of IS or OD, it will give me Quarterly / Annual name.

Kate
Telerik team
 answered on 27 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?