Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
179 views
Folks,

Using RadControls for ASP.NET AJAX Q1 2013 SP2 with VS 2010. I am using below link as prototype.
 

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx


Also my grid has making a Grid Row Selected at All Times (similar to WinForms grids) is enabled as described by below link.


http://www.telerik.com/help/aspnet-ajax/grid-selected-row-at-all-times.html


My question is it possible to highlight the parent row if it is expanded(Attached)? In attached file 1st row is highlighted, not the expanded row. I do want a grid row be selected all times also want highlight the parent row when it is expanded. That is my intention.

Any help is appreciated.
Sincerely

gc_0620
Princy
Top achievements
Rank 2
 answered on 29 May 2013
2 answers
179 views
Hi,
I have problems with IE showing CheckBox. It's working prefect in Chrome. In IE it's not showing checkbox at all.

Here's the code:

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .RadForm_CRM {
  

 /* checkboxes */
  }

  .RadForm_CRM.rfdCheckbox input[type="checkbox"], .RadForm_CRM.rfdCheckbox input[type="checkbox"][disabled]:hover, .RadForm_CRM.rfdRadio input[type="radio"], .RadForm_CRM.rfdRadio input[type="radio"][disabled="disabled"]:hover {
    /*height: 30px;
    line-height: 30px !important;
    padding-left: 22px !important;*/
    /*background-image: url('../Common/MetroTouch/CheckBoxRadioSprites.png');
    background-repeat: no-repeat;*/
 background-position:0 0 !important; 
  }
  .RadForm_CRM.rfdCheckbox label, .RadForm_CRM.rfdRadio label {
    vertical-align: middle;
  }
  .RadForm_CRM.rfdCheckbox input[type="checkbox"], .RadForm_CRM.rfdCheckbox input[type="checkbox"][disabled]:hover {
     background-image: url('../Common/MetroTouch/CheckBox.png') !important;
 background-position:0 0 !important;
 background-repeat: no-repeat !important;
 height:24px !important;
 width:24px !important;
  }
  .RadForm_CRM.rfdCheckbox input[type="checkbox"]:hover {
    background-image: url('../Common/MetroTouch/CheckBoxHover.png') !important;
 background-position:0 0 !important;
 background-repeat: no-repeat !important;
 height:24px !important;
 width:24px !important;
  }
  .RadForm_CRM.rfdCheckbox input[type="checkbox"]:checked, .RadForm_CRM.rfdCheckbox input[type="checkbox"][disabled]:hover:checked {
    background-image: url('../Common/MetroTouch/CheckBoxChecked.png') !important;
 background-position:0 0 !important;
 background-repeat: no-repeat !important;
 height:24px !important;
 width:24px !important;
  }
  .RadForm_CRM.rfdCheckbox input[type="checkbox"]:hover:checked {
    background-image: url('../Common/MetroTouch/CheckBoxCheckedHover.png') !important;
 background-position:0 0 !important;
 background-repeat: no-repeat !important;
 height:24px !important;
 width:24px !important;
  }

Any ideas?

THX.

Uros

Uros
Top achievements
Rank 1
 answered on 29 May 2013
4 answers
197 views
Hello,

We want to create a Web-Application like SharePoint.

To do this, we use the Ribbon-Bar.

At the first RibbonBarTab in SharePoint you see an Image (logo) an the name of the WebApplication.

So you need a Panel with an Label and an Image...

But your <items>-Tag does not accept a panel...

Please open the attached image.

Thank you for your help.

Best Regards,
Jan
Jan
Top achievements
Rank 1
 answered on 29 May 2013
3 answers
224 views
how can I do this for menu below

  <telerik:RadMenu ID="RadMenu1"  DataNavigateUrlField="m_url"  
                  DataTextField="m_text"  DataFieldID="m_id" DataFieldParentID="p_mid" 
                  DataValueField="m_value" Runat="server" 
                  EnableEmbeddedSkins="false" Skin="Green">                  
            </telerik:RadMenu>
Ivan Zhekov
Telerik team
 answered on 29 May 2013
3 answers
143 views
I am facing problem with rad grid page buttons (Move next, previous, Last, first). Buttons are disappearing when I am trying to Click the button. Can u give the solution. please find the attached screen shot.

Please provide solution.
Princy
Top achievements
Rank 2
 answered on 29 May 2013
3 answers
971 views
Hi Telerik Team,

We are using rad chart for drawing Bar and Line Series graphs.

Have set the property autoscale=true;
When the Y axis value is 1 or 2 the Y axis shows decimal points. Need to eliminate the decimal points. Please refer the screen shot.

As the data will be dymanic, do not want to use the property autoscale = false and set min and max value with steps.
we did set ValueFormat to Number, but this also ended up showing decimal.

At any point of time my Y axis should not contain the decimal, as our result data will not have such decimal data.

Version: 2009.3.1208.35

Early reply will be appreciated.

Thanks and regards.
OMAR
Top achievements
Rank 1
 answered on 28 May 2013
2 answers
150 views

Hi,

 

My grid has template column with textbox in item template and textbox in footer template. The aspx looks like this:

 

<telerik:GridTemplateColumn AllowFiltering="False" FilterControlAltText="Filter Amount column" Groupable="False" HeaderText="Amount" Reorderable="False" ShowFilterIcon="False" UniqueName="Amount" HeaderTooltip="Amount">

    <HeaderStyle Width="17%"></HeaderStyle>

    <ItemTemplate>

       <asp:TextBox ID="txtAmount" runat="server" Width="75%" CssClass="rightalign" onblur="return txtAccountAmount_Blur
                                                                                                            (event);"
/>

    </ItemTemplate>

    <FooterTemplate>

       <asp:Literal ID="Literal1" runat="server" ><span style='color: Black; font-weight:

                     bold;'>Sum:</span></asp:Literal>

       <asp:TextBox ID="txtAmountTotal" runat="server" Width="75%" CssClass="rightalign" />

    </FooterTemplate>

</telerik:GridTemplateColumn>

 

Then I have function on this local aspx page as:

function txtAccountAmount_Blur(evnt){

    var txtBox = ((evnt.target) ? evnt.target : evnt.srcElement);

    var isValid = Currency_Validate( txtBox );

    SetGridCurrencyTextBoxError(isValid, txtBox, evnt);

    return isValid;

}

       

 

In global javascript:

 

function SetGridCurrencyTextBoxError(isValid, txtBox, evt){

    var cell = txtBox.parentNode;

 

    var errorMsg = document.getElementById(cell.id + "_spnError");

 

    if(!isValid){//Was not valid currency value.

        if(!errorMsg){

            errorMsg = document.createElement('span');

            errorMsg.className = 'inlineerrortext';

            errorMsg.innerHTML = 'Invalid currency value.';

            errorMsg.id = cell.id + "_spnError";

            cell.insertBefore(errorMsg, txtBox);

        }

 

}

 

Cell.id is always empty. I used developer tools to debug. There is textbox id. I see it. It is something like this:

Ctl00_maincontent_rgdAccounts_ctl00_ctl04_txtAmount . As far as I know, parent id should be - Ctl00_maincontent_rgdAccounts_ctl00_ctl04

 

Please let me know how to get id of parentnode

 

Thanks,

Prathiba

Prathibarani
Top achievements
Rank 1
 answered on 28 May 2013
3 answers
219 views
hi,

I have a page with a line chart of 9 series, each will have 360 points, so totally more than 3000 points. When I hard refresh this page, the cpu usage is raising from 12% to 70% then to 100%. I have Intel Core 2 Duo cpu with 3.16GHz, 8G memory, 64- bit Win7 system. Any suggestion for improvement is appreciated. I am using version 2012.2.626.40.

here is my code:

<telerik:RadChart ID="radchart1" runat="server" OnBeforeLayout="radchart1_OnBeforeLayout"

AutoLayout="true" Skin="Vista" IntelligentLabelsEnabled="false" PlotArea-XAxis-AutoScale="false" > 
    <Legend Appearance-ItemTextAppearance-TextProperties-Font="Arial, 7pt" Appearance-ItemTextAppearance-    AutoTextWrap="False"></Legend> 
    <ChartTitle TextBlock-Appearance-TextProperties-Font="Arial, 10pt, style=Bold"> </ChartTitle>

    <PlotArea>

        <XAxis>

            <Appearance> 

                <TextAppearance TextProperties-Font="Arial, 8.25pt, style=Bold" />

                <LabelAppearance RotationAngle="60"> </LabelAppearance>

            </Appearance> 
                </XAxis> 
                <YAxis AxisMode="Extended" AutoScale="false"> 
                        <Appearance> 
                                <TextAppearance TextProperties-Font="Arial, 8.25pt" /> 
                        </Appearance> 
                </YAxis> 
        </PlotArea>
</telerik:RadChart>

code to load chart series:

 

chartseries.Type = ChartSeriesType.Line;

chartseries.Appearance.PointMark.Visible = true;

chartseries.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;

chartseries.Appearance.LabelAppearance.Visible = false;

for (int i = 0; i < data.Count(); i++)

{

    if (radchart1.PlotArea.XAxis.Items.Count() < data.Count())

        radchart1.PlotArea.XAxis.AddItem(data[i].Date.ToString());
                chartseries.AddItem(Convert.ToDouble(data[i].Count) > 100 ? 101 : Convert.ToDouble(data[i].Count), data[i].Count.ToString());

                chartseries.Items.Last().ActiveRegion.Tooltip = data[i].Count.ToString("#,##0");
}

function to customize xaxis labels 

protected void radchart1_OnBeforeLayout(object sender, EventArgs e)

{

         foreach (var item in radchart1.PlotArea.XAxis.Items)

        {

        DateTime xaxis = Convert.ToDateTime(item.TextBlock.Text); 
                if (xaxis.Minute > 0)

                {

                        item.Visible = false;

                }

        else

                {

                        item.TextBlock.Text = xaxis.ToString("h tt");

                        item.Visible = true; 
                }

        }

}

msigman
Top achievements
Rank 2
 answered on 28 May 2013
6 answers
192 views
I have a simple RadWindow popup from a button using ContentTemplate - with a Cancel and an Update Button
<telerik:RadWindow ID="rwLumpSum" Modal="true" Top="0" Left="0" VisibleOnPageLoad="false" runat="server" >
    <ContentTemplate>
    <asp:UpdatePanel ID="cpLumpSum" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
        <table>
        <tr>
        <td>Lump Sum</td>
        <td>
            <telerik:RadNumericTextBox ID="rntbLumpSum" MinValue="1" MaxValue="999.99" runat="server">
                <NumberFormat DecimalDigits="2" />
            </telerik:RadNumericTextBox>
        </td>
        </tr>
        <tr>
        <td>
            <telerik:RadButton id="rbCancel" Text="Cancel" OnClientClicked="rbCancelClicked" AutoPostBack="false" UseSubmitBehavior="false" runat="server" />
        </td>
        <td>
            <telerik:RadButton id="rbUpdate" Text="Update" runat="server" />
        </td>
        </tr>
        </table>
    </ContentTemplate>
    </asp:UpdatePanel>
    </ContentTemplate>
</telerik:RadWindow>

the Cancel button closes the form fine with the following script
function rbCancelClicked(button) {
    var rwLumpSum = $find("<%=rwLumpSum.ClientID%>");
    rwLumpSum.Close();
}

the Update needs to do something, then close the form
only it doesn't even close the form
Protected Sub rbUpdate_Click(sender As Object, e As EventArgs) Handles rbUpdate.Click
    Dim ws As CommonFunctions
    Dim sb As StringBuilder = Nothing
 do something here
    sb = New StringBuilder("<SCRIPT language='javascript'>")
    sb.Append("var rwLumpSum = $find(")
    sb.Append(Chr(34))
    sb.Append("<%=rwLumpSum.ClientID%>")
    sb.Append(Chr(34))
    sb.Append(");rwLumpSum.Close();")
    sb.Append("</SCRIPT>")
    ws = New CommonFunctions()
    ScriptManager.RegisterStartupScript(Me, Me.GetType(), "CloseWindow", sb.ToString, False)
End Sub

help!
thanks

oh and clicking the Update also throws a JavaScript error in some Telerik Web script library
Elliott
Top achievements
Rank 2
 answered on 28 May 2013
3 answers
304 views
Hi All,
  I am  new to telerik controls I am using the asyn upload to upload files from a  user but the tough part is I have a user control which has a hyperlink to open a radwindow which contains asp page where user actually loads the files using asyn upload once done i have to populate radgrid back in the parent page file  how can i do this and i need hyperlink on the grid with the uploaded file name to actually allow user to open save dialog and i am using local folder to save files and paths.
msigman
Top achievements
Rank 2
 answered on 28 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?