Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
440 views

I recently had a project upgraded from Telerik 2009.2.702.35 to 2014.1.403.40.  In my RadGrid_ItemDataBound event, I get the values from two of my bound columns and construct a string that I assign to a hyperlink column.  Prior to the upgrade, my code worked (and still works in an unconverted version).  After the upgrade, my code doesn't seem to work any longer.  It looks like one of my bound columns isn't getting assigned a value and contains the blank value default text "&nbsp"  now and I'm not sure why. When I interrogate the item row variable, I can see the data values in the ItemArray collection, but it doesn't seem to be available to me as a table column value when I try to extract it using the column's UniqueName.   In the code snippet below, the second value called "NIIN" is there, but the first value called "PIIN" ,isn't( I've verified that the SQL code that I'm using is extracting a value).  I can't explain why some of my bound columns don't contain data any longer and other columns do.    Any help that you can provide would be appreciated.

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
       if (e.Item is GridDataItem)
         {
            if (e.Item.OwnerTableView.Name == "LTC_ITEM")
                {
                  GridDataItem item = (GridDataItem)e.Item;
                  HyperLink hl = (HyperLink)item["LinkCol"].Controls[0];
                  if (hl != null)
                    {
                        string link = "itemdetail.aspx?PIIN=" + item["PIIN"].Text + "&NIIN=" + item["NIIN"].Text; ;
                        hl.NavigateUrl = link;
                    }

                    LTCHeader header = (LTCHeader)FormView1.DataItem;
                    if ((header != null) && (header.IsTerminated()))
                    {
                        GridDataItem di = (GridDataItem)e.Item;
                        DataBoundControl minQtyPerOrder = (DataBoundControl)di["MIN_QTY_PER_ORDER"].Controls[0];
                        DataBoundControl maxQtyPerOrder = (DataBoundControl)di["MAX_QTY_PER_ORDER"].Controls[0];
                        DataBoundControl maxQtyAvail = (DataBoundControl)di["MAX_QTY_AVAIL"].Controls[0];
                        minQtyPerOrder.Enabled = false;
                        maxQtyPerOrder.Enabled = false;
                        maxQtyAvail.Enabled = false;
                    }
                 }
           }    
     }

Shinu
Top achievements
Rank 2
 answered on 13 Jun 2014
2 answers
93 views
I want to hide the grey column on the left side of the gridview.
I column has a arrow on it, i think its a selection column.
Tiaan
Top achievements
Rank 1
 answered on 13 Jun 2014
1 answer
76 views
I am wondering if there is any way for the RadPersistenceManager to also retain the expanded item(s) of a Hierarchical Grid that is also utilizing paging/sorting/filtering.

I am aware of some older posts that discuss retaining the expanded item of a hierarchal grid but was wondering if I am missing something in particular to the RadPersistenceManager to have it retain this information for me.

Kostadin
Telerik team
 answered on 13 Jun 2014
6 answers
163 views
Hi

There are two radcomboboxes in the ASPX with MetroTouch skin and I want to add some different custom styles to the radcomboboxes as shown below.

<telerik:RadComboBox ID="rcbModelName" runat="server" Skin="MetroTouch" Width="100%"
EmptyMessage="Select Model" Height="120px">
</telerik:RadComboBox>
<telerik:RadComboBox ID="rcbColor" runat="server" Skin="MetroTouch" Width="100%"
EmptyMessage="Select Color" Height="120px">
</telerik:RadComboBox>
 
.RadComboBox_MetroTouch .rcbInputCell
{
      border: 1px solid Gray !important;
      background: #FFFFFF url("../Images/Icon1.png") no-repeat 3% 55% !important;
      text-indent: 12%;
}

When I apply the above style, its getting applied to all the radcomboboxes in the page with MetroTouch skin.

So how can I apply the above CSS using the ID so that it will be applied to the corresponding radcombobox only and similarly I can provide some other custom styles to the other combobox as well.

Thanks,
Vishnu.
Vishnu
Top achievements
Rank 1
 answered on 13 Jun 2014
2 answers
132 views
Good day

I have a website where i create dynamic radgrids.

Each radgrid will have 3 rows .

i would like to hide my itemtemplates in row 1 and row 2.

The itemtemplates are checkboxes, these checkboxes should be hidden on row 1 and 2.
Princy
Top achievements
Rank 2
 answered on 13 Jun 2014
1 answer
112 views
I want my RadButton to fill the width of a container (a container whose width depends on the screen resolution). But if I do this via css (width: 100%!important; in the css-class added to the button), the button stretches out to the right, but the text does not move right. Causing the button text to look aligned to the left, rather than to the center.

How do I fix this?
Shinu
Top achievements
Rank 2
 answered on 13 Jun 2014
1 answer
1.0K+ views
I have a radgird that has a three level hierarchy.  I want to be able to expand ALL levels of a specific record when the expand button is clicked at the ROOT level of the radgrid.  **My radgrid may have two or three detail tables at one level with hiearchy levels binded to some of those tables.  I want all those levels to be opened with one click at the root level for a specific record in my radgrid.  I am using HierarchyLoadMode="Client" so I believe I need to code this in javascript.  Refer to the picture attached to this post to visually see my RadGrid.  Please Assist!
Viktor Tachev
Telerik team
 answered on 13 Jun 2014
1 answer
146 views
Hi

I would like to use the Telerik controls in multiple languages (german, french, italian, english) in more than one applications.
My idea was to translate the labels with resource files (.resx) and put the files on a central server, where every application can use them.
But now i have to set the "LocalizationPath" property on every Telerik control.

Is there a global configuration i can set for the LocalizationPath? Maybe in the web.config?
Or is there another solution for my problem?

Thank you very much!

Best regards,
Mathias
Rumen
Telerik team
 answered on 13 Jun 2014
2 answers
166 views
Hi Guys,

In my edit form template, I need to open a panel that holds a RadEditor on the conditional selection from a RadComboBox that is also in the edit form template.
So for example, if the user selects'add extra details' a panel will open with an editor.

Cheers in advance,

Jon

 
Jon
Top achievements
Rank 1
 answered on 13 Jun 2014
1 answer
89 views
Hello everybody,

again I have a Problem I simply can not get solved. I have a databound RadGrid with several pages.
All the grids rows are in EditMode and shall stay in EditMode. I handle the Updating with an own
routine. Now when I apply changes to some Entries on one page and then change the page to edit
some more, the entries on the initial page are Reset. 
I guess I know why this is happening. As long as I do not fire my SQL update method, the underlying
database is logically not updated. As to keep all rows permanently I copied this example into my
PreRender. As this implies rebinding and fires every time i change the page the orginial SQL
data is loaded. Am I right about this (just for my understanding)?

Is there any approach to achieve what I want to do.

Thank you very much!

Max
Princy
Top achievements
Rank 2
 answered on 13 Jun 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?