Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
192 views
Hi,
I am using NestedViewTemplate in my application. but i want hide expand Image when record not found cells only.

given code i am using now. please give me a tips for this one.

<telerik:RadGrid ID="gvAddPlans" runat="server" AutoGenerateColumns="False" DataSourceID="sdsDispayPlans" OnPreRender="gvAddPlans_PreRender"
                        Width="740px" GridLines="Both">
                        <MasterTableView  HierarchyDefaultExpanded="false" AutoGenerateColumns="false"
                            CommandItemDisplay="Top" DataKeyNames="sp_pln_id">
                            <NoRecordsTemplate>
                                <div align="center">
                                    There are no records to display</div>
                            </NoRecordsTemplate>                           
                                </div>
                            <Columns>
                            ----------------------------------------------
                            ------------------------------------------------
                            </Columns>
                            <NestedViewTemplate>
                                <telerik:RadGrid ID="rgFlex" runat="server" AutoGenerateColumns="False" OnItemDataBound="rgFlex_OnItemDataBound" DataSourceID="sdsFlexBenefit"
                                    Width="700px" GridLines="Both">
                                    <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top">
                                        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                                      
                                        <Columns>
                                         ----------------------------------------------
                                             ------------------------------------------------
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </NestedViewTemplate>
                        </MasterTableView>
                    </telerik:RadGrid>


Thanks,
Dhamu
Smiely
Top achievements
Rank 1
 answered on 10 Jun 2011
1 answer
87 views

On VB.CODE side I wrote:
RadGrid1.MasterTableView.DataKeyNames = {"CustomerID"}
RadGrid1.ClientEvents.OnRowSelected = "RowSelectd"

 

 

I want to read DataKeyNames property inside OnRowSelected event:

function
RadGrid1_RowSelected(gridName, rowId) {

 

 

var grid = gridName;  

var oBand = grid.get_masterTableView();

 

 

var row = oBand.get_dataItems()[rowId.get_itemIndexHierarchical()];

 

 

MyLabel.value = oBand.getCellByColumnUniqueName(row, "CustomerID"

).innerHTML;

 

 

}

In this manner I'll can replace the "CustomerID" static string with the dynamic property obtained from DataKeyNames array[0]

Thanks

 

 

 

 

 

 

 

 

 

 

Datatrek
Top achievements
Rank 1
 answered on 10 Jun 2011
7 answers
74 views
Hi:

I am looking for documentation on Clientside api for RadTreeList which provides more detail information than can be found on the available documentation. I am looking for Object models,Methods, Details aboutn Event Arguments etc.

Does such document exist or the installed documentation is all that is available.

Thanks
Veli
Telerik team
 answered on 10 Jun 2011
4 answers
111 views
I am using RadControls for ASP.NET AJAX Q1 2011.  I have an application where the Telerik controls have an unspecified skin (that is, there is no SkinID entry in the XML definitions).  I added the following to my web.config:
<add key="Telerik.Skin" value="Windows7" />

When I run the application, the CSS attributes (font, color, transperancy, etc.) are applied, but none of the background images that would come from the sprites are rendered.

I also tested
<add key="Telerik.RadGrid.Skin" value="Windows7" />
<add key="Telerik.Radmenu.Skin" value="Windows7" />
but no joy.

If I go to a control and specify
SkinID="Windows7"
then all is well - the background images are present.  I have reviewed (some of) the documentation, and it seems the web.config entry is a valid method to set the SkinID.  What am I missing?

Further - if a control has a SkinID attribute set, then the web.config entry overrides it (and works).  Please don't tell me I have to set a SkinID on all controls to use the web.config method.

Scott

 

 

 

 

 







Scott Buchanan
Top achievements
Rank 1
 answered on 10 Jun 2011
2 answers
32 views
Hi,

 if I ll bind 500 rows to rad-grid with set property allowpaging is true ,after that I pass the 2nd pageDataKeyName value as a parameter.  but I can not retrieve the 2nd page DataKeyName item index.

what can i do for this problem?

this is my  code

Private Sub GRD_NewsList_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles GRD_NewsList.PreRender
        If Not Page.IsPostBack Then
            Dim val As String = GetNumeric(Request("NewsId"))
            If val = 0 Then
                GRD_NewsList.MasterTableView.IsItemInserted = True
            Else
                For Each Items As GridDataItem In GRD_NewsList.MasterTableView.Items
  
                    If GetNumeric(Items.GetDataKeyValue("NewsId")) = val Then
                        Items.Edit = True
                        Exit For
                    End If
                Next
            End If
            GRD_NewsList.Rebind()
        End If
    End Sub

nanthakumar thangavel
Top achievements
Rank 1
 answered on 10 Jun 2011
7 answers
122 views
Hi,
currently using a RadWindow with not title bar and therefore only the frame shows up.
My goal is to add a "close" button to the top-right that looks like a Shadowbox/lightbox one.

therefore the button actually shows up over the corner of the frame.

is there a way to accomplish this?

Bozhidar
Telerik team
 answered on 10 Jun 2011
4 answers
142 views
Hi, I'd really appreciate your help on this.

I am trying to apply a custom skin to a RadMenu, contained within the MasterPage of an ASP.Net website. I'm using Visual Web Developer.

I've followed the 'help' instructions to exhaustion, set Embedded skins to false, registered the custom CSS file, set the skin property to my custom skin, etc.

When I do all of this, the Radmenu skin changes in the Design view. Which is great but when I launch the site in a browser, the menu is unstyled.

Any thoughts?

Thanks in advance
Brian
Top achievements
Rank 1
 answered on 10 Jun 2011
1 answer
51 views
We have some pages on our site that display e-mails sent through our system. Some of these displayed e-mails have embedded html in them (from e-mails we have received from clients) that is throwing off our CSS. We want to use a disabled RadEditor to display the e-mails. is there any way to easily isolate the e-mail within the editor from the rest of the site?

We tried to use iframes, but since the content is variable, we don't want to have scrollbars. With the Editor, it sizes itself properly, but the CSS in the e-mails is causing havoc on the rest of the site.
Rumen
Telerik team
 answered on 10 Jun 2011
3 answers
121 views
I have a RadEditor on a page.

It works fine when debugged/browsed locally through Visual Studio.

When running on our server the dialog windows often fail to load, as per the attached screen capture.

One possible reason is that the server has Windows Authentication and no anonymous access to the folder that the script is running in.

On another topic, I also notice that sometimes I get errors when the RadAjax content is updated: ...WebResource.axd?... This is an invalid webresource request.

I did have to set EnableScriptCombine to false in the RadScript Manager for AJAX to work at all.

Is there some changes necessary for these to work in a protected folder or is the problem likely to be something else?
Rumen
Telerik team
 answered on 10 Jun 2011
1 answer
68 views
Hello,

I'm wondering whether it would be possible to do the following in the editor.

I want to have a toolbar that has buttons similar to the Bold button, that when the user selects a segment of text, the text will become highlighted with a specific color. It seems like I should be able to do that with custom stylesheets. It would be even more ideal, if I was able to create a color-coded bracket on the left, surrounding the text so that when there are multiple selected sections that overlap, you could see them more clearly.

Thanks,

Anne
Marin Bratanov
Telerik team
 answered on 10 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?