Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
357 views
Hi there,
I am creating a radgrid dynamically in page load. i have added autogenerated delete column as guided by Princy and is working great. my new issue with that grid is that i am adding two more columns to that radgrid as below(in page load itself).  
Dim updateColumn As New GridButtonColumn()
    radGdItems.MasterTableView.Columns.Add(updateColumn)
            updateColumn.CommandName = "Update"
            updateColumn.Text = "Update"
            updateColumn.UniqueName = "Update"
            updateColumn.Visible = False

boundColumn = New GridBoundColumn()
        radGdItems.MasterTableView.Columns.Add(boundColumn)
        boundColumn.UniqueName = "WarningIcon"
        boundColumn.ItemStyle.Width = Unit.Pixel(25)
        boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center
also adding detail table like this
Dim tableViewWarnings As New GridTableView(radGdItems)
            tableViewWarnings.Name = "DetalTable1"
            radGdItems.MasterTableView.DetailTables.Add(tableViewWarnings)
            boundColumn = New GridBoundColumn()
            tableViewWarnings.Columns.Add(boundColumn)
            boundColumn.DataField = "Warning"
and am managing the visibility of these three items in prerender as follows

For Each dataItem As GridDataItem In radGdItems.MasterTableView.Items
                    If condition = true Then
                        radGdItems.AllowMultiRowSelection = True
                        radGdItems.Columns.FindByUniqueName("Update").Visible = True
                        dataItem.Selected = True

                        ExpandColumnVisible = True
                        dataItem("WarningIcon").Visible = True
                        dataItem.Item("WarningIcon").Text = "<img src=""../Images/Warning.gif"" />"
                    Else
                        dataItem("Update").Text = "&nbsp;"
                        Dim cell As TableCell = dataItem.Item("ExpandColumn")
                        cell.Controls().Clear()
                        dataItem("WarningIcon").Text = "&nbsp;"
                    End If
                Next

I mean, these columns (the warning icon column and expand collapse column) are visible based on a condition. 
this grid is in one radtab inside a usercontrol and i have another radtab containing a grid in the parent page. An update in the parent page grid row can set the condition for the column visibility to true. 

Suppose,initially the update column, warningIcon column and detail table is not visible for the rows in the dynamically created grid, and when i update a row in the parent page, the condition is set to true,and this entire code works(i mean control flows through this code) setting those columns visible = true. but the initially hidden columns does not become visible. instead the dataItem.Selected = True line only works. that means, the rows, where actually these columns need to be visible become selected, but columns not visible.

i have applied ajax in the parent page grid as
<telerik:AjaxSetting AjaxControlID="radGdVM">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGdVM"  LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="UserControl1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
if i do a complete postback in the page, the columns become visible.
what is wrong with my code and what i need to do to make the columns visible?

Expecting some good advice,

Regards

Veena
Andrey
Telerik team
 answered on 27 Jun 2013
1 answer
82 views
Hi,


I have a master page with an asp:ContentPlaceHolder in which i'm loading several pages all containing radgrids.
In master i;ve declared  
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server" ViewStateMode="Enabled" EnableViewState="true"><br>                </telerik:RadScriptManager>
I managed to isolate the problem.If in master page i'm using any telerik control (for example RadCaptcha), the grids called in content are not inserting or updating.If i remove any telerik control from master, they all behave as expected.
Can you please tell me what am i missing?

Correction : Only with radcaptcha grids behave in the way described above.I tried with datepicker and its working.
Konstantin Dikov
Telerik team
 answered on 27 Jun 2013
2 answers
168 views
Hello,
I am using a RadToolbar Control within a page where almost there is no post back.
One of the features that this page has, is multiple themes.

Now, I need to set the skin of the RadToolbar based on my theme. 
I see that the client side API of the RadToolbar object contains a "get_skin" method which correctly returns the name of the server-side assigned skin name. But the object has no "set_skin" method. 

All I am asking is that whether there is a way to change a toolbar's skin which client side code, or not; and if not, what other ways do you suggest.

Thanks
Maziar
Top achievements
Rank 1
 answered on 27 Jun 2013
3 answers
113 views
Good day,

we could use some help in regards to the subject.
We have a web service which replies clientside to radgrid item selections, and which works as intended.
The problem is that, when we try to use the same function call inside of the OnClientItemClicking we've set for the RadMenu, the function call fails for an unknown reason, simply triggering the OnFailed event of the call.

The call context is the expected one, and we can actually debug the c# function call from the javascript event, and even see that our intended  return = "ok" statement is stepped over, but the OnSuccess event of the web service is never called inside of the OnClientItemClicking.
The same OnSuccess event is instead called regularly when the event fires under the radgrid.

Any idea is appreciated.
archimede
Top achievements
Rank 1
 answered on 27 Jun 2013
2 answers
98 views
We are using AsyncUpload with RadProgressArea. We do allow multiple uploads. Using manual upload as well.

I am trying to display a message when all of the files have been uploaded. On larger files there is a delay when the RadProgressArea hides and the files are actually saved. (We do some further processing.)
Is there an event that shows when all files are uploaded or when the RadProgressArea is hidden?

I tried "OnClientProgressBarUpdating" in RadProgressArea  but it does not fire. I also tried OnClientProgressUpdating on the upload but it fires for each file.

I would like a client side event that says all completed.

Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
66 views

I am using Telerik's RadRotator control in my webapplication project and when I  set PostbackURL property of an ImageButton in ItemTemplate of RadRotatorItem, I get the following exception 

Microsoft JScript runtime error: Object expected.

This exception is thrown when I set 

 <telerik:RadRotatorItem >
                                   <ItemTemplate>
<asp:ImageButton ID="ImageButton3"  runat="server"  AlternateText="Maritime" ImageUrl="~/Images/index_maritime_red.jpg"
PostBackUrl="http://harriscaprock.com/maritime.php" />
                                       
                                   </ItemTemplate>
                              </telerik:RadRotatorItem>

But If I set the PostBackURL to "http://www.yahoo.com" I don't get the exception.

Thanks
Madhu

Slav
Telerik team
 answered on 27 Jun 2013
1 answer
107 views
Hi,

I have a Rad Grid with 150 records . My business user doesn't want pagination.I have to show all the records in initial load itself.
One of the columns contains a Rad Combobox with multi column.Rad grid loading is taking lot of time. 

Please suggest a solution for this.

Thanks & Regards
Himagiri
Princy
Top achievements
Rank 2
 answered on 27 Jun 2013
1 answer
57 views
Hi Team,
I have a radgrid with ClientSelectColumn.
I select one row on first page of the grid, move to the second page and select one more row on that page.
When I come back to the first page, I can't see which row I had selected. It doesn't persist.
So on a button click event, I get items only from the current selected page.

Is there any way I can come over this?
Any help appreciated.

Thanks,
Lok..
Angel Petrov
Telerik team
 answered on 27 Jun 2013
1 answer
234 views
Hi,
I am trying to upgrade our project with the latest version of Telerik RadControls as we are facing some issues with IE10, part of that downloaded the latest Telerik.Web.UI. After installing it on my machine, updated the asp.net project references to this new dll and successfully build. Then deployed the latest project dlls along with Telerik.Web.UI onto the Dev server. When I browse the web page, I am getting the below error.

Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1317.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Updated the web.config with the settings mentioned here, but no luck.

The latest version of the dll is 2013.2.611.40 but it is still referring to the old dll 2010.3.1317.40.

Any help would be appreciated.

Thanks.

Regards
Jeevan
Marin Bratanov
Telerik team
 answered on 27 Jun 2013
1 answer
319 views
I have a table that has a column of RadComboBox controls and a column of CheckBox controls so that each ComboBox has a CheckBox next to it. When the checkbox next to a ComboBox is checked/unchecked, I want to use JQuery to disable/enable the corresponding ComboBox. Each CheckBox has a "check-all" class. I am having trouble with the syntax for doing this, but I was able to get close using examples I found. The code below successfully enables and disables all ComboBox controls on the page (because of the "each" function). However, I just want to find the corresponding ComboBox next to the CheckBox, then disable it and I want to do this with only one function. 

$('.check-all').click(function () {
    var checkbox = $(this).find('input:checkbox:first')
    $('.RadComboBox').each(function () {
        var combo = this.control;
        if (checkbox.is(':checked')) {
            combo.disable();
        }
        else {
            combo.enable();
        }
    });

Here is another working example where I specify the CheckBox and the ComboBox specifically. But, I am trying to do this with a single function because I have 30 ComboBoxes and don't want to have to copy and maintain the below code 30 times.

$('#<%= cbxOne.ClientID %>').click(function () {
    var combo = $find("<%= cmbOne.ClientID %>");
    if ($(this).is(':checked')) { combo.disable(); }
    else { combo.enable(); }
})
Plamen
Telerik team
 answered on 27 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?