Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
Hi,

I have a Batch Edit Grid and I'm trying to make a column read only in edit mode with the code below:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditableItem editedItem = e.Item as GridEditableItem;
        TextBox txt = (TextBox)editedItem["RangeMin"].Controls[0];
        txt.ReadOnly = true;
    }
}

But the expression if (e.Item is GridEditableItem && e.Item.IsInEditMode) always return false.

How can I disable cell edit for a specific column?

Thanks,
Gustavo
Gustavo
Top achievements
Rank 1
 answered on 01 Dec 2014
1 answer
135 views
In the Grid "documentation", I can read the following:

"This event is fired after the grid is created."

But in my case, the event is not fired. So clearly, something or somethings can cause the event to not fire. What are the possible causes?

There's quite a bit of code revolving around my grid, but here are what I think is the most relevant:

<script type="text/javascript">
    function GridCreated(sender, eventArgs) {
            alert("Grid with ClientID: " + sender.get_id() + " was created");
        }
</script>

<ClientSettings>
                                <Selecting AllowRowSelect="True" />
                                <ClientEvents OnRowCreated="rgActivities_RowCreated" OnRowSelected="rgActivities_RowSelected"
                                     OnRowDeselected="rgActivities_RowDeselected" OnGridCreated="GridCreated" />
                                <Scrolling AllowScroll="True" ScrollHeight="340px" SaveScrollPosition="True"></Scrolling>
                            </ClientSettings>

(The javascript is in the head, but I tried to have it inside a RadScriptBlock too, without it working)
C
Top achievements
Rank 1
 answered on 01 Dec 2014
8 answers
572 views
Hi ,
        Is it possible to open multiple Rad Windows by click the cells in Rad Grid.  ( Something like Multiple Instances of RadWindow).
please send us some sample regarding this.


Thanks
Vinodh
Marin Bratanov
Telerik team
 answered on 01 Dec 2014
4 answers
201 views
hello, is there a way for me to create RadWindows dynamically on the client side?

Here is my situation: I have a page that has several links that when clicked needs to open a RadWindow. each link opens a different window. What I do now is create the windows on Page Load and then add the "onclick" javascript attribute to the link's. Therefore, even if the links are never clicked by the user the windows are still being created.

I want to use client-side because I don't want to trigger a postback by creating the windows in code-behind via a button. Now my javascript will take as parameter the URL of the window to open and other properties such as window dimensions. The clien-side script will then create the RadWindow and open it. The page has a window manager but I do not want to create the windows statically inside the window manager because I may not know ahead of time how many windows I need.

Also, the window manager is created in the master page that I use to style all my pop-up windows, that's why i cant define windows statically because that master page is used for many different pop-up windows. Finally I would like the window that is created on client-side to inherit the standard properties i have set on the Window manager in the master page.

Can this be done?
Dhamodharan
Top achievements
Rank 1
 answered on 01 Dec 2014
3 answers
63 views
Hi,
I am using Radgrid in my project. 
I used .net framework 3.5 and VS 2010 before. The Radgrid is displayed correctly in my project by that time.
Lately, I upgrade the project to .net framework 4.5.1 and I am using VS 2013 now. I found that the radgrid occasionally (not always) run into problem and the grid collapses.
Due to protection of my company, sorry that I can't print screen here. But I can tell from what I see from the HTML code generated before and after.

Before the change, it is normal like:
<div id="ctl00_ContentPlaceHolder1_radGridSample" class="RadGrid RadGrid_WebBlue">
    <table cellspacing="0" class="rgMasterTable" border="0" id="ctl00_ContentPlaceHolder1_radGridSample_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">
        <colgroup>
            [content for colgroup]
        </colgroup>
        <thead>
            [content for thead]
        </thead>
        <tfoot>
            <tr class="rgPager">
                [content for pager]
            </tr>
        </tfoot>
        <tbody>
            <tr class="rgRow" id="ctl00_ContentPlaceHolder1_radGridSample_ctl00__0">
                <td>
                    [content for a row]
                </td>
            </tr>
                [repeat]
        </tbody>
    </table>
</div>

After, it becomes:
<div id="ctl00_ContentPlaceHolder1_radGridSample" class="RadGrid RadGrid_WebBlue">
            [content for thead]
        </thead>
        <tfoot>
            <tr class="rgPager">
                [content for pager]
            </tr>
        </tfoot>
        <tbody>
            <tr class="rgRow" id="ctl00_ContentPlaceHolder1_radGridSample_ctl00__0">
                <td>
                    [content for a row]
                </td>
            </tr>
                [repeat]
        </tbody>
    </table>
</div>

As you can see a large portion of html code at the top is missing. You can imagine that the table couldn't be formed. All the data in the table concatenates into 1 line.
The css, javascript file referenced by Radgrid does exist.
The telerik I am using is 2014 version. 

Could anyone advise me on how to solve this problem?

Regards,
Xavier
Waqas
Top achievements
Rank 2
 answered on 01 Dec 2014
4 answers
125 views
Good day

I would like to know if you can display a submenu below its parent menu.

Please see attached file as example.
Tiaan
Top achievements
Rank 1
 answered on 01 Dec 2014
5 answers
127 views
Hello,

is it possible to add text to the top right side of the RibbonBar (basically on the right side of the tabs)?

Thanks in advance,
Robin
Boyan Dimitrov
Telerik team
 answered on 01 Dec 2014
3 answers
86 views
I have a page with a grid on it. On all the page I can pinch but on the grid I cannot use it.

Is there a way that I get this working.

Best regards,
Lanzo van Slooten
Marin
Telerik team
 answered on 01 Dec 2014
1 answer
174 views
Hi,

I have a calendar that shows behind a combo box when the combo box is expanded.  I set the z-index of the calendar to 14000 (z-index="14000 !important") and was able to get it to show in front of the combo box, but only when it isn't expanded.  When I expand the combo box the calendar is displayed behind the drop down list.  The z-index of the drop down list is set to 10000.

See attached images.

What can I do to get it to show in front?

Thank You
Viktor Tachev
Telerik team
 answered on 01 Dec 2014
1 answer
82 views
I can not find a way to send a custom header with my request, for example i am using custom authentication and like to send the UserToken.

I am consuming the data source using a rad autocomplete box.

Can you provide a sample of adding\setting a custom header?
Angel Petrov
Telerik team
 answered on 01 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?