Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
139 views

The code below works ok in Chrome but not IE 11

<telerik:RadOrgChart ID="orgOGC" runat="server" GroupColumnCount="4" Skin="Silk" DataSourceID="sdsCommandOrgChart" DataFieldID="User_Id" DataFieldParentID="Supervisor_Id" DataTextField="Full_Name" Orientation="Horizontal" RenderMode="Lightweight" >
<ItemTemplate>
<div >
<div style="text-align: center">
<des:LinkButton runat="server" ID="btnUserDetails" Text='<%#DataBinder.Eval(Container.DataItem, "FullName") %>' OnCommand="btnUserDetails_Command" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "UserId")%>'></des:LinkButton><br />
<%#DataBinder.Eval(Container.DataItem, "JobTitle")%><br />
<%#DataBinder.Eval(Container.DataItem, "Department")%><br />
</div>
</div>
</ItemTemplate>
</telerik:RadOrgChart>

Veselin Tsvetanov
Telerik team
 answered on 02 Dec 2015
3 answers
511 views

My RadWindows are sizing properly on load.  But if I resize my RadWindow manually the content doesn't stretch / grow.  Is there a way to do this so if I make my RadWindow full screen that it's content stretches to full screen too?

 

Thanks,

 Sean

Marin Bratanov
Telerik team
 answered on 02 Dec 2015
1 answer
187 views

Is there a way to completely disable chunk upload or increase the chunk size for the RadCloudUpload control?

 

I'm using a custom AmazonS3Provider overriding the UploadFile method to modify the file stream before sending it to Amazon. When file is larger than 5mb, it doesn't fire the UploadFile but the UploadChunk and I can't make changes to the file content for each chunk, need to have the whole file stream.

Hristo Valyavicharski
Telerik team
 answered on 02 Dec 2015
3 answers
214 views
Hi all , 

Telerik RadEditor Ctrl + v Not Work when using Trackchanges ? any Advice 

Markup like 

  <telerik:RadEditor runat="server" ID="reBody"   Height="200px" EnableTrackChanges="true" >
                                                  <Tools>
                                                            <telerik:EditorToolGroup>
                                                                <telerik:EditorTool Name="FontName" />
                                                                <telerik:EditorTool Name="FontSize" />
                                                                <telerik:EditorTool Name="Bold" />
                                                                <telerik:EditorTool Name="Italic" />
                                                                <telerik:EditorTool Name="Underline" />
                                                                <telerik:EditorTool Name="StrikeThrough" />
                                                                <telerik:EditorTool Name="Superscript" />
                                                                <telerik:EditorTool Name="Subscript" />
                                                                <telerik:EditorTool Name="JustifyLeft" />
                                                                <telerik:EditorTool Name="JustifyCenter" />
                                                                <telerik:EditorTool Name="JustifyRight" />
                                                                <telerik:EditorTool Name="JustifyFull" />
                                                                <telerik:EditorTool Name="JustifyNone" />
                                                                <telerik:EditorTool Name="Copy" />
                                                                <telerik:EditorTool Name="Cut" />
                                                                <telerik:EditorTool Name="Paste" />
                                                                <telerik:EditorTool Name="DocumentManager" />
                                                                <telerik:EditorTool Name="Indent" />
                                                                <telerik:EditorTool Name="Outdent" />
                                                                <telerik:EditorTool Name="InsertTable" />
                                                                <telerik:EditorTool Name="LinkManager" />
                                                                <telerik:EditorTool Name="InsertOrderedList" />
                                                                <telerik:EditorTool Name="InsertUnorderedList" />
                                                                <telerik:EditorTool Name="InsertImage" />
                                                                <telerik:EditorTool Name="InsertDate" />
                                                                <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                                                                <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                                                                <telerik:EditorTool Name="AcceptTrackChange" />
                                                                <telerik:EditorTool Name="RejectTrackChange" />
                                                                <telerik:EditorTool Name="AcceptAllTrackChanges" />
                                                                <telerik:EditorTool Name="RejectAllTrackChanges" />
                                                            </telerik:EditorToolGroup>
                                                        </Tools>
                                                    </telerik:RadEditor>

aspx.cs 

           TrackChangesSettings settings = reBody.TrackChangesSettings;
            settings.Author = Session["UserName"].ToString();
            settings.UserCssId = Session["UserColor"].ToString();
            settings.CanAcceptTrackChanges = true; 



                                                   
Ianko
Telerik team
 answered on 02 Dec 2015
1 answer
67 views

Hi

We're using the SQL DB adaptor approach to store images for use in your RadEditor / ImageManager.  Our CMS platform enables us to load thumbnail size versions of those images, however I can only see a way to supply ONE image url through when loading the image list, and no way to modify that URL when a user clicks to load the full size image up in the right hand preview panel.  There doesn't seem to be any onLoad type event I can hook to which would allow me to alter that preview image url.  

To be clear, the intention here would be to use a thumbnail url for the thumbnail listings of all images, but then to use the full size image version in the right hand side preview panel when they click on an individual image.

Is this possible?

Thanks

Ianko
Telerik team
 answered on 02 Dec 2015
1 answer
157 views

I tried to get the ID value from selected row in a RadGrid. But what I try, I keep the value "&nbsp;".
The data is collected by a WCF webservice by the way.

Below the ASP code I use:

<telerik:RadScriptManager ID="RadScriptManager" runat="server" EnableHandlerDetection="false">
        <Scripts>
             
        </Scripts>
    </telerik:RadScriptManager>
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="gridSimCards">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gridSimCards" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <div class="pagetitle"><asp:Literal ID="ltrPageTitle" runat="server" /></div>
 
    <telerik:RadGrid ID="gridSimCards" runat="server" EnableViewState="true" AutoGenerateColumns="false" Skin="Silk" AllowFilteringByColumn="true" AllowPaging="true" PageSize="10" AllowSorting="true"
        OnSelectedIndexChanged="gridSimCards_SelectedIndexChanged">
        <ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true" AllowColumnsReorder="true">
            <Selecting AllowRowSelect="true" />
            <Resizing AllowColumnResize="true" ShowRowIndicatorColumn="true" />
            <DataBinding SelectMethod="GetSimCards"
                Location="../WebServices/GridDataProvider.svc"
                SelectCountMethod="GetSimCardsCount"
                MaximumRowsParameterName="rowCount"
                StartRowIndexParameterName="rowStart"
                SortParameterName="sorter" SortParameterType="List"
                FilterParameterName="filter" FilterParameterType="List"  />
        </ClientSettings>
        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
        <MasterTableView Width="100%" DataKeyNames="ID">
            <Columns>
                <telerik:GridBoundColumn UniqueName="ID" DataField="ID" HeaderText="#" DataType="System.String"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Provider" HeaderText="Provider" DataType="System.String"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Country" HeaderText="Land" DataType="System.String"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="SIMNumber" HeaderText="SIM-nummer" DataType="System.String"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="TelephoneNumber" HeaderText="Telefoonnummer" DataType="System.String"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ContactPeriodFrom" HeaderText="Contract van" DataType="System.DateTime"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ContractPeriodTill" HeaderText="Contract tot" DataType="System.DateTime"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="InUse" HeaderText="In gebruik" DataType="System.Boolean"></telerik:GridBoundColumn>
            </Columns>
             
        </MasterTableView>
    </telerik:RadGrid>

 

The code below is use to get the value of the selected ID column:

protected void gridSimCards_SelectedIndexChanged(object sender, EventArgs e)
{
    int selectedRowIdx = gridSimCards.SelectedItems[0].ItemIndex;
 
    GridDataItem selectedItem = (GridDataItem)gridSimCards.MasterTableView.Items[selectedRowIdx];
 
    string str = selectedItem["ID"].Text;
}

 

What am I doing wrong, or what am I missing?

Konstantin Dikov
Telerik team
 answered on 02 Dec 2015
3 answers
306 views

Using a simple RadGrid that has many columns, I am unable to set the header background color using HeaderStyle-BackColor="Blue" in the <telerik:RadGrid tag.

If I have header column name that span one line, the top line it the default light gray color eaeaea from WebResource.

If I have header column names that span two lines, the top line it the default light gray color eaeaea from WebResource, and the bottom line is Blue.

It is rendered in HTML as inline ... <th class="rgHeader" style="background-color: blue;" scope="col">.

I am using v2015.3.1111.45

I can reproduce this buggy behavior in a new project with a basic Radgrid using Northwind in IE and Firefox.

 

Pavlina
Telerik team
 answered on 01 Dec 2015
3 answers
138 views

using Telerik UI for ASP.NET AJAX

Telerik.Web.UI

version: 2013.3.1324.40

 Visual Studio 2010

 I have a RadGrid with a GridClientSelectColumn and AutoGenerateColumns="False" AllowMultiRowSelection="True"

I'm using the SelectedItems collection. It works fine the first time. I redirect to another web page after form submission and all is good. If I go back using the browser back button (ie 11) I then get unexpected functionality. For example: I checked row 1, 3 and 5. Verified that I detected that correctly. Click browser back button. Unselect row 3. I now expect to detect the remaining selected rows -- 1 and 5. Instead I detect 3 selected.

I've tried a number of variations of the code and can't get expected functionality. I've tried MasterTableView.Items.

I've tried

CheckBox chk = (CheckBox)item["GridClientSelectColumn1"].Controls[0];
if (chk.Checked) ...

Nothing works.

I'm sorry I have not posted a stripped down sanitized version of the code. I won't have time to do that until next week.

Maria Ilieva
Telerik team
 answered on 01 Dec 2015
0 answers
99 views

I have a RadWindow that scrolls vertically because it’s content is long and model property is set true.
But it is not maintaining the scroll position in chrome but it’s working fine with IE and Mozilla. 

 Thanks

Vikram Singh

Vikram
Top achievements
Rank 1
 asked on 01 Dec 2015
3 answers
183 views
Try the following code and see what happens when you click on different tabs. I find that the RadEditor in Tab1 looks fine, but the other RadEditors don't have any content. If you do the same thing but without the RadWindow it works perfectly with all of the RadEditors displaying content correctly. Is this intentional behavior and I'm missing something or is this a bug?

Thanks for your help.

Dean

<telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" Modal="true" VisibleStatusbar="false">
    <ContentTemplate>
         <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0">
            <Tabs>
                <telerik:RadTab Text="Tab1" PageViewID="RadPageView1">
                </telerik:RadTab>
                <telerik:RadTab Text="Tab2" PageViewID="RadPageView2">
                </telerik:RadTab>
                <telerik:RadTab Text="Tab3" PageViewID="RadPageView3">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
            <telerik:RadPageView ID="RadPageView1" runat="server">
                Page 1
                <telerik:RadEditor ID="RadEditor1" runat="server" EditModes="Design, Preview" Skin="Outlook" EnableResize="true">
                    <Content>
                        Editor content 1
                    </Content>
                </telerik:RadEditor>
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView2" runat="server">
                Page 2
                <telerik:RadEditor ID="RadEditor2" runat="server" EditModes="Design, Preview" Skin="Outlook" EnableResize="true">
                    <Content>
                        Editor content 2
                    </Content>
                </telerik:RadEditor>
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView3" runat="server">
                Page 3
                <telerik:RadEditor ID="RadEditor3" runat="server" EditModes="Design, Preview" Skin="Outlook" EnableResize="true">
                    <Content>
                        Editor content 3
                    </Content>
                </telerik:RadEditor>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
    </ContentTemplate>
</telerik:RadWindow>
Madhavi
Top achievements
Rank 1
 answered on 01 Dec 2015
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?