Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 views
I cannot get the RadNotification to display from a button click (.Show) if I put a RadFileExplorer control in it. I get an error of 'Uncaught TypeError: Cannot read property 'getContentElement' of null'.

Is this achievable? I'm trying to create a 'sidebar' where the user can navigate files.

Tnx
Marcel


Marin Bratanov
Telerik team
 answered on 12 Jan 2015
4 answers
233 views
Hi, I am having a problem formatting a HtmlChart. Specifically I want to reduce spacing/padding or margins in the the axis.I also want to hide the borders (lines) of the x and y axis but cant seem to find a way to do this. Below is aspx. I have also attached image of how it looks now (current). And how I want it to look (desired). I want the horizontal bars to have almost no gap (eg 5 px or so) so that its more compact. How can I accomplish this do I have to hack w css? If so what are the relevant properties? Thanks

<telerik:RadHtmlChart runat="server" ID="rcRatings" Height="150px"
Width="200px">
<PlotArea>
<Series>
<telerik:BarSeries DataField="rating" Name="Rating">
<Appearance >
<FillStyle BackgroundColor="Orange" />
</Appearance>
<LabelsAppearance Visible="false">
</LabelsAppearance>
</telerik:BarSeries>
</Series>
<XAxis DataLabelsField="title">
<MinorGridLines Visible="false"></MinorGridLines>
<MajorGridLines Visible="false"></MajorGridLines>
</XAxis>
<YAxis Step="1">
<MinorGridLines Visible="false"></MinorGridLines>
<MajorGridLines Visible="false"></MajorGridLines>
<LabelsAppearance Visible = "false" />
<TitleAppearance Visible = "false" />
</YAxis>
</PlotArea>
<Legend>
<Appearance Visible="false"></Appearance>
</Legend>
<ChartTitle>
<Appearance Visible="False" />
</ChartTitle>
</telerik:RadHtmlChart>
Lee
Top achievements
Rank 1
 answered on 12 Jan 2015
1 answer
144 views
Hi

Reading following forum post (http://www.telerik.com/forums/display-boolean-field-as-checkbox) has lead me to try it.

What does not work is when I click the checkbox it does not get checked / unchecked. jsfiddle here: http://jsfiddle.net/3n2ottx7/

Funny enough - I can click the cell (anywhere but the actual checkbox), then click the checkbox inside that cell (only).

How can it work as expected and why is this not a standard example? - No normal user in the world works with "true" / "false" that turn into checkboxes when clicked - as per kendo example: http://dojo.telerik.com/ANItE

Thanks
Konstantin Dikov
Telerik team
 answered on 12 Jan 2015
1 answer
118 views
I am using the Social Share and it's working great. One item I am trying to do is figure out how many times a share is happening. How can I perform a logging of each click and share? Is there a server side event that fires that I can catch and then save the information into SQL Server for reporting?
Danail Vasilev
Telerik team
 answered on 12 Jan 2015
2 answers
404 views
Hi All, 
I am using the below code to retrieve an varbinary image from a database. Is it possible to display the image into an image editor.
Any idea or sample code 
SqlConnection conn = new SqlConnection(strconnection);
  SqlDataAdapter sda = new SqlDataAdapter("select Front_Image,Rear_Image from Transactions", conn);
  DataTable dt = new DataTable();
  sda.Fill(dt);
 
  foreach (DataRow row in dt.Rows)
      {
 
      //Get the byte array from image file
      byte[] imgBytes = (byte[])row["Front_Image"];
 
      //If you want convert to a bitmap file
      TypeConverter tc = TypeDescriptor.GetConverter(typeof(Bitmap));
      Bitmap MyBitmap = (Bitmap)tc.ConvertFrom(imgBytes);
 
 
      string imgString = Convert.ToBase64String(imgBytes);
      //Set the source with data:image/bmp
      Front_img.Src = String.Format("data:image/Bmp;base64,{0}\"", imgString);


Thanks
Vessy
Telerik team
 answered on 12 Jan 2015
8 answers
212 views
Hello,

I have a problem with the progress area of upload control . when i select file and click on any control that causes postback the upload process starts and progress area appears, but actually no file is uploaded   which is not convenient. I need only to show the progress area and begin upload process when i need so. please help me.
Thanks
Nencho
Telerik team
 answered on 12 Jan 2015
1 answer
131 views
Hi, i have a problem, i want to hide a gridtemplatecolumn at selected an option of DropDownList but i cant do it.
My dropdownlist isn´t in the RaidGrid.

This is my dropdownlist:

<asp:Label ID="Label5" runat="server" CssClass="clbl04" Text="Estatus :"></asp:Label>
                                                        <asp:DropDownList ID="ddst" runat="server" Font-Names="Tahoma" Font-Size="8pt" AutoPostBack="false"></asp:DropDownList>

and this is my gridtemplatecolumn:

<radG:GridTemplateColumn HeaderText="Certification Date" UniqueName="TemplateColumn">


Viktor Tachev
Telerik team
 answered on 12 Jan 2015
6 answers
858 views

Hi Its Shrawan fro a:m web,

In my last post i have asked u about rad ajax problem in mozilla 3.0 in radControls for asp.net not asp.net ajax,
Thankyou very much for ur reply
anyway i have installed radcontrols fro asp.net ajax and i get rid of that perticulat input string error,

But now when i am using radajaxloadingpanel controls it asked me to place radscript manager and http handler in web.config I have placed that, But now when i have clicked on any of the buttons in whichever forms i used this rascript manager i am getting following exception as an alert and i am not able continue my navigation beyond this

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near '

<!DOCTYPE html PUB'.

u can see tat error in http://globalcarbon.amwebhost.net/index.aspx goto anyof calculators on ur right side like quick,house,car etc and try to hit the button and then go to shopping_cart.aspx click on next button u will get the error instance there also,

Can u please help me how should i overcome this error,

Thak you

Hope i will get a quich solution from u, awaiting for that

Sravan@amweb.ie

Maria Ilieva
Telerik team
 answered on 12 Jan 2015
3 answers
245 views
The grid loads fine using my JSON data source but when I click the paging buttons or page numbers it causes a postback of the page rather than firing a client command event as expected. I dont see a disable postback property.

Here are the relevant information. Its a very simple test.

    <telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="False" GroupPanelPosition="Top" Skin="Office2007" EnableViewState="false">
        <MasterTableView AllowCustomPaging="True" AllowPaging="True" PagerStyle-AlwaysVisible="True" PageSize="10">
            <RowIndicatorColumn Visible="False">
            </RowIndicatorColumn>
            <ExpandCollapseColumn Created="True">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="ID" HeaderText="ID">
                    <ColumnValidationSettings>
                        <ModelErrorMessage Text=""></ModelErrorMessage>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name">
                    <ColumnValidationSettings>
                        <ModelErrorMessage Text=""></ModelErrorMessage>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Status" HeaderText="Status">
                    <ColumnValidationSettings>
                        <ModelErrorMessage Text=""></ModelErrorMessage>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Owner" HeaderText="Owner">
                    <ColumnValidationSettings>
                        <ModelErrorMessage Text=""></ModelErrorMessage>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" />
            <ClientEvents OnDataBound="dataBound" />
            <ClientEvents OnCommand="RadGrid1_Command" />
        </ClientSettings>
    </telerik:RadGrid>

Thanks

Brian
Maria Ilieva
Telerik team
 answered on 12 Jan 2015
1 answer
123 views
Hi,
I have a combo and a menu on my masterpage. On combo selectedindexchanged I populate the menu.
Each menu open a content page.
When I click on a menu I lost the combo selection.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
         <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="ChooseProjectDdl">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="ChooseProjectDdl" />
                     <telerik:AjaxUpdatedControl ControlID="RadMenu1"  />
                     <telerik:AjaxUpdatedControl ControlID="BreadCrumbSiteMap"  />
                 </UpdatedControls>
             </telerik:AjaxSetting>
 
             <telerik:AjaxSetting AjaxControlID="RadMenu1">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="RadMenu1"  />
                     <telerik:AjaxUpdatedControl ControlID="ChooseProjectDdl" />
                     <telerik:AjaxUpdatedControl ControlID="BreadCrumbSiteMap"  />
                     <telerik:AjaxUpdatedControl ControlID="ContentPlaceHolder1"  />
                 </UpdatedControls>
             </telerik:AjaxSetting>
         </AjaxSettings>
 
     </telerik:RadAjaxManager>
     <telerik:RadAjaxLoadingPanel ID="RadAjaxMainLoadingPanel" runat="server" Skin="Default" />
 
 
     <div>
 
         <header>              
             <div class="projectChooser">
                 <telerik:RadComboBox ID="ChooseProjectDdl" runat="server" Width="250" Height="150" on
                     EmptyMessage="Select a Project" EnableLoadOnDemand="true"
                     OnSelectedIndexChanged="ChooseProjectDdl_SelectedIndexChanged" AutoPostBack="true"
                     Label="Project:">
                     <WebServiceSettings Method="GetUserProjects" Path="ProjectsWebService.asmx" />
                 </telerik:RadComboBox>            
             </div>
         </header>
                    
 
             <div class="demo-container size-medium no-bg">
                 <div class="demo-content">
                     <telerik:RadMenu ID="RadMenu1"
                         runat="server"
                         EnableRoundedCorners="true"
                         EnableShadows="true"
                         EnableTextHTMLEncoding="true"
                         Skin="Default">
                     </telerik:RadMenu>
                     <br />
                     <div class="breadcrumb">
                         <telerik:RadSiteMap ID="BreadCrumbSiteMap" runat="server" DataTextField="Text" DataNavigateUrlField="NavigateUrl" Skin="Silk">
                             <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" SeparatorText="/" Layout="Flow" />
                         </telerik:RadSiteMap>
                         <h3>
                             <asp:Literal runat="server" ID="PageTitleLiteral" />
                         </h3>
                     </div>
                 </div>
             </div>
 
         
             <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
             </asp:ContentPlaceHolder>
        
     </div>

I tried to save the value on a session and force the selectedvalue on the MasterPage on Load event but it doesn't work
if (!Page.IsPostBack)
            {
                if (Session["ActiveProject"] != null && GlobalClientInfo.LoggedUser != null)
                {
                    ProjectEntity pjt = (ProjectEntity)Session["ActiveProject"];
                    m_ProjectId = pjt.Id;
                    ChooseProjectDdl.SelectedValue = m_ProjectId.ToString();
                }
            }

What do I miss?
Ivan Danchev
Telerik team
 answered on 12 Jan 2015
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?