Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 views
ello I've got some problem wih the paging of Telerik RadGrid Control! When it's first page - there is no problem it loads me three rows as I have givenpageSize property value - "3". But when I try to get to the second page - it gives me an error:

39e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404


Here is my aspx file

<
telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false" AllowCustomPaging="false" AllowPaging="True" PageSize="3" OnPageIndexChanged="RadGrid2PageIndexChanged" OnNeedDataSource="radGridOnNeedDataSource" ><br>                          <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" PageSizeControlType="RadComboBox"></PagerStyle><br>                             <MasterTableView><br>                                <Columns><br>                                      <telerik:GridBoundColumn DataField="ArticlegroupID" HeaderText="ArticleGrouipID" UniqueName="groupID">                           <br>                                      </telerik:GridBoundColumn><br><br>                                       <telerik:GridBoundColumn DataField="SpecialWord" HeaderText="ProductDescription" UniqueName="ProductDescr" ><br>                                       </telerik:GridBoundColumn>  <br>                                       <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="ImageFile"<br>                                            AlternateText="Customer image" <br>                                            ImageAlign="Middle" ImageHeight="100px" ImageWidth="82px" HeaderText="Image Column"><br>                                       </telerik:GridImageColumn>   <br>                                </Columns><br>                             </MasterTableView><br><br><br><br>                      </telerik:RadGrid>

And here is my cs File with only one function in which I get the data for datasource from a web service and bind it to the radGrid:

 protected void radGridOnNeedDataSource(object source, GridNeedDataSourceEventArgs e)    
{  RadGrid p_RadIconProducts =
this.FindControl("RadGrid1") as RadGrid;            
   List<WebServiceBeaMenu> radTileIcon =
new List<WebServiceBeaMenu>();
   
 radTileIcon = MvcBeaDAL.WebServiceBea.GetArticle(p_menuID, p_articlegroupID, 1).ToList();            p_RadIconProducts.DataSource = radTileIcon;<br>           
   p_RadIconProducts.MasterTableView.VirtualItemCount = radTileIcon.Count;<br>            p_RadIconProducts.CurrentPageIndex = p_RadIconProducts.MasterTableView.CurrentPageIndex;<br><br><br>        }
Viktor Tachev
Telerik team
 answered on 19 May 2014
1 answer
131 views
Sir, I have a grid , its containing template columns and bounded columns,
  Onclientclicked event of a check box column , i do all checkbox expect the current cell are set  false.
this code is working correctely 
, but i also need  another bounded columns values are displayed, thats colums are visible is false.

please help me.
very urgent.

by , seban
 
Princy
Top achievements
Rank 2
 answered on 19 May 2014
1 answer
162 views
All,

I have table which is build in .net, dynamically (server side), which shows me an overview of all people that need to work on a specific day for a specific area.

A list is fine, but I would like to visualize this for users. I have multiple working area's and up to 20 people working per working area per day, so putting it all into an outlook style calender overview is useless as it will become to complicated.

I now had the idea to add a HR per entry (tr) which would correspond to the hours they need to work. (some like a range bar)

Attached the screenshot where i added the green lines in paint, to show what i'm trying to achieve. (The table is in Dutch but you can easily see what the working hours are)

Is there any telerik control that would offer this functionality?

Shinu
Top achievements
Rank 2
 answered on 19 May 2014
11 answers
517 views
Hi,
In one of a form in our application we have a rad combo which updates itself with data everytime we change some parameters in form. We are using a webservice to get the list of  RadComboItemData and bind on the client side.

When we bind whats happening is that the last selected text still remains visible even if its not in the new list. We have a required field validator for the list. If I manually do select on the first item (First item displays a message that an item must be selected) of the new list using comboItem.Select() it launches validation and dispalys our required field validator that an item must be selected.
 
Is there a proper way of doing it so that new list populates itself without any garbage left over from the last binded data?

My second question is can we do validation on value of the selected item instead of text?

Thanks in advance for your help.

Best regards,
Khurram

Client side binding function

function bindCombo(combo,result){     
            
        var items = combo.get_items();  
        items.clear();  
        for(var i=0;i< result.length;i++){  
            var comboItem = new Telerik.Web.UI.RadComboBoxItem();  
            comboItem.set_text(result[i].Text);  
            comboItem.set_value(result[i].Value);  
            items.add(comboItem);  
            if (i == 0) {  
                comboItem.select();  
            }  
        }        
 

 

Anshuman
Top achievements
Rank 1
 answered on 19 May 2014
1 answer
91 views
When you select a file to upload first attach only one photo-Loading and the progress is not displayed. So when you select the file, close the window and back to the normal upload. If you select a file, then upload again reloading the phenomenon of the show will be repeated only. I would like to know why it does this??
Shinu
Top achievements
Rank 2
 answered on 19 May 2014
5 answers
189 views
Hi
I'm trying to drop a listbox row into a full grid.
The grid have 10 row and there is no extra space into the grid where dropped my listbox row. I thought the event had to be fired even if I dropped the row on a grid row but nothing happens.

Thanks
Shinu
Top achievements
Rank 2
 answered on 19 May 2014
1 answer
483 views
       
Hello, I want to make some rows selected from code-behind according to values from database
 
Client Side  
 <telerik:RadGrid ID="Grid" runat="server" AllowPaging="True" 
                          PageSize="5"     Width="100%"    OnPageIndexChanged="GridCourse_PageIndexChanged"
                          OnPreRender="Grid_PreRender"
                            GridLines="None" Skin="Vista" AllowMultiRowSelection="True" >
                            <MasterTableView DataKeyNames="CHOOSE"   >
                            <Columns>
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"  ></telerik:GridClientSelectColumn>                               
                             </Columns>
                            </MasterTableView>
                             
                            <ClientSettings EnableRowHoverStyle="true"  >
                                <Selecting AllowRowSelect="True"  />
                            </ClientSettings>
                        </telerik:RadGrid>    

Code-behind
Here is what I'm doing with no success....
protected void Grid_PreRender(object sender, EventArgs e)
        {
                 if (!IsPostBack)
                {
                    foreach (GridDataItem item in GridCourse.MasterTableView.Items)
                    {
                        if (item.GetDataKeyValue("CHOOSE").ToString().ToUpper() == "Yes".ToUpper())
                        {
                            item.Selected = true;
                        }
                    }
                }
      
        } 
Princy
Top achievements
Rank 2
 answered on 19 May 2014
3 answers
436 views
Hello,
see picture below,

i have 4 GridClientSelectColumn check box in radgrid ,
What i selected that only select but full row selected ,AllowMultiRowSelection= true

Thanks,
Mohamed.
PPRINC
Top achievements
Rank 1
 answered on 18 May 2014
1 answer
79 views
Is it possible to switch the view on the Scheduler so that the time is along the top with the days down the side? If it is could you tie this switch to a button control?
Boyan Dimitrov
Telerik team
 answered on 18 May 2014
4 answers
840 views
Hi

I want to display a column while adding a new record and normal display (ie.. in grid) but want to hide just in edit mode. Please let me know how can i achieve that both while using template columns and grid bound columns. Please respond to me ASAP.



Thanks,
Deepika
Princy
Top achievements
Rank 2
 answered on 17 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?