Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
53 views
hi,
i have a problem with rad rotator in ie7 when i set my page style to RTL ;
when i set it the rotator not shown
please help me to resolve this problem
Fiko
Telerik team
 answered on 05 Apr 2010
10 answers
287 views
Under certain circumstances I may wish to remove the ability for a user to add a new item to the grid.

e.g.

User adds clicks:
            <CommandItemSettings
                  AddNewRecordText="Click here to add new item"

After clicking save\update and certain conditions are met I wish to block the user from being able to add any more items. Ideally I would like to set AddNewRecordText = ""
AddNewRecordImageUrl = "spacer.gif" to hide it

Is there a property I can set to say AddNew.Enabled = false or something similar.

This is a hierarchical grid and I do not wish to prevent the user from continuing to add items to the detail grid. Only the Master should be disabled.

Dimo
Telerik team
 answered on 05 Apr 2010
1 answer
74 views
I am watching your webinar on grid optimization, and one of the recommended techniques is to disable viewstate on all read only grids.
I have several grids that are read only, but that use:
<telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/images/icon_page_magnify.gif" HeaderText="Select" UniqueName="Select" CommandName="Select" /> 
and an OnItemCommand, which is causing an invalid postback problem.
I realize this is a limitation in .Net, but is there some other way to create a grid navigation activity that sets a session variable and redirects to a different page that would allow me to keep the viewstate off?

I am just trying to find some other way to achieve this result while still being able to leave the viewstate off.

The onItemCommand is this:
            if (e.CommandName.ToUpper() == "SELECT")  
            {  
                Session["A"] = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["A"];  
                Response.Redirect("~/Item/");  
            }  
 

Or maybe I don't need a session variable, how else could i send the user to another page with an id without using the query string???


Pavlina
Telerik team
 answered on 05 Apr 2010
1 answer
76 views
Hi,

I try to use this example (http://www.telerik.com/ArticleFileDownload.aspx?I=bdmh&G=bahm

In my case, because I'm french, we use some spécials latin chars like (éàç).

Radfileexplorer display this chars with no problem. But there is a function somewhere who return invalid chard in "physicalPathToFile"


Thanks
Fiko
Telerik team
 answered on 05 Apr 2010
2 answers
164 views
Hi,
I have a query (CTE) that returns the parent child relationship in a dataset and I can bind to an ASP.Net treeview but I want to be able to bind to a RadTreeView. Can anyone help me with the conversion?
Here's my code to bind to a treeview:
 Private Sub InitializeControls()  
 
        '==Get some info from the logged in user  
        Dim oContact As New Contact(UserInstance.ContactID)  
        '== Labels  
        lblDownline.Text = "My Distributor Downline" 
 
        LoadDataSet()  
        '== If it's the root node, SponsorID will be zero so use their contactid  
        Dim parentID As Integer = 0  
        If oContact.SponsorID = 0 Then 
            parentID = UserInstance.ContactID  
        Else 
            parentID = oContact.SponsorID  
        End If 
 
        BuildTree(TreeView1.Nodes, parentID)  
 
    End Sub 
 
    Private Sub LoadDataSet()  
        '==ds is declared at the page level  
        Dim oContacts As New ContactCollection  
        ds = oContacts.GetDownline(UserInstance.ContactID, 8) '==returns a dataset...later would like to return a collection  
 
    End Sub 
 
Private Sub BuildTree(ByVal nodes As TreeNodeCollection, ByVal IntParent As Int32)  
        Dim thisID As Int32  
        Dim thisName As String 
        Dim children As DataRow() = ds.Tables(0).Select("SponsorID='" & IntParent & "'")  
 
        If children.Length = 0 Then 
            Return 
        End If 
        Dim newNode As TreeNode  
        For Each child As DataRow In children  
            thisID = Convert.ToInt32(child.ItemArray(0))  
            thisName = Convert.ToString(child.ItemArray(2))  
            newNode = New TreeNode(thisName, thisID.ToString)  
            nodes.Add(newNode)  
            newNode.ToggleExpandState()  
            BuildTree(newNode.ChildNodes, thisID)  
 
        Next 
    End Sub 

Does anyone know how to do this with a RadTreeView? I almost had it working but the newNode doesn't have a ChildNodes collection.

Thanks
Rob Venable
Top achievements
Rank 1
 answered on 05 Apr 2010
2 answers
86 views
Is it possible to access the area where the group by columns are placed?  I'd like to add a button in there.
Neil
Top achievements
Rank 1
 answered on 05 Apr 2010
0 answers
122 views
Hi,


this is shanker am doing one project by using telirik controls .In my project am using Scheduler with raddock. it's fine but am face one problem in Scheduler / External Edit in RadDock .my problem is in edit mode am getting problem that is when ever am edit it's show edit values .But am again  edit next one it's shows same values any time am change edit am getting same values. How to solve that please give me any solutions .it's very argent please how to fine that

this is my code 

 public void Getclassrefresh()
        {
            RadScheduler1.DataSource = Calendermanager.sch_view_calendar(Radcomclass.SelectedValue.GetInteger());
            RadScheduler1.DataBind();
        }
        protected void classRefresh_Click(object sender, EventArgs e)
        {
            Getclassrefresh();
          
        }

 protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
        {
            if (e.Mode == SchedulerFormMode.Insert || e.Mode == SchedulerFormMode.Edit)
            {
                EditedAppointmentID = e.Appointment.ID;
                e.Cancel = true;

                ScriptManager.RegisterStartupScript(Page, GetType(), "formScript", "Sys.Application.add_load(openForm);", true);
                PopulateEditForm(e.Appointment);
            }
            
    }
        protected void PopulateEditForm(Appointment editedAppointment)
        {
            Appointment appointmentToEdit = RadScheduler1.PrepareToEdit(editedAppointment, RadScheduler1.EditingRecurringSeries);
            //DescriptionText.Text = appointmentToEdit.Subject;
            if (appointmentToEdit != null)
            {
                if (appointmentToEdit.ID != null)
                {
                    StartTime.SelectedDate = RadScheduler1.UtcToDisplay(appointmentToEdit.Start);
                    EndTime.SelectedDate = RadScheduler1.UtcToDisplay(appointmentToEdit.End);
                    int s = int.Parse(appointmentToEdit.ID.ToString());
                    var det = Calendermanager.sch_view_calendar_popup(s);
               
                if (det != null)
                {
                    if (det.class1 != null)
                    {
                        formRadclass.SelectedIndex = formRadclass.Items.IndexOf(formRadclass.Items.FindItemByText(det.class1.ToString()));
                    }
                    if (det.subject != null)
                    {
                        RadComboBoxItem item1 = new RadComboBoxItem();
                        item1.Text = det.subject.ToString();
                        item1.Value = det.subject_id.ToString();
                        formRadSubject.Items.Add(item1);
                        
                    }
                    if(det.room!=null)
                    {
                        RadComboBoxItem item1 = new RadComboBoxItem();
                        item1.Text = det.room.ToString();
                        item1.Value = det.room_id.ToString();
                        formRadroom.Items.Add(item1);
                    }
                    if (det.teacher != null)
                    {
                        RadComboBoxItem item1 = new RadComboBoxItem();
                        item1.Text = det.teacher.ToString();
                        item1.Value = det.teacher_person_id.ToString();
                        formRadTeacher.Items.Add(item1);
                    }
                    if (det.session_name != null)
                    {
                        formRadsession.SelectedIndex = formRadclass.Items.IndexOf(formRadsession.Items.FindItemByText(det.session_name.ToString()));
                    }
                 
                }
                }
            }
            Resource user = appointmentToEdit.Resources.GetResourceByType("User");
            if (user != null)
            {
                //UserDropDown.SelectedValue = user.Key.ToString();
            }
        }

please how to solve this problem .

thanks and regrads
shanker.B
shanker bangari
Top achievements
Rank 1
 asked on 05 Apr 2010
1 answer
145 views
Good Day to All

I Have a grid with a Column Resize Property = true
My grid works fine.....until i used the scrolling with static header to true.
When static header is true, if i resize my column the grid resizes even if i set the resize grid on column resize =  false

I really like to combine this features

I would like to know if they really do not work together and is there a backdoor code to make them work?

Thank You
Dimo
Telerik team
 answered on 05 Apr 2010
4 answers
107 views
Hi,
I am working with a project which is developed using telerik controls (version: 1.6.2.0). But I do not get any kind of tutorial and example over that version. Is there any way get those..


Animesh Chandra Dey
Animesh Dey
Top achievements
Rank 2
 answered on 05 Apr 2010
3 answers
117 views
Hi,

I have a very simple Editor included on my page.  It displays correctly for most users, but in a few instances the editor renders with toolbar layout broken (see attached image).  This seems to happen only on IE7 (works fine with Firefox) and it's across all different resolutions/screen settings.  Any idea what could be causing this?

Thank you,

Marek

Rumen
Telerik team
 answered on 05 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?