Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Is it possible for the text for resources to word-wrap.  Please see attached.
Plamen
Telerik team
 answered on 23 Apr 2012
1 answer
58 views
Hi,

I use RadPanelBar inside a Div, and I have RadComboBox under the RadPanelBar.
When I expand the RadPanelBar, it push the RadComboBox down.
Is there a way to expand the RadPanelBar in a way that it will be opened and "hide" the RadComboBox (like when you open the RadComboBox and it "hides" everything under).

Attached print screen named "Opened", to see the result.I expect that the RadPanelBar will hide the combo box.
Kate
Telerik team
 answered on 23 Apr 2012
4 answers
177 views
Hi everyone,
i want to add an ImageColumn at the end of a RadGrid which is using a DataTable as DataSource.
DataTable dtTable = objTest.ReturnsDataTable();
RadGrid2.DataSource = dtTable;
RadGrid2.DataBind();
GridImageColumn gridImageCol = new GridImageColumn();
gridImageCol.ImageUrl = "/images/stift_icon.gif";
GridImageButton gridButton = new GridImageButton(gridImageCol);
gridButton.OnClientClick = "testAlert";
 
 
RadGrid2.DataBind();
RadGrid2.Columns.Add(gridImageCol);
//RadGrid2.Rebind();
RadGrid2.DataBind();
Because of the Source (i guess) i need to call the Binding-Metod, so that the row can be added (at the end).
If i just now add the Column without calling DataBind() or Rebind() again, the ImageColumn will not be shown. And by using those methods, the ImageColumn is the first Column.

Is there a way to solve this?
Is it maybe possible to switch the position of the columns? (I could use this in another case).

Thanks in advance,
Marcel
Maria Ilieva
Telerik team
 answered on 23 Apr 2012
1 answer
131 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
125 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
97 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
88 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
70 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
140 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
111 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?