Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
Hello

Thanks in Advance...

I want to Add New Item in My radmenu that item should come through database only . In My existing rad menu is static that should be remain same I want to add one more item that should be come from database. How we can bind the Particular item dynamically

Thanks and Regards
Parveen Goyal
Shinu
Top achievements
Rank 2
 answered on 14 May 2010
3 answers
72 views
Hello,

My goal is to keep an archive of past appointments placed on the calendar that can be kept up to date when appointments are added, removed or updated on the calendar.

What I would like to do:
Upon appointment Insert
- Capture the ID
- Create a new table with the ID, start and end times and other data necessary for the archive A new row would need to be inserted for each recurrence in the appointment as well should it be recurring.

Upon appointment update
- Use the ID to find all future occurences in the archive table and delete them
- Create new entries in the archive table for all future occurences (same as the insert)

Upon delete
- Delete all future occurences of the appointment in the archive table.

As you can see I want to leave anything that happened historically in place so it can be evaluated later and not affected by changes in the future.

I believe I can add the functions but here are the hurdles I'm facing:

1) I am returning the inserted ID from the insert query in a variable, how do I access that in the appointmentinserted event?

2) There are no recurrence details in the e.appointment variable that I can see, just the pattern. How do I access the recurrence items so I can loop through them and add them to the calendar? in the appointmentinserted and updated events? Do I have to select them using the id into a new object?

I know I saw a post similar to this here a while back, but now I cannot find it. Any tips would be appreciated. Thanks!!! - Andrew

Peter
Telerik team
 answered on 14 May 2010
1 answer
58 views
when I open IE8, i got the error " DateError is not defined", my page include a rad calendar control, if i commented "<ClientEvents OnError="DateError" />" in the HTML source code, everything will be okay, any help will be appreciated.
Maria Ilieva
Telerik team
 answered on 14 May 2010
1 answer
54 views
Hi all,
I am getting an issue export into excel format, after export the excel can be opened by MS Excel but it actually is in Html format, I don't want this I want to open the file in excel, it should be the excel format and editable and saving. I don't know what it is happening, I set export format is Excel.

Please help me to find the solution for solving this problem.

Thanks,

Sang
Daniel
Telerik team
 answered on 14 May 2010
1 answer
148 views
Hi,

I'm curious as to why we need to have these packages installed into Visual Studio 2010. All I can see is that we have a Telerik menu option with a link to create a new Telerik project. This acts no different to a File, New Project apart from pre-selecting the Telerik options. Running these add-ins (I have all major Telerik toolkits installed) definitely affects my startup time (my machine alas, is not the speed demon it used to be) and you cannot disable these packages via the extension manager, only uninstall the whole toolkit. I'm presuming that there is more in these packages than I have noticed but can we at least allow the option to disable them? I don't create new projects every day but I do run Visual Studio everyday (multiple copies on occasions) and startup lag time can be a little annoying.

Thanks

Colin Blakey
Petar
Telerik team
 answered on 14 May 2010
3 answers
112 views
Hi guys?

I am newbie with telerik.

I would like to sum all the values in a row and display them in a column that will be added programmatically. The grid has auto-generated the pre-existing columns.

How do I add this new column??


Tsvetoslav
Telerik team
 answered on 14 May 2010
1 answer
96 views

Hi,

i have an asp.net application using some radgrids with filter controls: AllowFilteringByColumn="True"
I tested the radgrid from my local machine, and the radgrid looked fine.
Then i deployed the web application to a sharepoint server.
Now i noticed that the filter controls (the filter row) look bad only when the FilterIcon of my GridDateTimeColumn is hidden: ShowFilterIcon="false"

Here a screenshot when the FilterIcon of my DateTimeColumn is hidden: link1
Here a screenshot when the FilterIcon of my DateTimeColumn is visible: link2

  • Can someone explain me why and how to fix it? Is that a known Issue in Sharepoint 2010?
  • As we plan to use our radgrid only in sharepoint environment, it is really important for us to know,
  • what are the known issues of the Telerik version 2010.1.415.20 in sharepoint?

Here the code of my aspx page:

<table border="0" style="height: 100%; width: 100%">  
<tr > 
            <td style="width: 100%; padding-top: 5px; vertical-align: top;">                                    
                <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">  
                            <script type="text/javascript">  
                                function OnClientSelectedIndexChangedHandler(sender, eventArgs) {  
                                    var inputElement = sender.get_inputDomElement();  
                                    inputElement.style.textAlign = "center";  
                                }  
                            </script>   
                </telerik:RadScriptBlock>                      
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                        <AjaxSettings> 
                            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                                <UpdatedControls> 
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                </UpdatedControls> 
                            </telerik:AjaxSetting> 
                        </AjaxSettings> 
                    </telerik:RadAjaxManager> 
                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" /> 
                  
                <telerik:RadGrid ID="RadGrid1" Skin="Windows7" Width="100%" AllowFilteringByColumn="True" 
                    AllowSorting="True" PageSize="12" AllowPaging="True" runat="server" 
                    AutoGenerateColumns="False" GridLines="None" > 
                    <GroupingSettings CaseSensitive="false" /> 
                    <MasterTableView EditMode="InPlace" DataKeyNames="ProjectUID" TableLayout="Fixed">  
                        <Columns> 
                            <telerik:GridHyperLinkColumn HeaderText="ProjectName" UniqueName="ProjectName" DataTextField="ProjectName"   
                                SortExpression="ProjectName" HeaderStyle-Width="40%" FilterControlWidth="95%" AutoPostBackOnFilter="false" ShowFilterIcon="true" /> 
                            <telerik:GridBoundColumn HeaderText="ProjectLeader" DataField="ProjectLeader" UniqueName="ProjectLeader" 
                                SortExpression="ProjectLeader" HeaderStyle-Width="15%" FilterControlWidth="85%" AutoPostBackOnFilter="false" ShowFilterIcon="true" /> 


                            <telerik:GridDateTimeColumn  HeaderText="LastReport" DataField="LastReport" UniqueName="LastReport"  DataType="System.DateTime"  DataFormatString="{0:MM/d/yyyy}"   
                                SortExpression="LastReport" HeaderStyle-Width="15%" FilterControlWidth="90%" AutoPostBackOnFilter="false" ShowFilterIcon="true" /> 


                            <telerik:GridBoundColumn HeaderText="LastModifiedBy" DataField="LastModifiedBy" UniqueName="LastModifiedBy" 
                                SortExpression="LastModifiedBy" HeaderStyle-Width="15%" FilterControlWidth="85%" AutoPostBackOnFilter="false" ShowFilterIcon="true" /> 
                            <telerik:GridTemplateColumn HeaderText="Status" DataField="Status" UniqueName="Status"   
                                SortExpression="Status" HeaderStyle-Width="15%" FilterControlWidth="85%" ReadOnly="true" AutoPostBackOnFilter="false" ShowFilterIcon="false" > 
                                <ItemTemplate> 
                                    <asp:Image ID="StatusImage" Style="float: left;" ImageUrl='' 
                                        runat="server" AlternateText="StatusImage" /> 
                                    <asp:Label ID="StatusLabel" runat="server" Text='<%#Eval("Status")%>'></asp:Label> 
                                </ItemTemplate> 
                                 <FilterTemplate>                                  
                                    <telerik:RadComboBox runat="server" ID="FilterComboStatus" AutoPostBack="true"    
                                     Filter="Contains"  Skin="Windows7" Width="99%"    
                                        DataTextField="<%# STR_TEXT %>" DataValueField="<%# STR_VALUE %>" DataSource='<%# GridHelperObj.Indicator_CreateStatusDT() %>' 
                                        OnSelectedIndexChanged="FilterComboStatus_SelectedIndexChanged"                                          
                                         OnClientLoad="OnClientSelectedIndexChangedHandler"   
                                         SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("Status").CurrentFilterValue %>' >                                          
                                    </telerik:RadComboBox>                                                                  
                                </FilterTemplate>    
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                            </telerik:GridTemplateColumn >    
                        </Columns> 
                    </MasterTableView> 
                </telerik:RadGrid>                           
            </td> 
        </tr> 
    </table> 

Thank you in advance

Tsvetoslav
Telerik team
 answered on 14 May 2010
0 answers
102 views
Hi,

I had an issue with captcha generating an error when clicking 'Generate new Image'.

With help from the guys at Telerik, we traced it to a .Net issue with URL rewriting and postbacks.

If you are using .Net35 or later you can simply add

formName.Action = Request.RawUrl;

to the page_Load event

Anyone still using earlier .Net versions will have a slightly bumpier journey, though there are solutions out there.



Peter Parsons
Top achievements
Rank 1
 asked on 14 May 2010
3 answers
76 views

Hi,

Earlier we were using rad grid version of Q3 2007. Now we are migrating it to Q2 2009.

My OnRowCreated event goes like this,

function onRowCreated(rowObject)
    {
        if(rowObject.ItemType == "NestedView")
        {
            var nestedTable = rowObject.Control.cells[1].childNodes[0];

            if(nestedTable != null && nestedTable.tBodies[0].rows.length == 1 && nestedTable.innerHTML.indexOf("No child records to display.") != -1)
            {
                var parentRow = this.Control.rows[rowObject.Control.rowIndex - 1];
                parentRow.cells[0].childNodes[0].style.display = "none";
                rowObject.Control.style.display = "none";
            }
        }
    }

Now i need to convert this to rad grid version of Q2 2009.
I couldnt find how to convert rowObject.ItemType to the latest one.

If anybody knows how to convert this above function to the Q2 2009 version please let me know.

Thanks in advance

Tsvetoslav
Telerik team
 answered on 14 May 2010
2 answers
233 views

I have this problem in my welcome.aspx page.so how to solve this...


Not enough permissions.
Inherit your page class from RadAjaxPage if you are running under Medium trust level.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Not enough permissions.
Inherit your page class from RadAjaxPage if you are running under Medium trust level.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Not enough permissions.
Inherit your page class from RadAjaxPage if you are running under Medium trust level.]
   Telerik.Web.UI.RadAjaxControl.AttachOnRender() +274
   Telerik.Web.UI.RadAjaxControl.OnPagePreRenderComplete(Object sender, EventArgs e) +97
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8700926
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049
Kannan
Top achievements
Rank 1
 answered on 14 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?