Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
134 views
Hi
How add InlineInsertTemplate to RadGrid binding in WebService?

<telerik:RadScheduler ID="RadScheduler1" runat="server" Width="100%" DataKeyField="idraport" 
            DataStartField="raportdatastart" DataEndField="raportdatakoniec" DataSubjectField="opis" 
            Skin="Office2007" Height="400px" ShowFooter="false" RowHeaderWidth="52" OverflowBehavior="Scroll" 
            HoursPanelTimeFormat="H:mm" TimelineView-UserSelectable="false"    > 
            <Localization AdvancedAllDayEvent="<%$ Resources:General, CaleDni%>" Save="<%$ Resources:General, Zapisz%>" 
                Cancel="<%$ Resources:General, Anuluj%>" AdvancedFrom="<%$ Resources:General, Od%>" 
                AdvancedTo="<%$ Resources:General, Do%>" AdvancedEditAppointment="<%$ Resources:General, FormularzRaportu%>" 
                ConfirmDeleteText="<%$ Resources:General, ConfirmDeleteText%>" ConfirmDeleteTitle="<%$ Resources:General, ConfirmDeleteTitle%>" 
                HeaderToday="<%$ Resources:General, Dzis%>" HeaderDay="<%$ Resources:General, Dzien%>" 
                HeaderMonth="<%$ Resources:General, Miesiac%>" HeaderWeek="<%$ Resources:General, Tydzien%>" 
                ShowMore="<%$ Resources:General, Wiecej%>" AllDay="<%$ Resources:General, CalyDzien %>" /> 
            <WebServiceSettings Path="WebService/SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" /> 
            <InlineInsertTemplate> 
                TEST!!! 
            </InlineInsertTemplate> 
        </telerik:RadScheduler> 

Please help :)
Adek
Top achievements
Rank 1
 asked on 25 Sep 2009
3 answers
126 views

Hi,

1. How do I get the horizontal scroll bar for the timelineview in the scheduler?

2. How do I set the height and with of the appointment inthe time line view?

Thanks

Sabarish

Peter
Telerik team
 answered on 25 Sep 2009
3 answers
81 views
Is it possible to color code the appointments based on a status? We have a statusid on our appointments that tells us if they are overdue so basically we want all "on-time" appointments / tasks to be green and overdue red.

Thanks,
Sam
Peter
Telerik team
 answered on 25 Sep 2009
1 answer
72 views

Hi,

I am using a RadGrid in my Asp.net Form. I am facing an issue like the Grid is not refreshing automatically. Here is the scenario, I have Radgrid that displays list of items. Once it is displayed, when ever the user double click the RadGrid list, asp.net Pop-up window will be opened. User can modify the content in the POP-up window. Once the modification is done, then user clicks the Save image button I have to update the modified content to the DB as well as the Radgrid should be refreshed automatically. How can we achieve this using RadGrid. Please help me out to solve this issue.

 

Thanks,

KG

Mira
Telerik team
 answered on 25 Sep 2009
5 answers
112 views
Hello all,

Im using the radcombobox. For some reason it doenst looks the way it should. Is there any suggestion for the cause of it?

You can see how it looks here

Greets,
Yana
Telerik team
 answered on 25 Sep 2009
1 answer
129 views
Hi,

I am using rad scheduler in .net 3.5 sp1 with update panel.
I am binding scheduler with data set, when data retrieved and bind to scheduler it shows data in month view but do not show data in day view and week view , I am not understanding this behaviour of rad scheduler.

my code is :

 

<asp:ScriptManager ID="ScMain" runat="server" LoadScriptsBeforeUI="false" ScriptMode="Release">

 

/asp:ScriptManager>

 

 

 

<asp:UpdatePanel ID="upSchedular" runat="server">

 

 

 

ContentTemplate>

 

 

 

telerik:RadScheduler ID="rsAppointments" runat="server" ShowFooter="false"

 

 

 

AllowEdit="true" AllowDelete="true" ShowAllDayRow="false" AllowInsert="true"

 

 

 

SelectedView="MonthView" DataMember="schd_description" DisplayRecurrenceActionDialogOnMove="true"

 

 

 

DisplayDeleteConfirmation="true" DataKeyField="schd_id" DataSubjectField="schd_description"

 

 

DataStartField="schd_start_time" DataEndField="schd_end_time" ValidationGroup="rsAppointments"

 

OnClientAppointmentInserting="OnClientAppointmentInserting" OnAppointmentInsert="rsAppointments_AppointmentInsert"

 

OnAppointmentDelete="rsAppointments_AppointmentDelete" OnAppointmentUpdate="rsAppointments_AppointmentUpdate"

 

 

OnTimeSlotCreated="rsAppointments_TimeSlotCreated">

 

 

</telerik:RadScheduler>

 

 

</ContentTemplate>

 

 

</asp:UpdatePanel>

 

 

public void GetData()
{
wsSchedular = new WSSchedular();

 

 

string strLabLocation = string.Empty;

 

 

try
{

 

 

objTable = wsSchedular.GetScheduling(

);

 

 

rsAppointments.Enabled = true;

 

 rsAppointments.DataSource = objTable;

rsAppointments.DataBind();

 

}

 

catch (Exception ex)

 

 {

 

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "errMsg", "javascript:alert(\"Error:- Page -> ph_scheduler.aspx -> Method -> 'GetPhlebotmistSchedule' \\n Description:- \\n" + ex.Message + "\");", true);

 

 

return;

 

 }

 


data is coming in datatable  from database is :
schd_id schd_hc_transaction_id schd_phlebotomist_id schd_customer_id schd_location_id schd_start_time schd_end_time schd_description created_date status
2 HMC2009/9/0001 9899899999 2009/9/0001 Dwarka  9/23/2009 4:30 9/23/2009 5:30 Collect samples 9/22/2009 13:23 O
4 HMC2009/9/0002 9999999999 2009/9/0002 IIT Area  9/23/2009 4:30 9/23/2009 5:30 Collect samples 9/22/2009 16:56 O
5 HMC2009/9/0003 9899899999 2009/9/0001 Dwarka  9/23/2009 4:30 9/23/2009 5:30 Collect samples 9/23/2009 12:54 O
10 HMC2009/9/0004 9999999999 2009/9/0002 IIT Area  9/23/2009 5:30 9/23/2009 6:30 Collect samples 9/23/2009 15:34 O

Could you please give quick resolutions...........
Peter
Telerik team
 answered on 25 Sep 2009
1 answer
119 views
The examples I've found thus far have shown accessing the EditForm (which is a seperate UserControl in PopUp edit mode) via events that have the GridCommandEventArgs...  I took a quick stab at trying to find the UserControl via the GridItemEventArgs (as I would be using if I need to reference the UserControl during the ItemCreated / ItemDataBound events) but I ran into issues...

From the other examples I've used this code for retrieving the UserControl from the GridCommandEventArgs type:
Args: [GridCommandEventArgs e]  
Code: object eeditFormUserControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID); 

I tried to follow the same pattern above (i.e. during the ItemDataBound event when the Item is a GridEditFormInsertItem/GridEditFormItem) but didn't quite get what I was needing to do from there...

I'm trying to make a utility function in my base class where it is overloaded with both EventArg types and simply returns my user control....
Mira
Telerik team
 answered on 25 Sep 2009
2 answers
177 views

Hi, is there a property to hide Editor Tool during preview?
Is it possible also to replace it with custom text?

 

Thanks,

RJ

RJ
Top achievements
Rank 1
 answered on 25 Sep 2009
3 answers
555 views

Folks,

I have Two level hierarchy Rad Grid.  Allow filtering is enabled in both Master/DetailTables. Below codes (which I am using from Telerik Demos) works for Master Table. 

I would like to know is it possible 1) when Filters are cleared in Master Table, Detail Tables Filters are also Cleared; 2) When Filter Show/Hide is checked in Master Table it applies to Detail Table also (i.e. Show/Hide Filters in Detail Table)

I am using RadControls for ASP.NET AJAX Q2 2009  with VS 2008 (Service pack 1)

Thanks a lot.

gc_0620

_________________

1) How to Clear the Filters in Detail Table when Clearing Filters in Master Table.

<asp:Button ID="Button_Clear_Filters" CssClass="form-button" Text="Clear all Filters" OnClick="Button_Clear_Filters_Click"
runat="server"></asp:Button>

 protected void Button_Clear_Filters_Click(object sender, EventArgs e)
    {
        foreach (GridColumn column in RadGrid1.MasterTableView.Columns)
        {
            column.CurrentFilterFunction = GridKnownFunction.NoFilter;
            column.CurrentFilterValue = string.Empty;

        }
        RadGrid1.MasterTableView.FilterExpression = string.Empty;
        RadGrid1.MasterTableView.Rebind();

    }

2) How to Show/Hide Filters in Detail Table when Show/Hide Filters in Master Table.

<td class="style3"  >
       Show filtering item?  <input id="Radio3" type="radio" runat="server" name="showHideGroup" checked="true" onclick="showFilterItem()" /><label for="Radio1">Yes</label>
            <input id="Radio4" type="radio" runat="server" name="showHideGroup" onclick="hideFilterItem()"/><label for="Radio2" >No</label>
       </td>

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

            <script type="text/javascript">
               
                function showFilterItem() {
                    $find('<%=RadGrid1.ClientID %>').get_masterTableView().showFilterItem();
                }
                function hideFilterItem() {
                    $find('<%=RadGrid1.ClientID %>').get_masterTableView().hideFilterItem();
                }
               

            </script>

        </telerik:RadCodeBlock>

Mira
Telerik team
 answered on 25 Sep 2009
2 answers
134 views
Hi,

We are adding child menu items at run time and the text is based on the User Language Preferences; so we can not use the FindItemByText method. Is there any client side method to get element by id so that we don't have to iterate through all the items for getting a particular item.

Thanks
Dheeraj Khajuria
Top achievements
Rank 1
 answered on 25 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?