Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
380 views
Respected Sir,

   I have a doubt in setting the Radgrid Alternateitemstyle property.i had written the code like this in common skin of the radgrid.But it doesnt shows the effects and the selected row is highlighted by the blue .
the code is like this:
 
<telerik:RadGrid EnableEmbeddedSkins=false AlternatingItemStyle-BackColor="#f6f6f6"
    runat="server" Skin="Web20">

   <ClientSettings  EnableRowHoverStyle="True" >
    <Selecting AllowRowSelect="True" />
    <ClientEvents OnRowSelecting="RowSelecting" />
   </ClientSettings>
  <ItemStyle  BorderStyle="Solid" BorderWidth="10px" BorderColor="#00000"   HorizontalAlign="Left"/>
    <AlternatingItemStyle BorderStyle="Solid"  BorderColor="#080808 "  BorderWidth="1px"  HorizontalAlign="Left"  />
</telerik:RadGrid>
Please give me a  solution to fix this problem
                                                                                                                                           Thank you
                                                                                                                                               JINI A B
Dimo
Telerik team
 answered on 14 Jan 2010
3 answers
100 views
Dear,

Version Q2 2009 released 08/26/2009
Visual Studio 2008 (VB.NET)
OS Win7

Reference of your Example " Grid / Tooltipified RadGrid "

Note, that when the page index is changed, or a sorting has been done, the RadToolTipManager's TargetControls collection is cleared because the records on the new grid's page have the same ClientIDs as the old ones.

i did exactly as you mention in the example. but i am doing little bit change. in "UpdateToolTip" routine. i my case the behavior is little bit change. on Page 2 its showing the Page 1 tool tip. and On Page 3 its Showing Page 2 tool tip. when we comeback on previous page 2 its showing Page3 tooltip.  :(

please if you can figureout this problem.

 

 

Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)

 

 

 

 

Dim ctrl As Control = Page.LoadControl("usercontrols/_attractions.ascx")

 panel.ContentTemplateContainer.Controls.Add(ctrl)

 

Dim TempHotel As DataTable = ViewState("AttractionDetails")

  

 

Dim i As Integer

 

 

 

 

 

 

Dim TempTable As New DataTable

 

 

Dim DC As DataColumn

 

DC =

 

New DataColumn

 

DC.ColumnName =

"HotelCode"

 

 

 

 

DC.DataType = System.Type.GetType("System.String")

 

 

 

TempTable.Columns.Add(DC)

DC =

New DataColumn

 

 

 

DC.ColumnName =

"AttrName"

 

 

 

 

 

 

DC.DataType = System.Type.GetType(

"System.String")

 

 

 

TempTable.Columns.Add(DC)

DC =

New DataColumn

 

 

 

DC.ColumnName =

"Distance"

 

 

 

 

 

 

 

DC.DataType = System.Type.GetType(

"System.String")

 

 

 

TempTable.Columns.Add(DC)

 

 

 

Dim FindDR() As DataRow = TempHotel.Select("HotelCode='" & elementID & "'")

 

For i = 0 To FindDR.Length - 1

 

 

 

 

 

Dim DR As DataRow

 

DR = TempTable.NewRow

DR(0) = FindDR(i).Item(0)

DR(1) = FindDR(i).Item(1)

DR(2) = FindDR(i).Item(2)

TempTable.Rows.Add(DR)

 

 

Next

 

 

 

 

 Application(

"TempData") = TempTable

End Sub

becuase my all data is coming from XML Source just for display. i am not fatching this data from the database.

One more thing i want to share not realated with this problem. i need to create a XMLNode like <c:condition> is it posible?

Regards

 

 

 

 

 

 

 

Tsvetoslav
Telerik team
 answered on 14 Jan 2010
1 answer
200 views
Hello,

We have a grid with several tabs in the edit form and each tab in turn contains other grids. Each grid in the tabs contain custom edit forms. Some of the textboxes in these forms are mandatory. Furthermore, some of the mandatory textboxes are numeric which should have values bigger than 0.

We would like to group the textboxes in the edit forms by their IDs and validate the required ones (both numeric and plain textboxes) and numeric ones seperately. Is such a scenario supported by RadInputManager ?

Thanks,
Oner
Tsvetoslav
Telerik team
 answered on 14 Jan 2010
2 answers
166 views
When a RadWindow is minimised and/or restored in Firefox, the content of the RadWindow is fully re-loaded. This means that, when an aspx page is being used as the content URL, all parameters that the user has entered into fields on the web-form in the RadWindow are discarded.

In IE browsers, the content page is not re-loaded and, therefore, the user can minimise and restore the RadWindow without losing any data.

Is there any workaround/fix for this problem?
Andy
Top achievements
Rank 1
 answered on 14 Jan 2010
1 answer
133 views
Hi,

In my radgrid, I have AutoGenerateColumns == true.
I also have one column defined myself in the aspx file in the <Columns> section.

This column I have defined, will always appear BEFORE the auto generated columns, how can I get it to appear as the LAST column? So after the auto generated columns?

I already tried to use SwapColumns() function in the OnColumnCreated event, but that did not work.

Kind Regards,
Raymond
Princy
Top achievements
Rank 2
 answered on 14 Jan 2010
1 answer
802 views
Is there a way for me to alter the icons in the grid without having to specify them in each and every grid design mode?
Dimo
Telerik team
 answered on 14 Jan 2010
1 answer
92 views
Hi,

I have a RadGrid, and I know the InsertForm is opened (RadGrid1.MasterTableView.IsItemInserted == true).

How can I now get the InsertForm? This code is not executed inside a RadGrid event call, so I do not have any eventargs to get the inserted item or InsertForm from... 
I need a control on the current insertForm, and MasterTableView.Findcontrol() does not work...

Kind Regards,
Raymond
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2010
2 answers
446 views
On my .ASPX page I have:
<head id="Head1" runat="server">     
    <title></title>     
    <script type="text/javascript" src="swfobject.js"></script>     
</head>     
<body>     
    <form id="form1" runat="server">     
    <div>     
             
       <telerik:RadScriptManager ID="RadScriptManager1" runat="server">     
        </telerik:RadScriptManager>     
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"  LoadingPanelID="RadAjaxLoadingPanel1">     
  <asp:ImageButton ID="btnPrev" runat="server" onclick="btnPrev_Click"  ImageUrl="images/btnPrev.png"/>  
<asp:ImageButton ID="btnNext" runat="server" onclick="btnNext_Click" ImageUrl="images/btnNext.png"/></td>  
                      
                          
<div id="flashContent">     
                                 
                            </div>     
  </telerik:RadAjaxPanel>     
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">     
        </telerik:RadAjaxLoadingPanel>     
 

When I click the IMageButtons I need the scriptmanager to execute a javascript function that is in the swfobject.js file. I can get this to happen on the Page_Load (below) but not on the button clicks. What do I need to do to fire off a javascript function on AJAX postbacks?

sSWF += @"<script type=""text/javascript"">";  
        sSWF += @"var flashvars = false;";  
        sSWF += @"var params = { menu: ""false"", flashvars: ""FMSServerURL=" +  
            sServer + "&sID=" + sStreamID +  
            "&imgURL=" + imageURL + @""" };";  
        sSWF += @"   var attributes = { id: ""myDynamicContent"", name: ""myDynamicContent"" };";  
        sSWF += @"swfobject.embedSWF(""presoViewer.swf"", ""flashContent"", """ + swfWidth + @""", """ + swfHeight + @""", ""9.0.0"", """", flashvars, params, attributes);";  
        sSWF += "</script>";  
 
 
                Type cstype = this.GetType();  
 
        ClientScriptManager cs = Page.ClientScript;  
 
          
             cs.RegisterStartupScript(cstype, "SWFScript", sSWF, false);  
         
Suneco
Top achievements
Rank 2
 answered on 14 Jan 2010
1 answer
95 views
I have a question about the OnClientNodeClicking event which fires right before postback. The get_node() retrieves a reference to the clicked on node. I am wondering if there is any way that I can determine which node the user came from (i.e. not the node that there are going to, but rather the node they were on before). The get_node().get_text() tells me the text of the node that the user clicked on, but I need to get the text of the node that they were previously on.
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2010
12 answers
144 views
Hi
I used radtabstrip control in my .net application.In IE8 if there was a scroll in the page due to increased content length, the background images used in tabs of the radtabstrip control also came down on scrolling the page.I am not facing this problem in IE7.Please help asap.
Kamen Bundev
Telerik team
 answered on 14 Jan 2010
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?