Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 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
127 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
185 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
569 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
139 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
2 answers
151 views
hi mi having three tables with data sets binding for a three y axis bar chart in radchart. user has the control to select these three databind using check box i.e if the user checks two check boxes out of three one series should be made invisible from other two series. this works fine with the following code. but the issue is if i make series[0] visible false, the legend associated with that is still displaying. i want that also to be suppressed with the above scenario. please help...

Chart display in asp.net with three series

<div style="margin:10px 10px 10px 10px;">

     <telerik:RadChart ID="RadChart1" runat="server" Height="333px" Skin="Hay" UseSession="true"  Legend-Visible="true"

            Width="700px"  AutoLayout="True"

                AutoTextWrap="True" SeriesOrientation="Vertical">

            <Series>

                  <telerik:ChartSeries Name="QUALIFIED_COUNT" Type="Bar"  DataYColumn="QUALIFIED_COUNT" Appearance-BarWidthPercent="30">

                 </telerik:ChartSeries>

                  <telerik:ChartSeries Name="NONQUALIFIED_COUNT" Type="Bar" DataYColumn="NONQUALIFIED_COUNT" Appearance-BarWidthPercent="30" >

                 </telerik:ChartSeries>

                  <telerik:ChartSeries Name="ABANDONED_COUNT" Type="Bar" DataYColumn="ABANDON_COUNT" Appearance-BarWidthPercent="30" >

                 </telerik:ChartSeries>

           </Series>

            <PlotArea>

                <XAxis DataLabelsColumn="creation_month">

                </XAxis>

                <YAxis Appearance-ValueFormat="General"  LabelStep="10"></YAxis>

            </PlotArea>

        </telerik:RadChart>

      </div>  


C# code to make its visibility false:

if (IncludeQualified == "N")  //when the check box is unchecked

                {

                    RadChart1.Series[0].Visible = false; --the bar suppresses  but the legend still there

                    divQualifiedReport.Visible = false;                   

                }

                else

                {

                    gvQualifiedReport.DataSource = dsReport.Tables[1];  --data binding in else

                    gvQualifiedReport.DataBind();

                }

                if (IncludeNonQualified == "N")

this IncludeQualified will set as ‘N’ if I uncheck the relevant check box.


thanks

saran


Saran kumar
Top achievements
Rank 1
 answered on 25 Sep 2009
1 answer
123 views
Hi,

I have a rad grid on a page and it just have two columns. one for the checkbox to select the row (The template column) and the other column for the some row description. I have paging enabled on this grid, because i can have hundreds of records in the grid.

Now for the row selection i have a checkbox with autopostback=false, so that my grid should not load on every row click. And i need to persist the state of the grid on all different types of events. i am saving all the row values in a hashtable which i am maintaining in a Session variable.

I do not have select all checkbox in the header. So, i just update my hashtable only on the page index changed event and this will help me in maintaining the state of all the rows and when i go to next page i set the row value on the basis of the their value in the hashtable. 

Now the problem i am having here is with the filtering event. In case of Page index changed event i can have access the old page controls and so i can save my values for the controls in the previous page.  But the problem with the filter is typical and i would like to explain that with the following scenario:

Suppose i have total 100 items on my grid and page size 10. i have put filter text as "xyz" and say 14 items have returned after passing the filter. Now i select the top 4 on the first page and clear the filter so that after selecting these 4 i can put some other filter condition and select some other items. So the problem is i need to save the state of those 4 top rows at the time i clear the filter or if i can handle those 4 selections after the filter gets cleared or changed to something else, how can i achieve this?

I would appreciate any help on this.

Sunil.
Pavlina
Telerik team
 answered on 25 Sep 2009
2 answers
52 views
Hello!

I created a test page and the ComboBox looks very strange and big on my side.
Here is a screenshot of your sample page when it is using Web20 skin: http://picasaweb.google.com/botondlong/TelerikSkinWeb20#5384996291258328274

I haven't done anything special: I have a masterpage with the RadScriptManager, and I have a RadComboBox, Skin set to Web20.

With further investigation I found that RadDatePicker is behaving the same: a big input box and the calendar itself is also bigger and looks quite ugly.

I checked, there is nothing related in my css or skin file. Where can be the problem?

Btw, I'm using RadControls for ASPNET AJAX Q1 2009.

Thanks
Botond
Botond Long
Top achievements
Rank 1
 answered on 25 Sep 2009
1 answer
36 views
I am having allignment problem in the pop up that appears by clicking rad combo box.Can any one suggest me some solution.
Simon
Telerik team
 answered on 25 Sep 2009
1 answer
121 views
I have some code that is calling radalert.
It works perfect in FireFox, but not in IE, IE throws an "Object doesn't support his property or method" error.
Do I need to do something different to get this to work with IE?
Any help would be appreciated.

I have the code in the click event of a button.

        if (condition > 0)
        {
            //do something
        }
        else
        {
            string radalertscript = "<script language='javascript'> window.onload = function(){radalert('Error has occurred.', 330, 210);}</script>";
            Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);          
        }
Georgi Tunev
Telerik team
 answered on 25 Sep 2009
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?