Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
155 views
Hi,
Thanks for your attention,I am now getting a problem with radgrid,the requirements : I use the method to keep the checkbox state,that is the selected rows state,while paging.this method can reference the url:http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html, but now,I want to the other radgrid named selectedItems,can record the former radgrid's selected rows at the same time,for example,when you selected one row of the former radgrid,the selectedItems radgrid will add the selected row;when the user cancel selected row,the selectedItems will remove the row;when the user select the all selected button(in the header of the grid which can control the current page's rows),the selectedItems radgrid control will add the whole selected rows in time,what should I do now?another question is,if the former radgrid contans [ "id","name""sex"],but the selectedItems contains the["id","name","address"],here,we suppose the id is the keyname,and an item contains fields:["id","name","sex","address"],
the former radgrid control's record :

          id         name     sex
   '1001'  'Tony' 'male'
     '1002 '    'Suny'     'female'

now,When I select the fist row,id is '1001',then the following selectedItems will add the row:

         id          name      address
   '1001'  'Tony'  'Shanghai,China'

of couse,when I re-select the former radgrid's row,with the id is '1001' ,the selectedItems will remove it accordingly.Please had better not use the session,if you think the session is available,please account for that,I am a rookie,Thanks!

omer
Top achievements
Rank 1
 answered on 08 Apr 2012
1 answer
344 views
in the editform, I have a textbox that allow user input double and I have RadInputManager with NumericTextBoxSetting set to Type="Number" attached to that textbox.

now when I bring up the editform to edit existing record, the number 1628.87 is automatically format to 1,628.87, now when I click update, the method UpdateValues in method xxx_UpdateCommand throws exception:"1,628.87 is not a valid value for Double"

is this a bug? Thanks.
Henry
Top achievements
Rank 1
 answered on 08 Apr 2012
2 answers
156 views
Hello ,
I use RadNotification control to notify my users about some new events that happens on server.
Everything is works fine , but now I have some new scenario  : should be notification even if the browser is minimized ,
I can use java script timer  and open new window , but i want to use the RadNotification control.

Any suggestion for me ?
Thank you.

dima kramskoy
Top achievements
Rank 1
 answered on 08 Apr 2012
2 answers
115 views
when in edit or add new record form, how can I set the focus to a particular textbox?

thanks.
Henry
Top achievements
Rank 1
 answered on 08 Apr 2012
3 answers
112 views
three columns in the grid, I want to the aggregate value in the third column = sum(first column) / sum(second column) -1, and show it in percentage. I guess this has to be done in the code behide, how to wire that?

Thanks.
Henry
Top achievements
Rank 1
 answered on 08 Apr 2012
1 answer
59 views
Can the menu system on the http://www.tractorsupply.com site be reproduced with a database menu combining RadMenu and SiteMap?  Click on Shop on their site then select agriculture.  You'll what looks like a site map.
Daniel
Top achievements
Rank 1
 answered on 08 Apr 2012
2 answers
129 views
Hi,

I am using GridEditCommandColumn and the ButtonType is set to ImageButton.

<

telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"  

 

UpdateText="Save" CancelText="Cancel"  

 

EditImageUrl="Images/Edit.gif">

 


In edit mode, I want an image to be displayed on Edit and text for Update and Cancel as in the code above. Is it possible to achieve?
On changing the ButtonType to LinkButton, the edit image is not displayed but replaced with 'Edit' text.
Karthikha
Top achievements
Rank 1
 answered on 07 Apr 2012
2 answers
246 views

I can write a code. In this I can take a Template Column & in this I build a RadCombobox. When it's Index changed I want to affect the below text box. Link the selected value of the Combo box is set as Text on Below TextBox. Combo Box & Text Box are different Controls of Different Template Column.

I can Write Control of Combo box like this :

<telerik:RadComboBox ID="cmbGID" runat="server" DataSourceID="SqlDataSource8" DataTextField="Name"
                        DataValueField="ID" AutoPostBack="True" OnSelectedIndexChanged="cmbGID_SelectedIndexChanged">

But I don't know the parameters of this event like this :

protected void cmbGID_SelectedIndexChanged()
{
       //code...
}

Any one plz tell me that parameters & tell me is that possible to set txtValue.Text = cmbGID.SelectedValue.ToString()...???
& also I can fire a query using cmbGID.SelectedValue & set the other combobox's(this is also a control of template column) datasource...

Note: This all controls of Template Column are InsertItem Template...

Ankur
Top achievements
Rank 1
 answered on 07 Apr 2012
1 answer
213 views
I have a page with a RadListView with pagers, inside a RadAjaxPanel.  When you go to the next page, it shows the loading panel properly in IE 9.  In Chrome, it only shows it the first time or two, then doesn't show it at all.  Also, when that happens, for some reason the page size dropdown list is locked up until I refresh the whole page.  What's going on here?

You can see this in action at http://marinebio.org/search/

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
<h1><a href="/search/">Marine Species</a></h1><h6 onclick="expandcontent('groups1')" style="cursor:hand;cursor:pointer">
+ Browse by Group</h6>
<div id="groups1" class="switchcontent">
....
<div class="mb-sort"><asp:DropDownList ID="SortDropDownList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="SortDropDownList_SelectedIndexChanged">
 <asp:ListItem Value="comname">Sort by Name</asp:ListItem>
 <asp:ListItem Value="family">Sort by Family</asp:ListItem>
 <asp:ListItem Value="genus">Sort by Genus</asp:ListItem></asp:DropDownList></div>
<telerik:RadListView ID="SearchRadListView" runat="server" ItemPlaceholderID="ItemPlaceHolder"
 DataKeyNames="id" DataSourceID="SearchSqlDataSource" AllowPaging="True" PageSize="12"
 BackColor="White">
 <LayoutTemplate>
 <div><div style="clear:both;width:660px;margin:0 auto 0;font-size:11px;">
 <telerik:RadDataPager ID="RadDataPager2" runat="server" PageSize="12" PagedControlID="SearchRadListView" Skin="Sitefinity">
 <Fields>
 <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
 <telerik:RadDataPagerButtonField FieldType="Numeric" />
 <telerik:RadDataPagerButtonField FieldType="NextLast" />
 <telerik:RadDataPagerPageSizeField PageSizeText="Show" />
 </Fields>
 </telerik:RadDataPager>
 </div>
 <asp:PlaceHolder ID="ItemPlaceHolder" runat="server"></asp:PlaceHolder>
 <div style="clear:both;width:660px;margin:0 auto 0;font-size:11px;">
 <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="12" PagedControlID="SearchRadListView" Skin="Sitefinity">
 <Fields>
 <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
 <telerik:RadDataPagerButtonField FieldType="Numeric" />
 <telerik:RadDataPagerButtonField FieldType="NextLast" />
 <telerik:RadDataPagerPageSizeField PageSizeText="Show" />
 </Fields>
 </telerik:RadDataPager>
 </div></div>
 </LayoutTemplate>
 <itemtemplate>
 <div class="mb-results" style="text-align:center;"><div>
 <asp:HyperLink ID="imageHyperLink" runat="server" NavigateUrl='<%# "~/species.asp?id="&Eval("id")%>'>
 <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("comname")&" - "&Eval("GenusName")&" "&Eval("SpeciesName")%>' ImageUrl='<%# Eval("pic")%>' CssClass="mbphotos" />
 </asp:HyperLink></div>
 <asp:HyperLink ID="speciesHyperLink" runat="server" NavigateUrl='<%# "~/species.asp?id="&Eval("id")%>' ><strong><%# Eval("comnamestatus")%></strong><br /><em><%# Eval("GenusName")&" "&Eval("SpeciesName")%></em>
 </asp:HyperLink><br />Family: <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/search/?family="&Eval("FamilyName")%>' Text='<%# Eval("FamilyName")%>' /></div>
 </itemtemplate>
 <EmptyDataTemplate>
 <div id="mberror"><span class="mberror">Oh crab... no species were found that match your search criteria...</span><br /><br />Please <a href="/search/adv/">modify your search</a> and try again or <a href="/oceans/contact/">contact us</a> to report it and we will look into it asap. Thank you, Best Fishes!</div>
 </EmptyDataTemplate>
 </telerik:RadListView>
 </telerik:RadAjaxPanel>
 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"></telerik:RadAjaxLoadingPanel>
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Apr 2012
1 answer
119 views
I am working a simple scenario, when the user changes a control, I would like to conditionally change a couple of Column HeaderText properties in a RadGrid.  I can get the HeaderText this way:

alert($find('<%=myGrid.ClientID %>').get_masterTableView().getColumnByUniqueName('Estimated_Qty').get_element().innerHTML);


But if I change the value like this:

$find('<%=myGrid.ClientID %>').get_masterTableView().getColumnByUniqueName('Estimated_Qty').get_element().innerHTML = 'Billed Qty';


The change does not show in the grid.

Is there another way of doing this?  a set_headerText() or something similar?  I can't find anything in the documentation.

Thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?