Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
69 views
Hello from this newbie ;-)

I'm having a css problem with the rotator which is driving me nuts! It seems that there is a 40px space around it and I can't find how to disable it. I assume that it is space which is reserved for the buttons but I don't need them. I noticed that 'top:40px' is automatically generated (element style); if I turn this into 0px, the problem is solved but I can't seem to find where I need to do this :-(.
The 40px on the left side seems to turn up in Firefox but not in IE.

I'm using the 'AutomaticAdvance' setting as rotatortype and have the 'EnableEmbeddedSkins' & 'EnableEmbeddedBaseStylesheet' set to false because I'm using a custom skin.

Can anyone help me out on this one?

Thanks in advance ;-)

Marc
Marc Van Pottelbergh
Top achievements
Rank 1
 answered on 04 Jun 2010
3 answers
145 views
hello
i use this code in load my page:

        If Not IsPostBack Then
            Dim strPath = "~/Attach"
            RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}
            RadFileExplorer1.Configuration.ViewPaths = New String() {strPath}
            RadFileExplorer1.Configuration.UploadPaths = New String() {strPath}
            RadFileExplorer1.Configuration.DeletePaths = New String() {strPath}
        End If

but, i will change this Folder "~/Attach" to "~/Attach2" in a Button .
same :

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        Dim strPath = "~/Attach2"
        RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}
        RadFileExplorer1.Configuration.ViewPaths = New String() {strPath}
        RadFileExplorer1.Configuration.UploadPaths = New String() {strPath}
        RadFileExplorer1.Configuration.DeletePaths = New String() {strPath}
    End Sub

but, i can not changing default folder!
please help me.
Fiko
Telerik team
 answered on 04 Jun 2010
1 answer
102 views
Guys,

sorry once again if this is an obvious one... my problem is that i have a rad window called from a Content Form, it refreshes a RADAJAXPanel within this window well...  (called RadAJAXPanel1) and i can trigger the AJAX event that refreshes this well...

However i want to be able to refresh a summary panel that is now wrapped in a RadAJAXPanel (called RadAJAXTaskPanel)... how do i trigger the AJAX Event on this AJAX panel?

hope that is clear enough

Cheers guys!
Fiko
Telerik team
 answered on 04 Jun 2010
1 answer
172 views

Hi, Why the ShowEvent="OnFocus" doesnt works with tha radcombobox? The others modes works normally.

 

 

                    <telerik:RadComboBox ID="RadComboBoxCurrency" runat="server" 
                        Skin="Outlook" Width="184px" > 
                    </telerik:RadComboBox> 
                    <telerik:RadToolTip ID="RadToolTipCurrency" runat="server" TargetControlID="RadComboBoxCurrency"   
                     Position="MiddleRight" RelativeTo="Element" ShowDelay="100" Text="oooo" ShowEvent="OnFocus" 
                     Skin="Windows7" AnimationDuration="300" Animation="Resize" HideDelay="200" /> 

I'm doing something wrong?

 

Svetlina Anati
Telerik team
 answered on 04 Jun 2010
1 answer
82 views
Hi,

I want to use "Yahoo-style scrolling" describe in these pages (http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx and http://www.telerik.com/help/aspnet-ajax/grdvirtualscrollpaging.html) but the Rebind() function used in AjaxRequest method don't refresh the grid.

In debug, I can reach the AjaxRequest method, I change the page size but the rebind() doesn't work.

Does anyone has already encountered this problem ?

Thank you in advance for your help.

Yann.
Veli
Telerik team
 answered on 04 Jun 2010
2 answers
122 views
I have using a custom filter operation, so after ItemCommond function
if (e.CommandName == RadGrid.FilterCommandName)
I set e.Canceled = true
But I want the datetime filter have the right selected item at the dropdownlist(NoFilter, GreaterThan or so)
I try to change the FilterMenu in Init, but I set it to selected and no use.
part code is

<telerik:RadGrid ID="RGViewMEdia" Skin="someSkin" EnableEmbeddedSkins="false" 
            runat="server" CssClass="list_one" AutoGenerateColumns="False" AllowPaging="True" 
            GridLines="None" Width="800px" DataKeyNames="somefield" AllowAutomaticDeletes="True" 
            AllowSorting="True" ShowStatusBar="True" AllowFilteringByColumn="true" DefaultSortDirection="Descending" 
            DefaultSortExpression="somefield" BorderStyle="None" PageSize="10" AllowCustomPaging="true" OnInit="RGViewMEdia_Init" 
            OnItemCommand="RGViewMEdia_ItemCommand" OnNeedDataSource="RGViewMEdia_NeedDataSource" OnItemDataBound="RGViewMEdia_ItemDataBound" 
            OnSortCommand="RGViewMEdia_ItemSortCommand" OnPageIndexChanged="RGViewMEdia_PageChangeCommand"> 
 
...... 
...... 
 
<telerik:GridDateTimeColumn DataField="somedatefield" HeaderText="DateTime" ReadOnly="True" UniqueName="PublishDate" DataType="System.DateTime" 
                        SortExpression="somedatefield" DataFormatString="{0:dd.MM.yyyy}" ItemStyle-Width="80px" FilterListOptions="VaryByDataType" 
                        PickerType="DatePicker" FilterControlWidth="60px"/> 
 
...... 
some code behind is
protected void RGViewMEdia_ItemCommand(object sender, GridCommandEventArgs e) 
        { 
            if (e.CommandName == RadGrid.FilterCommandName) 
{ 
... 
} 
                RGViewMEdia.CurrentPageIndex = 0; 
                RGViewMEdia.Rebind();                
                e.Canceled = true; 
} 
 
protected void RGViewMEdia_Init(object sender, EventArgs e) 
        { 
            GridFilterMenu menu = RGViewMEdia.FilterMenu; 
            // Iterate through the items backwards 
            // so that the indexing is not thrown off 
            // when items are removed! 
            for (int i = menu.Items.Count - 1; i >= 0; i--) 
            { 
                if (menu.Items[i].Text.IndexOf("Null")>=0) 
                { 
                    menu.Items.RemoveAt(i); 
                } 
                else if (menu.Items[i].Text.IndexOf("EqualTo") >= 0 && menu.Items[i].Text.IndexOf("Than") < 0) 
                { 
                    menu.Items.RemoveAt(i); 
                } 
                                 
            } 
 
            if (Expression!=null&&Expression.PublicationDateOperate != DateOperate.NoFilter) 
            { 
                string operate; 
                switch (Expression.PublicationDateOperate) 
                { 
                    case DateOperate.GreaterThan: 
                        operate = "GreaterThan"; 
                        break; 
                    case DateOperate.GreaterThanOrEqualTo: 
                        operate = "GreaterThanOrEqualTo"; 
                        break; 
                    case DateOperate.LessThan: 
                        operate = "LessThan"; 
                        break; 
                    case DateOperate.LessThanOrEqualTo: 
                        operate = "LessThanOrEqualTo"; 
                        break; 
                    default: 
                        operate = "NoFilter"; 
                        break; 
                } 
                RadMenuItem item = menu.Items.FindItem(i => i.Text == operate); 
                if(item!=null) 
                    item.Selected = true; 
            } 
        } 


Radoslav
Telerik team
 answered on 04 Jun 2010
0 answers
92 views
Hi

I am executing the following code to retreive the relevant persistent class so I can pouplate the items in my RadComboBox..

However, no data seems to be pulled back.

Please can you point out where I am going wrong.

protected void cboContactDB_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e)  
        {  
            try  
            {  
                Heron.PersistentClasses.Entity loEntity = (Heron.PersistentClasses.Entity)e.Item.DataItem;  
                ((Label)e.Item.FindControl("lblID")).Text = loEntity.ENTSID;  
                ((Label)e.Item.FindControl("lblName")).Text = loEntity.ENTSName;  
            }  
            catch (Exception loException)  
            {  
                Heron.App_Code.L.Exception("ContactReminder.ascx.cs: Error! cboContactDB_ItemDataBound.", loException);  
            }  
        } 

Kind Regards

David
hkdave95
Top achievements
Rank 2
Iron
 asked on 04 Jun 2010
2 answers
306 views
Hi Telerik,

 I observed that there are two assemblies for the RadGrid usercontrol namely:

Telerik.Web.UI.dll
Telerik.WebControls.dll (RadGrid.Net2)

Why are there two dlls for the same usercontrol. Or are they different usercontrols with the same name. 

Please help me out on this.

Thanks in advance
Akhila
Akhilaa
Top achievements
Rank 1
 answered on 04 Jun 2010
2 answers
236 views
hi,
  I am using radtextbox to enter text. I need to show confirm box when user changed the value in the textbox. So i added onvaluechanging method like as fowllows:
            function ConfirmUpdate(sender, eventArgs) {  
                var oldvalue = eventArgs.get_oldValue()  
                if (confirm('Are you want to Continue? ') != true)  
                    eventArgs.set_newValue(oldvalue)   
            } 

This work correctly. But i need to add this function from the code behind because of 2 reasons
1. I use this textbox for insert and update functions. When update only need to ask the confirm.
               - i can handle this in script itself by comparing oldvalue and newvale
2. I need to pass myown message t the confrm box.
               - For this i want to add this event from the code behind.

How can i add this function to the textbox attribute?
How can i pass message without affect the eventArgs values?

Akhil Raj
Top achievements
Rank 1
 answered on 04 Jun 2010
0 answers
89 views
Hi There,

I would really like to create a menu (i think using the treeview control) like the one on this page:

http://demos.telerik.com/aspnet-ajax/treeview/examples/overview/defaultcs.aspx

It is the tree like menu that appears under the title "TreeView" on the left hand side, with the little triangles.

I am using SharePoint.

could you point me in the right direction

Shaun
shaun pitt
Top achievements
Rank 1
 asked on 04 Jun 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?