Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
318 views
I have a radgrid with template column as follows :

 <telerik:GridTemplateColumn UniqueName="Priority" DataField="Priority" HeaderText="Priority"
                        ItemStyle-Width="125px" HeaderStyle-Width="125px">
                         <ItemTemplate>
                            <asp:Literal ID="ltlPriority" Text='<%# string.IsNullOrEmpty(Eval("Priority").ToString()) ? 0 : (int)Eval("Priority") %>'
                                runat="server"></asp:Literal>
                        </ItemTemplate>
                        <EditItemTemplate>  
                            <telerik:RadComboBox ID="cmbPriority" runat="server">                          
                            </telerik:RadComboBox>     
                        </EditItemTemplate>
 </telerik:GridTemplateColumn>

I have to populate the cmbPriority Combobox with numbers equal to total row count.
(if row count is 5, the combobox should show 1,2,3,4,5)

OnItemDatabound this is what I have ::

 if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = (GridEditableItem)e.Item;
                object tmpobj = item.FindControl("cmbPriority");
                if (tmpobj != null)
                {
                    RadComboBox ddc = tmpobj as RadComboBox;
                    int nbrofrows = rgProducts.MasterTableView.Items.Count;
               
                    List<ProductPriority> priorities = new List<ProductPriority>();
                    //List<int> priorities = new List<int>();
                    for (int i = 1; i <= nbrofrows; i++)
                    {
                        ProductPriority pp = new ProductPriority();
                        pp.Priority = i;
                        priorities.Add(pp);
                    }
                    ddc.DataSource = priorities;
                    ddc.DataTextField = "Priority";
                    ddc.DataValueField = "Priority";
                    ddc.DataBind();
                }
            }

On "Add" command, nbrofrows has the right count.
 But, On 'Edit' command, the count is always zero.

Thanks !!!!
Sri
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Aug 2012
1 answer
104 views
Hi, i'm having a problem with the rendering of multiline items.
Attached goes an image of the problem.
I'm using Web20 Skin, this style and code
.WrappingItem
{
    white-space: normal !important;
}
 
 protected override void OnItemCreated(RadMenuEventArgs e)
        {
            e.Item.CssClass = "WrappingItem";
         //   e.Item.GroupSettings.Flow = ItemFlow.Vertical;
            base.OnItemCreated(e);
        }


Can anyone tell me how can i solve this "problem"?
thank you

Ivan Zhekov
Telerik team
 answered on 08 Aug 2012
8 answers
619 views
Hi,
I am using Telerik rad grid version 2010.1.519 in VS 2010 project.
Is it possible to have select All check box at row level? For example, if select check box at column 1 and row 1, all check boxes should be checked in the row1 like attached the screenshot (2nd row).
Could you please help me?
Thanks
Rhbkv
Top achievements
Rank 1
 answered on 08 Aug 2012
2 answers
344 views
With the old Telerik grid I could call row.Index client-side and get the index of the row within the page.

I can't seem to find anything equivalent with the new grid - am I missing something obvious?

Thanks,

Stephen
mathieu cupryk
Top achievements
Rank 1
 answered on 08 Aug 2012
1 answer
103 views
I need disable the drag and drop for some columns such as : Update, Delete and select.
It is possible?

thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Aug 2012
4 answers
194 views
It seems there is a bug when RadDock ClientIdMode is set to Static, which prevents RadDock from closing when clicking "x".
Marin Bratanov
Telerik team
 answered on 08 Aug 2012
2 answers
75 views
This is an intermittent error that I am experiencing. This occurs after the file has been successfully uploaded and processed by my custom handler. However it does not happen on every upload, and it will happen/not happen even when uploading the same file multiple times. All the lights are green and the files exists on the server. We use version 2011.1.519.35. This error occurs in IE. The control sits inside of a jQuery dialog but not inside of an update panel or anything.

Here is the markup around the control:
<EDIT: Code removed>
and here is the code for my custom handler:
<EDIT: Code removed>
Any ideas what is causing this issue?
Plamen
Telerik team
 answered on 08 Aug 2012
0 answers
120 views
        protected void btnExportToExcel_Click(object sender, EventArgs e)
        {
            radgridSentiment.ExportSettings.IgnorePaging = true;
            radgridSentiment.MasterTableView.ExportToCSV();
            radgridSentiment.MasterTableView.GetColumn("columnTweetID").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnBusinessAreas").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnLocation").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnAuthorLocationContinentCode").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnAuthorLocationStateCode").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnAuthorLocationRegionCode").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnAuthorLocationCountryCode").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnDataSourceIndustry").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnDataSourceCoverageArea").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnDataSourceBusinessArea").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnLifeStyle").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("DataURL").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnUserID").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnSelect").Visible = false;
            radgridSentiment.MasterTableView.GetColumn("columnAction").Visible = false;
            radgridSentiment.MasterTableView.GetColumn("columnTweetDataExport").Visible = true;
            radgridSentiment.MasterTableView.GetColumn("columnTweetData").Visible = false;
}
Hello,

I have a button on click of which i export the data of a grid in csv format, and i have some columns having integer values in 15+ digits, the problem is that when the data of grid is exported i find the value in exponent form ie. if the value is 232837539508146000 than i am getting it as 2.32837E+17, i want the value as it is.

its urgent!

Thanks in advance!

With Regards,
Peeyush Pandey
Peeyush
Top achievements
Rank 1
 asked on 08 Aug 2012
3 answers
329 views
What i want to accomplish is a simple reorder rows within the radgrid with drag and drop, i was checking this example Grid / Items Drag-and-drop but that is between 2 RadGrid, works fine if you try to reorder the rows in the same RadGrid, but still doing a lot of stuff in the server side with list. There is any way to do it just with the current griditems without having a list in the backend? 
Pavlina
Telerik team
 answered on 08 Aug 2012
8 answers
596 views
Hi

I have several radcombos with EnableCheckAllItemsCheckBox="true" and all dropdowns are "all checked" by default, but once you uncheck items on the first radcombo, datas on other radcombos will be changed as well during onradcombobox closed/onblur/onlost focus/etc. How can I call server side event during dropdownclosed with checked items will be the filter for populating other dropdowns. Please note that server side event will fire only when there are changes made with the first dropdown so that it would not make same query to the database with just same values in return (is this possible?)  

Thanks in advance,
RJ
RJ
Top achievements
Rank 1
 answered on 08 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?