Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Here's my code

<telerik:RadComboBox ID="objetList" runat="server" Skin="Office2010Blue" Width="160px" onclientselectedindexchanged="ModifierCookieObjet" >
<Items>
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleFile %>"
Value="2" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleFolder %>"
Value="3" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleIMDFolder %>"
Value="13" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleURL %>"
Value="5" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitlePhysicalFile %>"
Value="8" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleEmail %>"
Value="11" />
</Items>
</telerik:RadComboBox>

Here's my javascript

function ModifierCookieObjet(sender, eventArgs) {
var tpsexpire = 1000 * 60 * 60 * 24 * 365;
var item = eventArgs.get_item();
fixervaleur("LastUsedObjet", item.get_value(), tpsexpire)
}

My problem is that eventArgs is always undefined. Do you know why ?
Nencho
Telerik team
 answered on 26 Nov 2014
7 answers
142 views
Hi, I'd like to show the date heading in a different style for today's date in week view.
Is it possible?  I've updated the CSS on the time slot and that only changes the actual timeslots, not the corresponding heading for that day.
Thanks!
Boyan Dimitrov
Telerik team
 answered on 26 Nov 2014
1 answer
111 views
Hi,

I have a website on DNN 6.2.6 and telerik version 2013.2.717.40. We very recently moved the website to windows 2008 R2 (IIS7.5) from IIS6 on windows 2003 server. We are currently running the application pool in integrated mode in .net 4.0 with 32 bit enabled.  We are seeing huge spike in the memory whenever we are loading huge files using RadUpload control. We allow files upto 2GB to be uploaded, with 1.5GB file we are getting OutofMemoryExceptions. I monitored the memory usage, the instant I click submit button on my page, the memory is spiked by the approximately same size as the file I am uploading, this is happening even before the file barely started uploading. I understand that the RadUpload is replaced with RadAsyncUpload, this module is built 4 years ago and in the future we will move to that control but we need the issue to be resolved with RadUpload until we do so. 

I read through the http://www.telerik.com/help/aspnet-ajax/upload-getting-started.html and added the changes to web.config:

<system.webserver>
<modules>
. . .
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="integratedMode"/>
</modules>
<handlers>
. . .
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode"/>
</handlers>
</system.webserver>

In the modules section preCondition used to be mangedHandler and I changed it to integratedMode. The way the upload is being used is as follows:   

<telerik:RadUpload ID="_newFileFileUpload" runat="server" OnClientFileSelected="CheckIfZip" MaxFileInputsCount="1"
                    ControlObjectsVisibility="None" Width="300px" />

Any idea why the issue is happening.

Thank you,
dana










Peter Filipov
Telerik team
 answered on 26 Nov 2014
1 answer
105 views
Hello,

I am working on a project with a RadSplitter.
I have used the code example here

However, my project requirement is that I must have a Div element at the top of the page (above the RadSplitter).

Unfortunately, this causes a problem. When the user resizes the page to a smaller size, a horizontal scrollbar doesn’t appear at the bottom of the page.

Please see the following video:[See Video]

How can I solve this problem?

Thanks,
Daniel.
Daniel
Top achievements
Rank 1
 answered on 26 Nov 2014
1 answer
53 views
Hello,

My site works in this IE modes:
Browser Mode: IE10 Compat View.
Document Mode: IE5 quirks.

If I paste the flash video code inside the <span> tag and switch the editor to Design View, I see nothing in preview. Is there a way to fix this behaviour? I can reproduce this on the RadEditor demo page.

The code that I am using:
<span><object id="limelight_player_706467" class="LimelightEmbeddedPlayerFlash" name="limelight_player_706467" data="http://flash-animation.ru/img/fla/fire.swf" width="480" type="application/x-shockwave-flash"><param name="movie" value="http://flash-animation.ru/img/fla/fire.swf"/><param name="wmode" value="window"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="flashVars" value="playerForm=d5250f0fce0f4a7fbfb1f6d0ff2af2d4&amp;mediaId=6853d410e2c2466382fa8e2b637b59ee"/></object></span>

Thank you. Best Regards,
Viktor 
Ianko
Telerik team
 answered on 26 Nov 2014
4 answers
76 views
Hi all,
I try to set Client template for Search Box using SqlDataSource with this code
 
<telerik:RadSearchBox runat="server" ID="RadSearchBox1" Width="350"
                DataTextField="LocName" OnClientSearch="OnClientSearch"
                DataSourceID="SqlDataSource1" DataKeyNames="LocID" DataValueField="LocID">
                <DropDownSettings Height="400px">
                    <ClientTemplate>
                    <h3>#= Text #</h3>
                    <div class="details">                     
                        <span class="info">
                            <p>
                                <b> #= DataItem.Descr# </b>                               
                                 <b> #= DataItem.Lang# </b>
                                 <b> #= DataItem.Long# </b>
                            </p>
                        </span>
                    </div>
                    </ClientTemplate>
                </DropDownSettings>
            </telerik:RadSearchBox>

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TDMTConnectionString %>" SelectCommand="SELECT * FROM [tdmt_Location]"></asp:SqlDataSource>

But it's just get LocName.
Please, how can i get the others field (Descr, Lang, Long).
P/S: I custom this code from Client site Searchobox demo
Do Xuan
Top achievements
Rank 1
 answered on 26 Nov 2014
3 answers
216 views
I've a radgrid with popup for insert/edit the data , and i'm using Advanced binding using the Need data source Event
I noticed that the cancel command call the need data source implicitly 
i need to override this behavior to disable the auto rebind of RadGrid
Jayesh Goyani
Top achievements
Rank 2
 answered on 25 Nov 2014
1 answer
122 views
I am trying to get collapsable groups on a radgrid along with a user control which will alter which columns appear in the grid via checkbox.
My grouping is accomplished in the code behind.

If I set the radgrid viewstateMode to "Disabled" then my user control checkbox values are recognized and with a submit button the columns appear and disappear.  

However the grouped rows cannot be collapsed.  If I switch the ViewStateMode to "Enabled" then the grouped rows collapse correctly but now the user control checkbox value never changes.(even though it has on screen)

Is there anyway to have the rows correctly collapse/expand AND recognize the current value the client selected checkbox of the user control?

This is part of the RadGrid:
         <table width="100%" cellpadding="0" cellspacing="0" class="ContentTable">
            <tr>
                <td class="ContentTitleHeight">Specialty</td>
            </tr>
            <tr>
                <td>
                    <telerik:RadGrid id="rgSpecialty" 
                        runat="server"  
                        ShowGroupPanel="false" 
                        autogeneratecolumns="false" 
                        AllowFilteringByColumn="true" 
                        AllowSorting="true" 
                        ViewStateMode="Disabled"  
                        OnNeedDataSource="rgSpecialty_NeedDataSource"
                        GroupingSettings-CaseSensitive ="false"   >



Patrick
Top achievements
Rank 1
 answered on 25 Nov 2014
10 answers
845 views
I have entered 100% width and it is not working.  It shows the graph as 10px wide.
I was expecting this version would support 100% width given that it is not reliant on images.

Please let me know.

Thanks
infoweshanney
Top achievements
Rank 2
 answered on 25 Nov 2014
8 answers
1.9K+ views
I have a radgrid that ispopulated using the need_datasource event.  We have  a delete button in the grid and when you click the delete, it fires an itemcommand to delete the record and then rebinds the grid.  The record successfully gets deleted, but the grid does not reflect this change.  The stranger part is that when I step through the code using the debugger, the grid DOES refresh correctly.

We've been using telerik grids for a long time now, and never had this problem.  We recently updated to Q1 2010, and I'm wondering if there's some sort of caching going on that we need to explicitly turn off now?

Here's the grid:
<telerik:RadGrid ID="MyGrid" runat="server" AllowPaging="false" AutoGenerateColumns="false" GridLines="None" ShowHeader="True"
                        OnNeedDataSource="MyGrid_NeedDataSource" 
                        OnItemCommand="MyGrid_ItemCommand" 
                        OnItemDataBound="MyGrid_ItemDataBound">
                <MasterTableView AutoGenerateColumns="false" Width="100%" TableLayout="Fixed">
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="Id" DataField="PlanId" HeaderText="Id" Visible="false" />
                        <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name" />
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <table cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td style="border: none; width: 18px; padding: 0;">
                                        <asp:ImageButton ID="DeleteImageButton" runat="server" ToolTip="Delete" 
                                            ImageUrl="App_Themes/PlanAdvisor/Grid/Delete.png"
                                            CommandName="DeleteItem"/>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Right" Width="55px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Right"></ItemStyle>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

And here's the code-behind:
Protected Sub MyGrid_ItemCommand(ByVal sender As Object, ByVal e As GridCommandEventArgs) Handles MyGrid.ItemCommand
        If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then
            Dim item As GridDataItem = CType(e.Item, GridDataItem)
           If e.CommandName = "DeleteItem" Then
                DeleteItem(CInt(item("Id").Text))
                MyGrid.Rebind()
            End If
        End If
    End Sub
Steven
Top achievements
Rank 1
 answered on 25 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?