Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Ever since I upgraded to Q1 2013, I have been unable to retrieve the checked rows in my grid.  This exact code below worked fine before, but not does not retrieve the record ID's - any ideas why?

Here is the checkbox column in the grid (and yes, I have datakeynames="record,email" and clientdatakeynames="record": 

<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
            <HeaderTemplate>
                <asp:CheckBox ID="cl" onclick="return check_uncheck (this );" runat="server" />
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="chk_record" onclick="return check_uncheck (this );" runat="server" />
            </ItemTemplate>
        </telerik:GridTemplateColumn>


Here is the code I to retrieve the record ID's on a button click:

Dim recArray As String = String.Empty
      For Each item As GridDataItem In grid_applications.MasterTableView.Items
          Dim chk As CheckBox = DirectCast(item.FindControl("chk_record"), CheckBox)
          If chk.Checked Then recArray += item("record").Text & ","
      Next
Princy
Top achievements
Rank 2
 answered on 28 Jun 2013
1 answer
100 views
Hi

I am loading a radcombobox from a huge sql datasource. I want to load 10 items and display a Load More text inside the combobox and clicking on it, the next 10 items will load. I need code to do this. Can anyone help?

Thanks for replying,
Needha
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2013
6 answers
792 views

I am using a radgrid with a gridclientselectcolumn as an input tool to get a list of cost centers to be included in a report.

<telerik:RadGrid ID="gridEntitiesAndCCs" runat="server" AllowSorting="True" AllowMultiRowSelection="true" 
  AutoGenerateColumns="False" GridLines="None" Width="100%">
  <MasterTableView DataKeyNames="FacilityID,CostCtr" AllowMultiColumnSorting="true">
    <SortExpressions>
      <telerik:GridSortExpression FieldName="ShortName" SortOrder="Ascending" />
      <telerik:GridSortExpression FieldName="DeptName" SortOrder="Ascending" />
    </SortExpressions>
    <Columns>
      <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderTooltip="Select all">
        <HeaderStyle Width="25" />
        <ItemStyle Width="25" />
      </telerik:GridClientSelectColumn>
      <telerik:GridBoundColumn DataField="ShortName" HeaderText="Entity" 
        SortExpression="ShortName" UniqueName="ShortName">
        <HeaderStyle Width="150" />
        <ItemStyle Width="150" />
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="CostCtr" HeaderText="Cost Center" 
        SortExpression="CostCtr" UniqueName="CostCtr">
        <HeaderStyle Width="100" />
        <ItemStyle Width="100" />
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="DeptName" HeaderText="Dept Name" 
        SortExpression="DeptName" UniqueName="DeptName">
      </telerik:GridBoundColumn>
    </Columns>
  </MasterTableView>
  <ClientSettings EnablePostBackOnRowClick="false">
    <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="150" />
    <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
  </ClientSettings>
</telerik:RadGrid>

How can I update the grid so that all of the checkboxes in the gridclientselectcolumn and in that column's header are checked when it is initially loaded?  In other words, I want the default to be that all rows are selected.

Thank you!

Dylan
Top achievements
Rank 2
 answered on 28 Jun 2013
1 answer
50 views
Hi,

In my web application is it possible to globally set a particular skin for a particular control to avoid setting the skin property inline?

Thanks,
Ben.
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2013
1 answer
67 views

This is the full error
"Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object."

It happens when I click on a tab after clicking on the seventh tab. When I use any of the first six tabs in behaves just fine. Once I click on this seventh tab I get the error when I click on any of the rest of them. If I switch the tab order in the code the problem is still with the seventh tab.

Right now, I'm just asking if this is a known bug or if someone has experienced or heard of it in the past. If it's unheard of I'll post more information.
Version: 2012.3.1205.40
Runtime Version: v4.0.30319

I'd rather not post all the code to the general public right now. I'm getting the account information from our admin so I can submit a ticket.

MArk B.
MArkB
Top achievements
Rank 1
 answered on 28 Jun 2013
2 answers
72 views
I need to resize like 5 radgrids using multi page and  a rad tab bar so that they fill the available size in the window. 

I am using scrolling radgrids with static headers, and paging is in no way allowable. Sorting and editing are used on some, either template columns with asp controls or gridbound columns are being used.
 
I am registering a startup script and client script block in the code behind using script manager to handle resize and page load calls of this function

function MGridScrollHeight(control , pBuff) {
    var windowHeight = 0;
    var windowWidth = 0;
    if (typeof (window.innerWidth) == 'number') {
        //Non-IE 
        //        alert('non ie');
        windowWidth = window.innerWidth;
        windowHeight = window.innerHeight;
    }
    else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //IE 6+ in 'standards compliant mode' 
        //        alert('IE 6+');
        windowWidth = document.documentElement.clientWidth;
        windowHeight = document.documentElement.clientHeight;
    }
    else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
        //IE 4 compatible 
        //        alert('IE 4');
        windowWidth = document.body.clientWidth;
        windowHeight = document.body.clientHeight;
    }
    var resizeCont = document.getElementById(control);
    var buffer; // BUFFERING
        if (pBuff != undefined) { buffer = pBuff; }
        else { buffer = 30; }
        if ((windowHeight - (resizeCont.offsetTop + resizeCont.offsetParent.offsetTop) - buffer) > 100) {
            resizeCont.style.height = (windowHeight - (resizeCont.offsetTop + resizeCont.offsetParent.offsetTop) - buffer) + 'px';
        }
        else {
            resizeCont.style.height = 100
        }
}

This sort of works in IE and busts all telerik related JS in chrome. I tried resizing divs and then using the onGridCreated event as stated here http://www.telerik.com/help/aspnet-ajax/grid-change-scroll-height-at-runtime.html

However this just plain broke, sender was not passed and the methods of accessing height caused JS on the page to fail without triggering IE's or VS's debugger

If there is a method of being able to resize scrolling radgrids to divs ( I am using obj data sources as company requirement) then I would appreciate a pointer towards it.
Fraser
Top achievements
Rank 1
 answered on 27 Jun 2013
6 answers
229 views
Hi,
i would like to know if the audio language for captcha codes is available in non-english languages, and in particular for Italian, because our customers are experiencing some difficulties to understand the english pronunciation of the captchas.

Thanks and Regards,
Andrea
Christian
Top achievements
Rank 1
 answered on 27 Jun 2013
4 answers
103 views
I've noticed that whenever I update the RadGrid with AJAX, I always lose the ability to select rows.  They don't change when you hover over them either.  I really need to be able to use row selection.  Thanks
Chris
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
83 views
I have an object of type  RadImageAndTextTile and wish to set the PeekTemplate.

I can create a new  TilePeekTemplateSettings object and set the properties I want, but, contrary to what the documentation implies, I cannot apply this to the tile object as RadImageAndTextTile.PeekTemplateSettings is read only!

Also, I cannot find any docs on how to set the PeekTemplate itself from code-behind.
Marin Bratanov
Telerik team
 answered on 27 Jun 2013
1 answer
249 views
I am attempting to display several dynamically generated series in a line chart using the RadHtmlChart, however the axis labels and title are rendering under the axis instead of the chart (DefaultRendering.png). I found a similar question that had the answer of "use the 'AxisCrossingValue' of the YAxis"; when i apply the minimum chart value i get the result in "RenderingWithAxisCrossingValue.png". How can I get the chart to render with both title and labels below the chart area as depicted in "RequiredRendering.png"?
Thanks,
Sean
Danail Vasilev
Telerik team
 answered on 27 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?