Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
hello.. well i think the title says it all.. here's a detailed description of the issue im having..

the setup..
- an application that has a radscheduler control embedded..
- an sql database that stores appointment information..
- a webservice that allows insert, update and delete operations to be performed on the database and allows the application to get a list of appointments..

the work flow..
- the page loads with the schedulers default view set to daily..
- double clicking opens a custom form (by hooking onclientinserting) which allows the user to enter information..
- closing the custom form saves the information to the database and refreshes the parent page which contains the radscheduler control..
- upon page refresh, a webservice call is made to the database to fetch rows.. these are converted to datatables with appropriate column names and bound to the control.. the datatable is saved in session..
- when the page refreshes, the control correctly shows all instances of the recurring appointment during that day..

the problem..
- when the view is changed (to lets say week or month) or the date is changed to some other day, the control is rebound to the session datatable..
- i have a method for radscheduler_databound which is called AFTER binding has been done..
- by placing a watch on radscheduler.appointments[] array and checking the properties of each appointment, i find that they are the SAME appointments that were there in the last view..
- by running the code and when the page displays, i find:
    - day view (different date): NO recurrent appointments for the new date..
    - week / month view: ONLY those recurrent appointments that were visible in the view those appointments were created in (in this case.. the whole month is blank with recurrent appointments showing only for the day when they were created in..

i hope you understand the jist of the problem.. im sorry i cant produce a test project which isolates the problem as the application is very complicated.. i had the understanding that when a datatable is bound or rebound to radscheduler, it automatically generates recurrence instances on-the-fly.. what can i possibly be missing?

asim sohail..
Peter
Telerik team
 answered on 04 Jul 2011
1 answer
110 views
Hi,
   
 I would like to know if there is a way to solve my problem, the thing is that we have a costum control (EditorDropDownList) and on IE (6-7-8-9) every time I click outside of the radeditor frame the cusor focus is lost. Afterward when I try to paste something using the PasteHTML function of my costum control, it pastes at a semi-random position (at the begining or at the very end).
Could there be a way to solve my problem.

Also I dont know if you notice but the Télérik view is kind of messed up on IE 9 RC and Beta.

Thanks a lot for your time

Maxime Nadeau
Rumen
Telerik team
 answered on 04 Jul 2011
1 answer
207 views
I use FormDecorator to style buttons in my application with Office2007 skin. I especially like effect that hovered buttons have. Can I set in code behind that not-hovered button will look like hovered somehow?
Bozhidar
Telerik team
 answered on 04 Jul 2011
7 answers
91 views
I have been searching all morning for a demo or example of inserting a record into a child grid in a hierarchical grid to no avail. The odd thing is, that this was working at one point and I am not sure what changed.

It's a fairly simple grid. The problem I am having is that in the InsertCommand method when I extract the values I see the keys of the two columns I am looking for but the values are always null. Any insight as to what I am doing wrong would be greatly appreciated!

My grid:

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0" OnItemDataBound="RadGrid1_ItemDataBound" OnItemCommand="ViewResponse"
    OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged" OnPageSizeChanged="RadGrid1_PageSizeChanged" Skin="Office2007"
    ShowStatusBar="true" Width="100%"  AllowSorting="True" AllowPaging="True" PageSize="20" OnNeedDataSource="GridNeedsDataSource" OnPreRender="RadGrid1_PreRender"
    OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" >
    <MasterTableView DataKeyNames="response_id, survey_id, email_sent_history_id" >                                    
        <DetailTables>
            <telerik:GridTableView DataKeyNames="email_sent_history_id" Name="Calls" Width="100%" runat="server" CommandItemDisplay="Top">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="email_sent_history_id" MasterKeyField="email_sent_history_id" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridDateTimeColumn HeaderText="Call Date" DataField="call_date" UniqueName="call_date" PickerType="DatePicker">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn HeaderText="Call Outcome" DataField="call_outcome" UniqueName="call_outcome">
                    </telerik:GridBoundColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
            <telerik:GridBoundColumn DataField="email_sent_history_id" UniqueName="ResponseId" Visible="false" />
            <telerik:GridBoundColumn DataField="response_id" UniqueName="ResponseId" Visible="false" />
            <telerik:GridBoundColumn UniqueName="first_name" DataField="first_name" HeaderText="First Name" />                                        
            <telerik:GridBoundColumn  DataField="last_name" HeaderText="Last Name" />                                        
            <telerik:GridBoundColumn  DataField="organization" HeaderText="Organization" />
            <telerik:GridBoundColumn  DataField="pi_name" Headertext="PI Name" />
            <telerik:GridBoundColumn  DataField="response_date" DataFormatString="{0:MM/dd/yyyy}"  Headertext="Response Date" />
            <telerik:GridBoundColumn  DataField="current_status" HeaderText="Survey Status" />                                       
            <telerik:GridBoundColumn  DataField="score" Headertext="Score" />
            <telerik:GridButtonColumn UniqueName="Response" Text="View" HeaderText="Response" CommandName="ViewResponse"/>                                     
            <telerik:GridBoundColumn  DataField="feasibility_status" HeaderText="feasibility_status" />                                                                                     
        </Columns>                      
        <PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric" Position="TopAndBottom"></PagerStyle>
    </MasterTableView>
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</telerik:RadGrid>

My insertcommand method
protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)
        {
            GridEditFormInsertItem item = e.Item as GridEditFormInsertItem;
            if (item == null)
            {
                return;
            }
 
            string errorString = string.Empty;
            Hashtable values = new Hashtable();
            item.ExtractValues(values);
            try
            {
                var callDate = values["call_date"] == null ? string.Empty : values["call_date"].ToString();
                var callOutcome = values["call_outcome"] == null ? string.Empty : values["call_outcome"].ToString();
 
                /*Do some error checking and update the DB if we have values. callDate and callOutcome are always an empty string!*/
                 
            }
            catch (Exception ex)
            {
 
                RadGrid1.Controls.Add(new LiteralControl(string.Format("<span style='color:red'>{0}</span>", ex.Message)));
                e.Canceled = true;
            }
        }

I put a comment in place of where I am actually doing to the insert into the db because I figured it wasn't relevant. When I view the values HashTable in debug mode, after extracting the values. I can see that it has the two datakeys: call_date and call_outcome, but the values are always null....

thanks for any help!
Iana Tsolova
Telerik team
 answered on 04 Jul 2011
3 answers
64 views
I have RadWindow poping up from RadGrid column click. I am always reloading the grid when RadWindow is closed to reflect the changes. If nothing has changed, I am wasting time and resources for reloading grid. How can I check if something has done in RadWindow? can I do that ?

Please help.... need experts guidence on this ...
Smiely
Genti
Telerik team
 answered on 04 Jul 2011
1 answer
177 views
Hi,

Im having some trouble with a simple Grid bound declaratively to an ObjectDataSource, on first PageLoad it works fine but after PostBack (sorting for example) the Grid goes empty as if it loses the DataSource. For testing purposes i also tried an asp:GridView and that works perfectly fine. Any Ideas on what could be the Problem?
The SelectMethod on the ObjectDataSource returns an DataSet.

<telerik:RadGrid
    ID="rgData"
    runat="server"
    AllowSorting="true"
    Skin="<%$Appsettings:TelerikSkin %>"   
    ClientSettings-AllowColumnsReorder="true"
    ClientSettings-Resizing-AllowColumnResize="true"
    DataSourceID="odsGrid"
    Width="400px"
    AutoGenerateColumns="false">
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn
                HeaderText="AttributeName"
                SortExpression="AttributeName"
                DataField="AttributeName">
            </telerik:GridBoundColumn>               
            <telerik:GridBoundColumn
                HeaderText="DataValue"
                SortExpression="DataValue"
                DataField="DataValue">
            </telerik:GridBoundColumn>               
        </Columns>
    </MasterTableView>               
</telerik:RadGrid>
 
<asp:GridView
    ID="gData"
    runat="server"
    AllowSorting="true"
    DataSourceID="odsGrid"
    Width="400px"
    AutoGenerateColumns="false">
    <Columns>   
        <asp:BoundField
                HeaderText="AttributeName"
                SortExpression="AttributeName"
                DataField="AttributeName">       
        </asp:BoundField>               
        <asp:BoundField
                HeaderText="DataValue"
                SortExpression="DataValue"
                DataField="DataValue">
        </asp:BoundField>
    </Columns>   
</asp:GridView>
 
<asp:ObjectDataSource
    ID="odsGrid"
    SelectMethod="GetGridData"
    TypeName="dataViewGridInterface"     
    runat="server"></asp:ObjectDataSource>

Regards,
Alex
Princy
Top achievements
Rank 2
 answered on 04 Jul 2011
3 answers
136 views
Dear Telerik,

Not sure if I should be posting about IE9 Beta issues, but I think I have discovered one:

I have a databound RadComboBox in the itemtemplate of a datalist. The RadComboBox text property works for items contained in the RadComboBox but when freetext is entered this is not returned, only the original item in the RadComboBox.

It also seems to take two attempts to input free text.
Dimitar Terziev
Telerik team
 answered on 04 Jul 2011
4 answers
147 views
Has anyone been able to get scrolling to work with the iPhone Menu Appearance example?  When I have more Rad Items than will fix on the iphone / ipad screen, it will not scroll.  I'm also getting a Javascript error "iPodMenu" is undefined.  It's related to the javascript in the .aspx page controlling vertical and horizontal.

Ivan Zhekov
Telerik team
 answered on 04 Jul 2011
2 answers
128 views
Hi. I love the Telerik ASP.NET and Sharepoint controls. Is there a RadTabStrip web part for Sharepoint 2010? Is it possible to easily incorporate the existing RadTabStrip into Sharepoint 2010? I've been searching for an easy (and good looking) tabbing solution for Sharepoint and wondered if your beautiful controls can be used for this. Thanks.
Alex
Top achievements
Rank 1
 answered on 04 Jul 2011
3 answers
46 views
Hi All

I have three related combo boxes,
The second one of the three is load on demand where the user can type in custom text to search for records,
They all work fine on Initial load client side,
However when the user edits the second box and types in their desired value (the first box has loaded and has a value) it fails because it is always getting the value 0 from the first box?
The first box is not load on demand.
I am trying to obtain the value of the first box server side in the items requested event of the second.

something = RadComboBox.SelectedValue

I have tested my theory by replacing the selected value of the first combo with a static value in the code behind and everything works fine.
All three boxes are in the edit form of a rad grid.

Any advice would be most appriciated

Best Regards

Cush
Kate
Telerik team
 answered on 04 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?