Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
263 views

Hello,

I have used asp.net telerik RadEditor control in web-site and to host this website in Shared hosting server, I have to disable Telerik.EnableEmbeddedScripts and add required scripts in page but Dialog of RadEditor is not working.

My site is hosted in FastHost shared hosting server. Other controls of Telerik is worked perfect. Version of Telerik is 2011.3.1115.35

Can any one have solution to enable dialogs for editor control in any shared hosting server?

Thanks,
Mohmedsadiq

Rumen
Telerik team
 answered on 29 Sep 2012
1 answer
109 views
I'm able to export to a pdf using the ExportToPdf() function, then in the ExportContent event I can save the PDF to the hard drive.  Is there any way to kill the event from opening up the PDF.  Or is there another way to save the RadEditor's content directly to a PDF on the computers hard drive with out having to open the PDF?
Rumen
Telerik team
 answered on 29 Sep 2012
3 answers
153 views
Hi,

I have a dropdown list inside the radgrid 

<telerik:GridTemplateColumn  HeaderText="" UniqueName="Answer" DataField="Answer"  >
                    <ItemTemplate>
                    <asp:DropDownList ID="ddlAnswer" runat="server"   DataTextField="Answer"
DataValueField="Answer" >
                    <asp:ListItem  Value="Yes" >Yes</asp:ListItem>
                    <asp:ListItem  Value="No" >No</asp:ListItem>
                    </asp:DropDownList>
                    </ItemTemplate>
                     </telerik:GridTemplateColumn>

If the user selects No and hits submit button the record will be updated in the database and below the answer No will be saved.(Database is updating properly)

When I click on this page again or refresh the page the page should be loaded with all the correct data from the database.

 every time the page loads all data except this drop down is getting binded properly. There are few records where the user selected No but still the drop down is showing Yes. How can I make No as the selected item?
Pavlina
Telerik team
 answered on 29 Sep 2012
2 answers
308 views
I have a screen with a radgird that has a master table and a detail table.  When I Expand a record that has no detail information the grid expands and shows No Child Record To Display, but when I click on a record that has detail information nothin happens.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007" AllowPaging="True" EnableLinqExpressions="false" AllowCustomPaging="true" AutoGenerateColumns="False" GridLines="None" AllowSorting="true" AllowFilteringByColumn="false" AlternatingItemStyle-BackColor="#eeeeee" ShowGroupPanel="False" ShowStatusBar="True" OnNeedDataSource="RadGrid1_NeedDataSource"                                  OnPreRender="RadGrid1_PreRender" OnDetailTableDataBind="HistoryDetail_NeedDataSource">
             <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
             <MasterTableView DataKeyNames="MarketingID"  PagerStyle-Mode="NextPrevNumericAndAdvanced" >
                    <GroupByExpressions>
                            <telerik:GridGroupByExpression>
                                   <SelectFields>
                                            <telerik:GridGroupByField FieldAlias="ClientName" HeaderText="Client" FieldName="ClientName"
                                                     HeaderValueSeparator=" : "></telerik:GridGroupByField>
                                   </SelectFields>
                      <GroupByFields>
                          <telerik:GridGroupByField FieldName="ClientName" HeaderText="Client" SortOrder="Ascending">
                          </telerik:GridGroupByField>
                      </GroupByFields>
                   </telerik:GridGroupByExpression>
              </GroupByExpressions>
              <RowIndicatorColumn>
                 <HeaderStyle Width="20px"></HeaderStyle>
               </RowIndicatorColumn>
               <ExpandCollapseColumn>
                     <HeaderStyle Width="20px"></HeaderStyle>
               </ExpandCollapseColumn>
                    <Columns>
                           <telerik:GridBoundColumn DataField="MarketingID" HeaderText="MarketingID" SortExpression="MarketingID"  UniqueName="MarketingID" Visible="false">
                           </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ClientID" UniqueName="ClientID" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="MarketingFormattedID" HeaderText="Marketing ID"
                                       ItemStyle-Width="85" SortExpression="MarketingFormattedID" UniqueName="MarketingFormattedID"
                                        Visible="true" ItemStyle-VerticalAlign="Top">
                             </telerik:GridBoundColumn>
                             <telerik:GridBoundColumn DataField="MarketingTypeName" HeaderText="Marketing Type"
                                              ItemStyle-VerticalAlign="Top" SortExpression="" AllowSorting="false"  UniqueName="MarketingTypeName"        Visible="true">
                             </telerik:GridBoundColumn>
                   </Columns>
                  <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                                          
                  <DetailTables>
                       <telerik:GridTableView DataKeyNames="MarketingID"  runat="server"  >
                             <ParentTableRelation>
                                     <telerik:GridRelationFields DetailKeyField="MarketingID" MasterKeyField="MarketingID" />
                             </ParentTableRelation>
                             <Columns>
                                    <telerik:GridBoundColumn HeaderText="Status"  DataField="MarketingStatusTypeName" UniqueName="MarketingStatusTypeName">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderText="Changed By"  DataField="ChangedBy" UniqueName="ChangedBy">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Date Changed"  DataField="DateChanged" UniqueName="DateChanged">
                                    </telerik:GridBoundColumn>
                        </Columns>                                                
              </telerik:GridTableView>
         </DetailTables>
      </MasterTableView>
     <ClientSettings AllowDragToGroup="True">
          <Selecting AllowRowSelect="True" />
     </ClientSettings>
     <FilterMenu Skin="Office2007" EnableTheming="True">
          <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
     </FilterMenu>
  </telerik:RadGrid>

and here is the OnDetailTableDataBind Code
protected void HistoryDetail_NeedDataSource(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
  
            GridDataItem dataItem = e.DetailTableView.ParentItem;
  
            ClientDataContext db = new ClientDataContext();
            var query = from m in db.MarketingStatusChangeLogs
                        where (m.MarketingID == int.Parse(dataItem.GetDataKeyValue("MarketingID").ToString()))
                        select new
                        {
                            m.MarketingStatusType.MarketingStatusTypeName,
                            m.ChangedBy,
                            m.DateChanged
                        };
            e.DetailTableView.DataSource = query;
        }


am I missing something?
Angel Petrov
Telerik team
 answered on 29 Sep 2012
3 answers
222 views
Hi,

I am using RadSplitter , RadSplitBar and RadPane in one of my project, I have design my page like
<RadSplitter > 
    <RadPane1 > </RadPane1 > 
    <RadSplitBar CollapseMode="Both"> </RadSplitBar >
     <RadPane2> </RadPane2>
</RadSplitter >

 

I kept my RadSplitBar  at middle but when I try to perform any action on RadSplitBar its not persisting the position, first its going to down and when I perform the action then again its comming to middle

but I need to Keep my RadSplitBar  at Fixed location that is on middle of page even if i perfrom any action over it(expand / collpase)

Can anyone suggest any solution for this

Vessy
Telerik team
 answered on 29 Sep 2012
2 answers
65 views
hi
I have RadAjaxPanel and a RadComboBox in it.

and I use a RadAjaxLoadingPanel to display server dealy in comboBox reload.

(I handle most of ComboBox events with javascript.)

I have 2 problems :

1- After that LoadingPanel is shown, page refresh or any event that cause postback lead to this alert :

    "Unable to get value of the property 'focus': the object is null or undefined"

    this massege is not in my code and if I delete RadAjaxLoadingPanel (and not show loadingPanel) everything is normal.

2- After that LoadingPanel is shown, the ComboBox shape is alterd and be a little ugly. why?

thanks
Fatima
Top achievements
Rank 1
 answered on 29 Sep 2012
2 answers
27 views
Hi everyone!

I used a RadAjaxLoadingPanel in my web page. In addition I have a RadComboBox within a RadAjaxPanel that during its post-back, LoadingPanel must be shown.

Everything work correct at first. But if I repeat page post-back for second, it isn't shown. But at third times it will work correctly.

I means that it works sometimes well but sometimes not.

What is its problem??

Thanks
Fatima
Top achievements
Rank 1
 answered on 29 Sep 2012
4 answers
77 views
I have a tab strip paired with a multi-page control, latest release for 2012.

Sometimes the content accessed via ContentURL is larger than the size of the PageView page.

This triggers scroll bars.

I have set scrollbars on the parent multi-page to "none" and also on the particular page view container itself.

Neither of these settings suppress the scroll bars.

How to do I get rid of them?

I want the excess content in the URL to be clipped.
Chad Hensley
Top achievements
Rank 1
 answered on 29 Sep 2012
1 answer
44 views
This isn't so much a RadControls question but I'm not sure if there is anything special in the RadGrid which will help here, and other RadGrid developers might find this helpful, so....

I have a huge grid that's about 1600px wide, and can contain around 1000 rows which the user does not want to page.

When displayed in the browser we get both horizontal and vertical scrolls for the browser.
To allow for a fixed header I have to assign a height to the grid. That height is 800px but needs to be smaller.
What's happening is that the user needs to scroll the browser to find the bottom of the grid, then browser horizontally to find the right margin of the grid, then scroll the grid vertically.

We have two sets of scrollbars, and that's just a pain.

1) I'm wondering if we can fix a grid header on a page without setting the height. The effect being that the browser scroll would reveal more rows but the grid header would float in-place. I doubt this is possible now but it might be a valid enhancement for RadGrid in the future.

2) (The real question here) What's the best way to give users easier access to a huge grid like this? I'm thinking about eliminating the scrollbars on the browser so that the user only sees the scrollbars on the grid. I would need to check the height of the browser visible area and adjust the grid height dynamically so that the grid horizontal scroll is always at the bottom.

3) Is there any way to scroll a grid horizontally or vertically with a mechanism other than the traditional hscroll and vscroll at the bottom and right of the control? What about floating scrollbars or a similar mechanism within the current window? I could put the grid in a smaller viewport, but the user wants to see as much data as possible (ergo no paging) and a huge number of columns rather than a hierarchical grid, a secondary grid, or popups.

4) Does anyone already have code to share for #2, to remove browser scrollbars and dynamically set the size of the grid? The problem here is that every browser is different - I'm hoping jQuery will help.

5) Any other ideas on elegant ways to render this amount of data?

Thanks!
TonyG
Top achievements
Rank 1
 answered on 28 Sep 2012
2 answers
173 views
I have an app that dynamically loads several different user controls into a Panel control defined in a content page.  This Panel control is registered in the AjaxSettings property of the RADAjaxManager defined in my Master page.  I followed the examples on the Telerik website.

Inside one of these user controls (SearchName), is a RadTextBox (NameTextBox). If I reference that user control/textbox from the content page via,

nameTextBox = $find(

 

'<%= SearchName.FindControl("NameTextBox").ClientID %>');

 


...everything is fine.  I can even add a "add_keyPress" method to that textbox variable.

The problem arises when I try to move this textbox reference from the content page to within the user control via,

nameTextBox = $('#NameTextBox');

...and leave the variable itself (nameTextBox), defined in the content page as a global variable (I need to do things with it there). I'm trying to encapsulate as much as possible within the user control.

For some reason, after the user contol is loaded...the "nameTextBox" variable within the content page no longer has any of the Telerik methods defined within it, e.g. add_keyPress. I get an "Object doesn't support this property or method" error when I try to add this method to the textbox variable, e.g.

nameTextBox.add_keyPress(nameTextBox_KeyPress);

It almost seems like this textbox object is the ASP textbox control...and not the RAD textbox control???  Any help would be appreciated.

David
Top achievements
Rank 1
 answered on 28 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?