Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hi there,I have a radgrid in my page ,each row except some columns has agree and disagree image.
                    <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="../Img/Moderator/agt_stop-32.png" ItemStyle-Width="100px"
                    ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"  
                    CommandName="Select" HeaderText="Dissagree" />
                    <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="../Img/Moderator/Tick_32.png"  ItemStyle-Width="100px"
                    ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"   
                    CommandName="Select" HeaderText=" Agree" />

I want to check whether agree has been clicked or disagree.
something like this:
if(disagree)//clicked
{
        //if user is disagree insert 0 to table(in my db)
}
if(agree)//clicked
{
        //if user is agree insert 1 to table(in my db)
}

how can I do that?
tnx
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Apr 2012
3 answers
107 views
Hi Support

In Radgrid for asp.net , I have large number of records in Grid and there is radio button along side with every row , I also use paging and page size = 20, now how can I know which row number will be if radio button number choose by user  or suppose selected RadioButton is 80 then how can i show the radgrid paging in that page where the radiobutton is existed . By default paging starts from 1 but I need to show that page where user choose may be the page is in 8th number paging ,

See the code:
Private void Method(int number)
{
RadGrid1.Allowpaging = false;
 RadGrid1.ReBind();
 foreach (GridDataItem item in grid1.Items)
 {
  RadioButton btn = (RadioButton)item.FindControl("radiobutton1");
  string value = item.GetDataKeyValue("Questionnumber").ToString(); 
    if( value == Questionnumber)
          {
                 btn.checked = true;
RadGrid1.CurrentpageIndex = questionnumber;
}
RadGrid1.Allowpaging = true;
RadGrid1.PageSize = 20;
 RadGrid1.ReBind(); // if I write this then my Radio Button selected is not show and if I not write then paging is not show

Any suggestion will be helpful or any demo project
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Apr 2012
1 answer
85 views

In telerik gridview,  i am having checkbox, preview button, description button in each row of telerik grid once i select some checkboxes and hits download button i want to uncheck all the checkboxes that were checked earlier in the grid. is there any way in javascript  or telerik functionality to uncheck all the checkboxes after hitting download button

Princy
Top achievements
Rank 2
 answered on 23 Apr 2012
1 answer
78 views
hi all
I have 2 templateColumn in my RadGrid
first column has RadNumericTextBox and second column,contains Checkbox

I want in clientSide, when user enter a number in textbox, the checkbox of that row,be CHECKED.

how can I do that?
Shinu
Top achievements
Rank 2
 answered on 23 Apr 2012
1 answer
63 views
On the RadCalendar the strings in the month/year navigation may be localized through the FastNavigationSettings property.  I can not find this property on the RadMonthYearPicker control.  Can this control not be localized?
Princy
Top achievements
Rank 2
 answered on 23 Apr 2012
3 answers
130 views
Is itpossible to set row(alternating) color for exported document like we set in radgrid.I am using built in export button for exporting.
Princy
Top achievements
Rank 2
 answered on 23 Apr 2012
0 answers
97 views
Hi Support
I'm facing this below problem very much.  My Radgrid  Rebind() method makes selected radio button unselected   from grid. How can I fix that , see the Code

<telerik:RadGrid ID="RadGrid1" runat="server"   AutoGenerateColumns="False"
     AllowFilteringbyColumn = "true" AutogeneratedColumn="false" OnPageIndexChanged="RadGrid1_PageIndexChanging"
Allowpaging= "true" PageSize="20"
        >        
      .............
</telerik:RadGrid>

//this method is need to show radiobutton selected for user selected specifc items from another control like treeview

Private void Method(int Questionnumber)
{
RadGrid1.Allowpaging = false;
 RadGrid1.ReBind();
 foreach (GridDataItem item in grid1.Items)
 {
  RadioButton btn = (RadioButton)item.FindControl("radiobutton1");
  string value = item.GetDataKeyValue("Questionnumber").ToString(); 
           if( value == Questionnumber)
          {
                    btn.checked = true;
                    RadGrid1.MasterTableView.CurrentPageIndex = 3; // see ,here is also one problem : I write it 3 but it should be //like that  which radiobutton is selected I need to find the current page Index of that page where the selected radiobutton row is exist .
// suppose I know my desired item row is exists in CurrentPageIndex =3 , so I write this , so the paging will be selected in 3

 but I need
// to do it though code ,  like that:

 user selected any item and its number is come through above Questionnumber which I write in method parameter ,

now    if( value == Questionnumber) is true

 then radio button will be selected but How can I know that button is in which row or which page Index ,


 if I make the code like this:

 int currentpageindex = (int)(RadGrid1.MasterTableView.Items.Count /  20 ),

then suppose it comes 15 if  total count is 315 but How to get PageIndex ???????

}
RadGrid1.Allowpaging = true;
RadGrid1.PageSize = 20;
 RadGrid1.MastertableView.ReBind(); // if I write this then My selected Radio Button not selected and if I don't write then paging
is not showing

Pl give any suggestion
DEBAL
Top achievements
Rank 1
 asked on 21 Apr 2012
2 answers
118 views
Hello,

We're having the following issue:

- SharePoint 2007 SP3
- RadEditor WebPart v5.7.3.0
- RadEditorMOSS.wsp deployed to webapp
- configured web.config as outlined here: http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html

When we try to get the RADEditor Webpart programatically via the SPLimitedWebPartManager, all WebParts show up as error WebParts (not only the RADEditor WebPart, but also all SPOOB WebParts). Once we retract the RadEditorMOSS.wsp Solution, we get the WebPart back correctly.
Our issue is now, that we need the RADEditor WebPart to extract the RADEditor Content for processing. Any idea how we can get to this content?

Thanks,
André
André
Top achievements
Rank 1
 answered on 21 Apr 2012
3 answers
82 views
I have to use Appointment control from Rad Scheduler ,but at the same time I want to hide Day ,week and Month view .
Just Like this....


Please Help me ,to solve this problem...
Cat Cheshire
Top achievements
Rank 1
 answered on 21 Apr 2012
1 answer
69 views
Hi,

I create a standalone follow the instruction in the following link
http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx

my questions are:
1. there is a insert button on the dialog, is there a way to change the text from insert to Select?
2. I don't want customer select file which size is greater than 3MB, can I show up a warning message when they click insert button if the selected file is greater than 3MB or there is another way to prevent customers doing that? I tried MaxUploadFileSize but it just prevent customers uploading files.

thanks,

Rumen
Telerik team
 answered on 21 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?