Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
99 views
Hi,

We are using Rad Grid Controls for Asp.Net AJAX 2008 Q2. We want to Rebind our Rad Grid at client side using $find() method. But $find() method is not recognised by application and showing error.

$find() method working well for latest version of Rad controls but not for the Asp.Net AJAX 2008 Q2.

So please let us know the alternate way to Rebind grid at client side for Asp.Net AJAX 2008 Q2 version.

Thanks.
Duane Roelands
Top achievements
Rank 1
 answered on 29 May 2013
1 answer
129 views
My application works fine on our QA server in all browsers, but does not work on our Production server in IE10.  I am using the latest Telerik DLLs.  Here is a link: http://appointments.herbalmagic.ca.  The login button shows in other versions of IE and Firefox but not IE10.  Please help!  Thank you.
msigman
Top achievements
Rank 2
 answered on 29 May 2013
1 answer
99 views
I'm trying to show y-axis title in html as I want to show a character as apex or subscript.
The following code does not work.
  <YAxis     >
                 
                 <Appearance Color="134, 134, 134" MajorTick-Color="196, 196, 196" MinorTick-Color="196, 196, 196">
                     <LabelAppearance Visible="true"  >
                         
                     </LabelAppearance>
                     <MajorGridLines Color="196, 196, 196" />
                     <MinorGridLines Color="196, 196, 196" Width="0" />
                     <TextAppearance TextProperties-Color="89, 89, 89"  >
                         
                     </TextAppearance>
                 </Appearance>
                 <AxisLabel TextBlock-Visible="true" Visible="true" TextBlock-Text="kWh/<sup>m2</sup>">
                     <TextBlock  >
                         <Appearance TextProperties-Color="220, 158, 119"  TextProperties-Font="18px">
                         </Appearance>
                     </TextBlock>
                 </AxisLabel>
             </YAxis>

I suppose that html is not supported in axislabel textblock-text property. Does exist any workaround?
Best regards!
Petar Kirov
Telerik team
 answered on 29 May 2013
0 answers
114 views
hi Telerik,

I try to recalculate the total height of the panel bar after its child item is expanded or collapsed and i did try the panel bar events like OnClientItemExpand/OnClientItemCollapse, OnClientClicked but in none of them i can get the real height of the panel bar since the panel bar always keeps the current height (not the actual height after child item expanded or collapsed)


function OnClientItemExpand(sender, args)
{
    var panelHeight = sender.get_element().offsetHeight; //always current height not after child item expanded
}

please help -- very appreciate!

thanks,

roger
roger
Top achievements
Rank 1
 asked on 29 May 2013
0 answers
95 views

My solution uses a splitbar to hide a upload button in the lower half of the pane and a listbox and a dropdownlistbox in the upper half of the same pane.  The splitbar should be collapsed upon page load, hiding the upload button.  What is the command for this?  I can place the command in the Page_load of the web page if I knew it.  Also, the splitbar should move down, collapse, to hide the upload button when the dropdownlistbox option is changed.  The splitbar should move up, expand, when the user completes the selection process by choosing a option in the listbox.  None of the animations are working. 

The control does work when coded within the vb codebehind but I am required to have it operate on the client side using jQuery.  In Firefox v21.0, Firebug gives me the following error:

 

TypeError: splitter.expand is not a function.  

I'm using Telerik RadControls for ASP.NET Ajax version 2013.1.220.40.  Thanks.

    $(function () {
 
        $('#<%= dropdwn.ClientID %>').change(function (e) {
 
            B_SelectedIndexChanged();
 
            resizePane(false)
            e.preventDefault();
        });
 
        $('#<%= Listbox.ClientID %>').change(function (e) {
 
            O_SelectedItemChanged();
 
            resizePane(true)
            e.preventDefault();
 
        });
 
});
 
function resizePane(source) {
 
        var splitter = $("#<%= HideUploadRadsplitbar.ClientID %>");
        var pane = $("#<%= FileUploadRadpane.ClientID %>");
 
        if (source = true) {
 
                splitter.expand();
 
        } else {
 
            pane.collapse();
 
        }
    }


Jermaine
Top achievements
Rank 1
 asked on 29 May 2013
3 answers
141 views
I have a Give Below Code for
webchart.dll

but i want same thing do in the RadChart

ColumnChart c = new ColumnChart();
        c.MaxColumnWidth = 20;
        c.Fill.Color = Color.Black;
        c.Fill.ForeColor = Color.Blue;
        c.Fill.Type = InteriorType.Hatch;
        c.Fill.HatchStyle = HatchStyle.Cross;
        c.Legend = "Date/Bill";
        SqlConnection conn = new SqlConnection(@"Data Source=.\SQL2005;Initial Catalog=OrderProcessAutomation;Persist Security Info=True;User ID=sa;Password=123456");
        conn.Open();
        string qry = "Rpt_DailyBillTrend";
        SqlCommand cmd = new SqlCommand(qry, conn);
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.AddWithValue("@FromDate", txtFromDate.Text);
        cmd.Parameters.AddWithValue("@ToDate", txtToDate.Text);
        c.DataSource = cmd.ExecuteReader();
        c.DataXValueField = "Date";
        c.DataYValueField = "BillCount";
        c.DataBind();
        conn.Close();
        Chart1.Charts.Add(c);
        Chart1.Charts.Add(new LineChart(c.Data, Color.Black));
        Chart1.RedrawChart();
now how to do .. plzz help me out from this thing.. how to do with the radChart no external DataSource Wizard all things by the Coding only how to do
Petar Kirov
Telerik team
 answered on 29 May 2013
1 answer
98 views
Hello:

Here's the scenario. user defines a search via several radcomboboxes. The form is cleared, using the following javascript to clear the comboboxes selected:

function ResetComboBoxValue(ctrl, isDisable) {
    var combo = $find(ctrl);
    var input = combo.get_inputDomElement();
    if (combo != null) {
        combo._enabled = true;
        combo.trackChanges();
        combo.clearSelection();
        combo.set_emptyMessage(combo.get_emptyMessage());
        if (isDisable) {
            combo._enabled = false;
            input.readOnly = true;
        }
        combo.commitChanges();
    }
}

All that looks good until a postback is done then the previously selected values are "restored". I thought that by using the commitChanges() it would sync the client changes to the server to prevent the previous selected items from being restored. 

Thanks!
Will Lopez
Top achievements
Rank 1
 answered on 29 May 2013
2 answers
169 views
Hello, 
   I've disabled the embedded skins but the icons of the editor (neither Grid, nor Scheduler) are visible (images attached).

 According to Fiddler:

GET http://localhost:33228/App_Themes/Metro/%3C%=WebResource(%22Telerik.Web.UI.Skins.Metro.Grid.sprite.gif%22)%%3E
400 Bad Request (text/html)

The sprite images are in their right paths but it seems that the request is bad, it should ask for an image not "text/html", right?


Any help would be appreciated,
Miguel
tito miky
Top achievements
Rank 1
 answered on 29 May 2013
3 answers
73 views
I am attempting to recreate the Grid - Edit on Double-click in a SharePoint 2010 web part.  I have successfully added the script to the page using a ClientScriptManager in the PreRender method.  I also generate my RadAjaxManager in OnInit.

However, when I double click on an item I receive an error on the page, "'null' is null or not an object"

The line number it corresponds to in the page source is
$find("<%= RadGrid1.ClientID %>").get_masterTableView().editItem(editedRow);
within the RowDblClick function.

Any help would be appreciated.

Thanks!



Tsvetoslav
Telerik team
 answered on 29 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?