Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
354 views
Hi,

I'm having a problem in showing the data of selected row of radgrid in radwindow. What I have tried is using double click on client event using this script:

function RowDblClick(sender, eventArgs) {
 window.radopen("ViewForum.aspx?ForumID=" + eventArgs.getDataKeyValue("ForumID"), "RadWindow1");
}
Basically, all I want is whenever a user double click on a row of radgrid, it will open the radwindow and show the contents of the radgrid row that they have selected but I'm really having problem doing that. I can open the radwindow if I double click on the row of radgrid but the problem is the content radwindow always shows the first row of radgrid, it doesn't change even if I click on a different row. Thank you in advance. This is the code for my grid and window:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ForumSource" AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None"
                                            Height="520px" Skin="MetroTouch" Width="889px" OnItemCreated="RadGrid1_ItemCreated" CommandItemDisplay="Top">
                                            <MasterTableView DataSourceID="ForumSource" PageSize="13" DataKeyNames="ForumID" AutoGenerateColumns="False" ClientDataKeyNames="ForumID">
                                                <Columns>
                                                     
                                                </Columns>
                                            </MasterTableView>
                                                <ClientSettings>
                                                    <Selecting AllowRowSelect="true"></Selecting>
                                                    <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
                                                    <Scrolling AllowScroll="false" UseStaticHeaders="True" />
                                                </ClientSettings>
                                        </telerik:RadGrid>
                                        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                                            <Windows>
                                                <telerik:RadWindow ID="RadWindow1" runat="server" Height="450" Width="800"    ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" Skin="MetroTouch">
                                                </telerik:RadWindow>
                                            </Windows>
                                        </telerik:RadWindowManager>


Gilbert
Top achievements
Rank 1
 answered on 05 Sep 2013
4 answers
134 views
Hi All,

I'm in a bit of a pickle with a strange behavior from RadGrid. I am trying to have my grid expand to fill its containing DIV element - 100%height and width (see image 1 attached to this post). However, what is currently happening is that on first loading the page, the grid does not expand, but instead its scroll area is shrunken to something like 10px (see image 2 attached) - and after I click on the pager button it then expands to fill the div. If I reload the page it returns back to the shrunken scroll area behavior again.

The page is designed with the RadGrid inside a RadSplitter (Telerik has a roughly similar example here) and the RadGrid also implements the "OnGridCreated" client event. I have created a small Visual Studio project that can be run to demo this behavior - it is publicly available for download here.

This issue has left me in a serious bind and in need of quick resolution. My environment: Win 2008 R2 server; IE 9, Chrome v29; V.Studio 2010; .Net 3.5; RadControls for ASP.NET AJAX Q2 2012. I should point out that I tried to do the same thing, but replacing RadSplitter with a standard html table - I got the same odd behavior, but was able to get it to behave almost correctly by setting the "height" style attribute of the containing table column (yes, I also set the height of the RadPane in the splitter, but no luck). It seems to point to the height of the containing element, but I have run out of ideas of what I'm missing...not sure if its me or the controls.

Thanks for your help.

- Manny.
Manny
Top achievements
Rank 1
 answered on 05 Sep 2013
2 answers
153 views
Hi, 
 How do I get the value of the selected cell in radgrid?
 I don't want the whole row,but only the corresponding column value.

 Thanks,
 Erin.
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Sep 2013
1 answer
72 views
I got a error when i try to Load a Xml String to a RibbonBar.
Below that is my code.

RadRibbonBar1.LoadXml("<RibbonBar Skin=""Windows7"">    <Tab Text=""Home"">      <Group Text=""New"" EnableLauncher=""True"">" _
                   & "<Button ImageUrl=""Images/rButton/New.png"" Size=""Large"" />      </Group>      <Group Text=""Edit"" EnableLauncher=""True""> " _
                   & "<Button ImageUrl=""Images/rButton/Open.png"" Size=""Large"" />     <Button ImageUrl=""Images/rButton/Save.png"" Size=""Large"" /> " _
                   & "<Button ImageUrl=""Images/rButton/SaveAs.png"" Size=""Large"" />      </Group>      <Group Text=""Exit"" EnableLauncher=""True""> " _
                   & "<Button ImageUrl=""Images/rButton/Document.png"" Size=""Large"" />      </Group>    </Tab>  </RibbonBar>")

Shinu
Top achievements
Rank 2
 answered on 05 Sep 2013
2 answers
83 views
Hi

I have several input fields in a column and I want to control the label size using CSS (or via other means) so that all the input fields align vertically.

I tried to use :

   .CustomClass
    {
        width: 120px !important; /* edited this value to be correct */
    }
with
...
WrapperCssClass="riLabel"  LabelWidth="120px"

where the riLabel contains 120px for the width (which is redundant in this case), but noting worked.

I tested on IE9 and FireFox.

most of the above was inspired by the page: http://www.telerik.com/help/aspnet-ajax/input-css-width.html
I tried inserting a JavaScript function as suggested in the above page, but got an error regarding the passed parameters to the function.

If you can provide a tiny working example, this would be great.

Also, this may be another question though, I can't get built-in skins to work unless I use CDN. Event though I have Telerik.Web.UI.Skins.dll in the bin.

Thanks.

Emmad
Top achievements
Rank 1
 answered on 05 Sep 2013
1 answer
73 views
Hi dear admin
 I have a radajaxpanel on my page and when run project that control is translated to:


<div class="radajaxpanel1" id="radajaxpanel1">
<div id="radajaxpanel1">
.
.
.
</div>
</div>

Can i have another tags like <span> in front end site ?
Kostadin
Telerik team
 answered on 05 Sep 2013
2 answers
156 views
Hi,
    I want to perform two actions, one on left click of mouse and another on right click of mouse.Any one  of the action should takes place on row click of the grid.
Please provide me some examples.

regards
sathies
Ali
Top achievements
Rank 1
 answered on 05 Sep 2013
1 answer
99 views
Hi Telerik Team,

is it possible to set the alt text of the tile image via code?

we need this for wai validation

thank you

greetings
wolfgang
Marin Bratanov
Telerik team
 answered on 05 Sep 2013
1 answer
106 views
Does this control support circular tiles creation? The default tiles have a rectangular look and I need rounded tiles. Any provision?

Thanks
JC
Marin Bratanov
Telerik team
 answered on 05 Sep 2013
1 answer
49 views
How to set tab index rad grid view items?
Eyup
Telerik team
 answered on 05 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?