Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
234 views
Hi,

How can I set CausesValidation="false" to GridButtonColumn ?

Regards,
Divyesh
Gourangi
Top achievements
Rank 1
 answered on 14 Oct 2008
5 answers
188 views
I have the following code in my module identifying each column's UniqueName based on their DataField property. The FindByDataFieldSafe function strangely isn't able to identify TemplateColumns and would return Nothing.
Protected Function GetGridValues(ByVal rgdGrid As RadGrid, _  
                           ByVal grdEditableItem As GridEditableItem, _  
                  Optional ByVal blnValidateData As Boolean = True) As String  
 
Dim hshRowData As New Hashtable 
   rgdGrid.MasterTableView.ExtractValuesFromItem(hshRowData, grdEditableItem) 
   For Each strField In hshRowData.Keys  
      xmleField = xmldData.CreateElement(strField)  
         If Not rgdGrid.Columns.FindByDataFieldSafe(strField) Is Nothing Then  
            strColUniqueName = rgdGrid.Columns.FindByDataFieldSafe(strField).UniqueName  

However, if I run the following statement during debugging, using the FindUniqueNameSafe function instead, I'm able to return the value.
?cObj(rgdGrid.Columns.FindByUniqueNameSafe("colINDCUR")).DataField
"INDCUR" {String}
    String: "INDCUR"
What is wrong here?
Thanks for all the help.
Nikolay Rusev
Telerik team
 answered on 14 Oct 2008
1 answer
104 views
Greetings,

I have a strange situation. I have a Sharepoint web part which works wonderfully using the Telerik RadGrid to display data. I now want to create an similar webpart with Ajax functionality. My first thought was to build this second part like this (code paraphrased):

[C#]
public class AjaxMetricGridWebPart : MetricGridWebPart
{
public override CreateChildControls()
{
// Allow the parent class to do its work
base.CreateChildControls();

// Find the grid in the control collection and remove it
Control rg;
foreach (Control c in this.Controls)
{
if (c is RadGrid)
{
rg = c;
break;
}
}

this.Controls.Remove(rg);

// Create an ASP.NET UpdatePanel
UpdatePanel up = new UpdatePanel();
up.ContentTemplateContainer.Controls.Add(rg);

this.Controls.Add(up);
}
}
When I do this, the grid does not display in the new web part. However, copying the code from the MetricGridWebPart class into the AjaxMetricGridWebPart class and simply modifying the CreateChildControls() method works great.

I would rather not manage the same code in two places. It seems that what I'm trying to do in the first example should work just fine. Is there some subtlety in the RadGrid that stops it from being displayed when it is moved from one ControlCollection to another?

.NET 3.0, Sharepoint 2007
Rosen
Telerik team
 answered on 14 Oct 2008
6 answers
188 views
Hi,

    I use the control RadDateTimePicker and I set DateFormat and DisplayDateFormat for Dateinput to dd/MM/yyy HH:mm:ss.  On my PC, all works fine, but when I deploy my application on the server, I got a bug.  The date on the intial loading of the page is right shown.  But when I click on the calendar and select yesterday(October 7th), the day and month of the date in the control are swap, so when I click another time on the calendar, the date set is not October 7th, but July 10th.  If I click on the Time View, the date remain in proper format, so I see October 7th.  Do you know why?

Thank you
Steve
Sebastian
Telerik team
 answered on 14 Oct 2008
3 answers
85 views
Hi, I need to add a windows media content in a content editor, both web part and WCM placeholder.

I know, I can do it quite easily. The only difference is that I have to add streaming video address, like mms://82.76.253.18/antena3 (just an example taken on the web).

Is it possible? How can I do?

Thanks
Riccardo 
George
Telerik team
 answered on 14 Oct 2008
2 answers
89 views
 Every time i get   in cellTxt, could anyone help me plz.

 

 

 

protected void RadGridContasPagar_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

    if (e.Item is GridDataItem)

 

    {

 

        GridDataItem dataitem = (GridDataItem)e.Item;

 

 

        String cellTxt = dataitem["Vencimento"].Text; 
    }
}

 

Princy
Top achievements
Rank 2
 answered on 14 Oct 2008
1 answer
111 views
I just started using the 2008 Q2 SP2 controls. I noticed that after upgrading from the 2008 Q2 version that the rotator is not acting the same way as it was before. I was using a slider that when you moved it one value it would call the showNext function of the rotator to make it move to the next item. With the SP2 version, it moves to the next frame, but then it keeps on moving. It will pause, and then advance as if the slide show was started.

Here is the JS code I'm using to move the rotator:

function RotateNext() { 
        var rotator = $find("<%=rotate.ClientID %>"); 
         
        rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Up); 
                 
    } 

Here is the start tag for the rotator:

<telerik:RadRotator ID="rotate" runat="server" Height="185px" RotatorType="FromCode" 
            ScrollDirection="Up,Down" Width="290px" ScrollDuration="250"> 


Thanks,
Adam
Georgi Tunev
Telerik team
 answered on 14 Oct 2008
1 answer
147 views
Hello,

I have been trying to arrive at a workaround for this problem for a few days. Right now I would accept being able to logically turn off Ajax if the browser is IE 6. This would be an ugly workaround, but it would restore functionality to a production application and also punish my client for standardizing on IE 6.

The application uses a series of forms that utilize RadMultiPage controls in a RadWindow. In addition, the forms are entirely based on CSS positioning elements to structure the forms. The symptom is that if the browser is IE 6 (only), when switching from page to page, all controls disappear. If I turn off Ajax, by removing the RadAjaxPanel, the forms display properly when switching from page to page. All works fine in IE 7, Firefox, Opera, Safari and Chrome.

I have a very compact standalone project that will illustrate this if necessary.

Thanks, Steve
Pavel
Telerik team
 answered on 14 Oct 2008
3 answers
98 views
I have a RadScheduler in which I am looking to display multiple appointments at the same time for the daily view. However it seems to be displaying only one of them. When I change the time for the bound data, it displays the appointment horizontally. Is there a way to display the appointments one below the other which are due at the same time?

Thanks,
Tony
T. Tsonev
Telerik team
 answered on 14 Oct 2008
1 answer
98 views
hello,
we have made a update from 1_619 to 2_1001. After update we
figured out that the radpanel and radmenu click event under
firefox 2/3.03 is not fired. In IE7 it works perfect. 
We find out that this is a constalation between janus gridex
and telerik controls. if janus gridex is
used on the webpage radpanel and radmenu will not work
properly. Gridex for ASP.NET is very popular and we are
using this control for years. A demo can be downloaded under
http://www.janusys.com/controls/ 
At the moment we went back to 1_619 but we need
the new update next time. The problem is that we are using a lot
of pages with gridex and we can't change the whole project. 
greetings ...


Paul
Telerik team
 answered on 14 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?