Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
537 views
Hi

We have a radgrid with one level nested grid.  When the grid is built on server side, we have some logic which allows a row in nested grid to get selected (in ItemDataBound event handler).  Code looks something like --

protected void rgGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item.ItemType = GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item)
    {
        ...
        if (<something is true>) e.Item.Selected = true;
    }
}

The grid has a menu and when one of the buttons is clicked on it, we want to send the seleted item info to the popup from client side.
So the grid has a client side function like -
function rmuGridClientItemClicked(sender, args)
{
    return OpenWindow(url + "?SelectedItem=" + selectedItemId);
}

How do we get the selectedItemId?  I have tried using
var radGrid = $find("<%= rgGrid.ClientID %>");
var MasterTable = radGrid.get_masterTableView();
var row = MasterTable.get_dataItems();
var item1 = row[0].get_nestedViews()[0].get_selectedItems();

but get_selectedItems always returns empty array.

I think that it is because the item is getting selected on server but I am accessing it in JS code. 
Can someone suggest a way to do this the right way?

Thanks
Raka
abdul qadar
Top achievements
Rank 1
 answered on 08 Apr 2014
2 answers
198 views
Hi everybody,

I have a RadGrid with one GridDateTimeColumn .  When you type a date into their filter textbox and either press enter, the filter textbox simply clears itself and the value that i putting on it is ignored. After that if i put it the date again to their filter textbox everything works fine. How  can i do to fix when i am filtering at the first time?
Here's my code (aspx):
<telerik:GridDateTimeColumn  SortExpression="Situacao.Insercao"  Visible="true" AllowFiltering="true" AndCurrentFilterFunction="Contains" ShowFilterIcon="false"
                     AutoPostBackOnFilter="true" 
                      HeaderText="PENDÊNCIA"  DataField="Situacao.Insercao" FilterControlWidth="120px"
                    DataFormatString="{0:dd/MM/yyyy}" UniqueName="Situacao.Insercao"  DataType="System.Boolean" PickerType="DatePicker" EnableRangeFiltering="true" 
                    CurrentFilterFunction="Contains" AllowSorting="False"  FilterListOptions="AllowAllFilters">                                                                                                                                                                  
                </telerik:GridDateTimeColumn>
Thanks



Travis
Top achievements
Rank 1
 answered on 07 Apr 2014
4 answers
552 views
Hello,

I've noticed you changed all the icons in the RadButton, in a SP (Q3 13 SP2). Strange.

I also noticed, for a while now (Q2 13?), that the RadGrid delete icon is a red cross, while in the TreeList is is adjusted to the skin (glowing gray) The edit icon is the same as the TreeList.

1. Why is the delete icon not like it is in TreeList?

2. How can I do this? (Including the mouseover effect!)

Regards,

Erik
Erik
Top achievements
Rank 2
 answered on 07 Apr 2014
6 answers
924 views
Hello

It's possible to get a demo on RadPageLayout ?

Here : http://demos.telerik.com/aspnet-ajax/


Thanks
Olivier,
Ivan Zhekov
Telerik team
 answered on 07 Apr 2014
1 answer
117 views
I have a custom RadMenu skin that I created and had styled how I wanted.  We recently upgraded our project to the newest version of Telerik, and I have noticed a white border around my sub menus (on the top, left, and right sides) that wasn't there before, and I can't figure out which styling combination will remove it.  I noticed that this border also appears on the menu in the RadMenu overview (http://www.telerik.com/help/aspnet-ajax/menu-overview.html).  I have attached this photo with a black box surrounding the white border I am talking about.  Can someone help me remove this border?
Magdalena
Telerik team
 answered on 07 Apr 2014
6 answers
234 views
I cannot find the correct CSS element to color the area just inside the border and outside .inner (or .fake input). Please see attached image.
A cannot find documentation for all the rddl elements like the combo box 
Magdalena
Telerik team
 answered on 07 Apr 2014
2 answers
357 views
Hi,

Here's my situation.

I have a RadWindow (separate aspx page) that contains a grid within a RadAjaxPanel (also tried just a plain asp Panel).
The grid is bound to a sqlDataSource.
The grid loads just fine when the RadWindow is initially launched.

The user fills out a few fields on the forms and clicks on Save.
I then call a webservice from javascript that adds a new record to this data source.
I now need to rebind the grid to show this newly added record.

I'm using the following function:
function RefreshGrid() {
            var grid = $find("<%= grdInputs.ClientID %>");
            var masterTable = grid.get_masterTableView();
            masterTable.rebind();
            // grid.repaint();  // tried adding this, but without any luck
        }

I've tried adding the following to my RadAjaxManager without any success either (with and without the 1st AjaxSetting):
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="grdInputs" />
    </UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="grdInputs">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="grdInputs" />
    </UpdatedControls>
</telerik:AjaxSetting>

What am I doing wrong?

Thanks in advance for any assistance.

Jim

jlj30
Top achievements
Rank 2
 answered on 07 Apr 2014
5 answers
325 views
Hello

Love your new control. Cuts out the requirement for me to write an entire page to control the rotation, flipping, etc of an image. I would like to know if you could add a "Fit To Width", "Fit To Height" and "Fit Image" option so the image can fit to the width of the control, height of the control and then the width and height of the control.

Regards,
Simon
Vessy
Telerik team
 answered on 07 Apr 2014
1 answer
88 views
Hi,

It's possible to set my HeaderText when i select a language ?

I create a fil named RadGrid.Main.resx and an other file named RadGrid.Main.en.resx on my App_GlobalResources ?

And on my table i write my NameOfmeta:resourcekey.HeaderText ?

Tell me if i'm wrong pls.

Regards,
Alexandre
Kostadin
Telerik team
 answered on 07 Apr 2014
1 answer
145 views
How to change the text of edit column to my custom text . Should i do from server side?
Princy
Top achievements
Rank 2
 answered on 07 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?