Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 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
79 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
115 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
33 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
125 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
146 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
53 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
127 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
73 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
6 answers
279 views

I am using a hyperlink column in a RadGrid.  The grid is bound via ClientBinding - binding is working fine.   Column is defined as follows:

 

<

 

telerik:GridHyperLinkColumn UniqueName="MLSNUMBER" HeaderText="Mls Number" DataNavigateUrlFields="DetailsUrl" DataTextField="MlsNumber" Target="_blank" DataNavigateUrlFormatString="{0}"></telerik:GridHyperLinkColumn>

 



The "DetailsUrl" field from the data source holds the complete target url as follows:
http://MyDomainName/ASP/RenderDetail.asp?printable=yes&PropertyID=8EFC370EC45847

When the hyperlink is clicked in the grid,  I get the following incorrect url:

http://localhost/website/http://webtest.realcomponline.com/ASP/RenderDetail.asp?printable=yes&PropertyID=8EFC370EC45847

Apparently my local root web server url is being prepended to the url coming from the datasource.

How can I stop this from happening?

Thx
seevo

dhuss
Top achievements
Rank 1
 answered on 10 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?