Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Hi Everybody !!!!

Somebody can give me a hand with this please !

I have a radscheduler binded from database, and it works fine. I need clic on each appointement and display a custom template with a radtextbox, radeditor and a save button that allow me call and store procedure.
I know how radscheduler's custom templates works, but i don't know where i can include some hiddenfields, and then find it in code behind ? and i dont know also if the save button can have a commandname like a radgrid.

I can't achieve this scenario, i've tried to include in a edit or insert advance template binded hiddenfields from database and then finding it in a form create event, but it isn't working for me. I hope somebody can help me.
I don't need inline templates.

Thanks in advance.

Steve.


Plamen
Telerik team
 answered on 08 Aug 2012
1 answer
105 views
We are running SharePoint 2010 and the version of the editor is 6.1.6.0. The web part is in Page Content. The issue crops up when I try to edit the page. When I go into edit the page in the browser (doesn't matter which, happens in Chrome, Firefox, IE) the page loads the content, however, the telerik editor web part does not load the text that is already in the field.  Also the ribbon is totally grayed out when I enter the edit mode. On a side note, when I enter the Edit Properties from the ribbon I get a duplication of the Page Content section. But, the second one is the one that I can edit. The first does nothing.

I would like to know if this is a Sharepoint issue or if this is something to do with the webpart. If it is sharepoint then perhaps you can point me in the right direction. Same thing for the webpart, if there is something that I can do, please let me know. Thanks in advance, and if this is all ready addressed in another thread let me know.
Rumen
Telerik team
 answered on 08 Aug 2012
1 answer
105 views
I'm using editForm template and I have a Cancel button on my edit form. This cancel button has CancelCommand name. All is well if I click the Cancel button in normal condition and it closes the edit form as expected. However, if I have validation errors on the editForm, clicking the Cancel button does not close the editForm and I suspect that it causes validation to be fired.

Can anyone tell me how to close the editForm regardless whether I have validation errors on the form or not?

Thanks.
Princy
Top achievements
Rank 2
 answered on 08 Aug 2012
7 answers
85 views

Hello Telerik Team,

i found  a strange behavior in my RadGrid.
While GridEditMode.InPlace and GridCellSelectionMode.SingleCell both are active, i can not click in editable cells. I reproduced this bahavior in Firefox and IE 8 and higher.

To my Testpage: It is a single RadGrid with following parameters:  

RadGrid1.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.SingleCell
RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace

The datasource is a simple table bound in NeedDataSource event.

Protected Sub getData(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        RadGrid1.DataSource = GetTable()
    End Sub
    Function GetTable() As DataTable
        ' Create new DataTable instance.
        Dim table As New DataTable
        ' Create four typed columns in the DataTable.
        table.Columns.Add("FELD1", GetType(String))
        table.Columns.Add("FELD2", GetType(String))
        table.Columns.Add("FELD3", GetType(String))
        table.Columns.Add("FELD4", GetType(String))
        ' Add five rows with those columns filled in the DataTable.
        table.Rows.Add("11", "12", "13", "14")
        table.Rows.Add("21", "22", "23", "24")
        table.Rows.Add("31", "32", "33", "34")
        table.Rows.Add("41", "42", "43", "44")
        table.Rows.Add("51", "52", "53", "54")
        Return table
    End Function

The last step is the PreRender event.
Private Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender
Dim i As Integer
For i = 0 To RadGrid1.PageSize - 1
RadGrid1.EditIndexes.Add(i)
Next i
RadGrid1.Rebind()
End Sub

It looks good, but the open cells are inaccessable on mouse click... the only thing i can do to access them is to tab in.

Without "RadGrid1.ClientSettings.Selecting.CellSelectionMode = GridCellSelectionMode.SingleCell" everything is working fine. But this setting is needed in the real page to execute js on Clientside in OnCellSelected event.
The InPlace-Editmode is required too.

i hope i provided enough informations so you can help me to find my error.

Kind regards,
Ilja Resch
Ilja
Top achievements
Rank 1
 answered on 08 Aug 2012
3 answers
85 views
HI,

I am using RADgrid.

I have a multi line text box. I need to move the column header on top of the control as shown in the attached images.
By default it comes to the left of the control. I need to change only one column header position. All othe columns are fine. I have implemented it as template column so I can add a header template.

Please suggest.

Prachi
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Aug 2012
7 answers
163 views
I added one extra entry in PageSizeComboBox of Grid paging control on (v2010.1.628.40)

 

 

GridItemCreated(

 

object source, GridItemEventArgs e)

 


{

if

 

 

(e.Item is GridPagerItem)

 

{

 

 

GridPagerItem pagerItem = (GridPagerItem)e.Item;

 

 

 

RadComboBox PageSizeComboBox = (RadComboBox)pagerItem.FindControl("PageSizeComboBox");

 

 

 

// Create a new item for showing All

 

 

 

RadComboBoxItem item = new RadComboBoxItem("All", int.MaxValue.ToString());

 

item.Attributes.Add(

 

"ownerTableViewId", e.Item.OwnerTableView.ClientID);

 

PageSizeComboBox.Items.Add(item);

}


}

and with (becasue I want to always show Page style with PageSizeComboBox even there is only one page, so that user can use PageSizeComboBox)

<

 

 

PagerStyle AlwaysVisible="true" />

 


It is working fine and I can see my "All" option on the page.
But when I select this option, page postbacks, it display me all the rows correctly, but appending one more entry in PageSizeComboBox and the Text of that entry is "2147483647".

This looks like a bug, How can I stop RadGrid to append this extra entry?

Thanks!
Nirnay
Martin
Telerik team
 answered on 08 Aug 2012
0 answers
86 views
Hi guys,

I am trying to get the validation working. The validation is working fine but it does not prevent to stay in the current mode. Is there any way to lock the grid if the validation failed? (lock it to current mode (edit mode). Currently it is display the error message but it does not lock the grid. 

protected void ParticipationGrid_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        RadDatePicker dpEndDate = new RadDatePicker();
        RadDatePicker dpStartDate = new RadDatePicker();
        RadComboBox cbReason = new RadComboBox();


        dpStartDate = (RadDatePicker)e.Item.FindControl("dtParticipationStartDate");
        dpEndDate = (RadDatePicker)e.Item.FindControl("dtParticipationEndDate");
        cbReason = (RadComboBox)e.Item.FindControl("ddlReasonLeaving");


      
        bool canUpdate = true;
       
        


        if (dpStartDate.SelectedDate < dtInstanceStartDate.SelectedDate)
        {
            message = "- Participation start date must be less than current instance start date";
            lblErrorParticipationDate.Text = message;
            lblErrorParticipationDate.Visible = true;
            canUpdate = false;
        }

        
        else
        {
            lblErrorParticipationDate.Visible = false;
            GridEditableItem editItem = (GridEditableItem)e.Item;
            string id = editItem.OwnerTableView.DataKeyValues[editItem.ItemIndex]["ParticipationID"].ToString();
            participationEntity = new ParticipationEntity(int.Parse(id));
            //participationEntity.ParticipationId = int.Parse(id);
            if (dpEndDate.SelectedDate != null && dpEndDate.SelectedDate > DateTime.MinValue)
            {
                participationEntity.ParticipationEnd = dpEndDate.SelectedDate;
                participationEntity.ReasonForLeavingId = int.Parse(cbReason.SelectedValue);
            }
            else if (dpEndDate.SelectedDate == null && cbReason.SelectedValue == "0")
            {
                participationEntity.ParticipationEnd = null;
                participationEntity.ReasonForLeavingId = null;
            }


            TextBox tbNotes = new TextBox();
            tbNotes = (TextBox)e.Item.FindControl("txtNotes");
            participationEntity.ParticipationNotes = tbNotes.Text;
            if (canUpdate)
            {
                SaveParticipation(sender, e);
            }


        }


    }
Mark de Torres
Top achievements
Rank 1
 asked on 08 Aug 2012
1 answer
132 views
Hi,

I have a ajaxified grid with a DetailTable, which is programmatically generated in Page_Load event. Is there a way I can Freeze the first column in the DetailTable when scrolling. And also, is there a way I can programmatically adjust the columns width to match in all the DetailTables without specifying the column width? i.e. to have all the columns to be aligned when two DetailTables are exapned in the grid like Excel vertical lines.

Any help is greatly appreciated!!

Thank you,
Ana
Pavlina
Telerik team
 answered on 08 Aug 2012
2 answers
208 views
I need to implement a particular scenario as given below.

I have a radgrid with one column say,Time has values in all rows,starting from 8 am to 8pm.Other columns in the grid may/may not have values in all rows.Basically I am trying to develop a radgrid to show all the appointments for a particular day.If an appointments exist for a particular time slot,then details of the appointment(name,appointment no,mobile no etc) will be displayed in the rest of columns of that row.
For other time slots with no appointments,rest of the columns will be empty for that time slot.
I thought of doing this with a radgrid instead of radscheduler,as I am not sure is If I can accomplish all these with a Scheduler.Grid is filtered by a calendar and multicolumn combobox value.

Now my issue here is:
I need to double click on a cell,which has no appointment .On double clicking ,need to open a radwindow,in which I will save an appointment,which will be displayed in the radgrid on closing.
I could see only OnColumnDblClick,OnCellSelected,OnRowDblClick as client side events.How to open a rad window with below two conditions
1)On double click of a cell
2)If that particular row has no appointment,(row will surely have value in the time column),radwindow should not open on double click.
3)As I mentioned above grid is being filtered by a multicolumn combobox.Grid has columns Time,duration,name,contact number.
When user double click on a grid celI,I need to pass multicolumn combobox value(which is placed outside grid),Time & duration of that particular row in grid(row corresponds to the clicked cell) as parameter to the radwindow.

Please help m on this.
Thanks,
Soumya
Soumya
Top achievements
Rank 1
 answered on 08 Aug 2012
1 answer
142 views
Hi All,

I have a Rad Grid and its having 3 columns (ItemID, ItemCode, ItemName) i wish to get the all row values of ItemID and the value need set to an array in a private function....
how can i achieve this .. please help..

Regards,

Prassin
Shinu
Top achievements
Rank 2
 answered on 08 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?