Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
Hi,

Vesion : Q2 2012 SP2
Browser : IE7
OS : XP

We have a link which will open a new radWindow.
Most of the time, the radWindow is open normally which is in the center of the browser.
But, few times, it is miss-align, you can refer to the screen capture attched.
Below are the script we open the radWindow.

 function openWin(xmlName, ID1, ID2) {
            var oWnd = radopen("filename", "RadWindow2");
            oWnd.setSize(980, 580);
            oWnd.SetModal(true);
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.None);
            oWnd.show();
        }

Do you have any idea why it cause the miss-align?

Thanks,
KyLeow
Marin Bratanov
Telerik team
 answered on 28 Aug 2013
1 answer
38 views
Hi,

I have developed a code block in my application that would allow the user to submit the editform template using the Enter Key.

However during our testing we found that when you hit the Enter key multiple times in a row or if you're holding it down this generates duplicate rows. After racking my brain, thinking maybe it was something that we were doing wrong I found this demo on your website http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

When I clicked on Add record, entered data, navigated through the fields using the Tab key and hit Enter Key when the submit button was focused the grid indeed populated with duplicate rows.

Has a fix been developed for this? If so where can I find it?

Thank you!
Deyan Enchev
Telerik team
 answered on 28 Aug 2013
3 answers
231 views
Hi there all,

lets get down to business,

so here I am using RadCombobox and as usual i fill the item with data from sharepoint list.

The problem is the DropDownAutoWidth
is not working even though I've set it to "Enabled",

I have RadCombobox using checkboxes and not using checkboxes,
I also have RadCombox which width is specified and one that the width is not specified
with all those radcombobox none of the DropDownAutoWidth
is working, as far as the documentation goes all I need to do is set the DropDownAutoWidth to Enabled

<td class="ms-formbody">
    <telerik:RadComboBox ID="rcbxContinuity" runat="server" AutoPostBack="false" HighlightTemplatedItems="True"
        MarkFirstMatch="true" EmptyMessage="Choose a continuity" Width="175px" Sort="Ascending" DropDownAutoWidth="Enabled">
    </telerik:RadComboBox>
</td>
 
<td class="ms-formbody">
    <telerik:RadComboBox ID="rcbxContinuity" runat="server" CheckBoxes="true" Width="175px"
        Sort="Ascending" EnableCheckAllItemsCheckBox="false" EmptyMessage="Choose continuity"
        DropDownAutoWidth="Enabled">
    </telerik:RadComboBox>
</td>

.ms-formbody
{
    font-family: verdana;
    font-size: 12px;
    vertical-align: top;
    background: #f6f6f6;
    color: #000000 !important;
    border-top: 1px solid #d8d8d8;
    padding: 3px 6px 4px 6px;
}


Help and suggestion will be really appreciated.


Thanks in Advance.
Magdalena
Telerik team
 answered on 28 Aug 2013
1 answer
110 views
hello 

i have the following grid with client databind odata, it's works fine, but the problem is with the datetime fields i can't display the field correctly, its the code 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="true" AllowSorting="true" ShowGroupPanel="true" PageSize="5" AllowPaging="true">
    <MasterTableView ClientDataKeyNames="IdNavegacionenMenus">
      
        <Columns>
            <telerik:GridBoundColumn DataField="IdNavegacionenMenus" UniqueName="ClId" HeaderText="Id Navegacion" DataType="System.Int64"></telerik:GridBoundColumn>                       
            <telerik:GridBoundColumn DataField="FechaNavegacion" UniqueName="ClHora" HeaderText="Fecha suceso" DataType="System.DateTime" ></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="NombreUsuario" DataType="System.String" UniqueName="Nombre" HeaderText="Nombre"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="OpcionNavegada" DataType="System.String" UniqueName="Opcion" HeaderText="Opcion navegada"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CodigoUsuario" DataType="System.String" UniqueName="Codigo" HeaderText="Codigo"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="MacEntrada" DataType="System.String" UniqueName="Mac" HeaderText="Mac"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
 
    <ClientSettings AllowGroupExpandCollapse="true">
        <DataBinding Location="http://localhost:50155/ODataAuditoria.svc" DataService-Type="OData" ResponseType="JSONP">
            <DataService TableName="NavegacionenMenus" Type="OData" />
        </DataBinding>
    </ClientSettings>
</telerik:RadGrid>

the datetime fields display like "/Date(1377165480000)/"

anybody help me please?
Kostadin
Telerik team
 answered on 28 Aug 2013
10 answers
381 views
Hi,

I have a problem with RadDateTimePicker ASP.NET control.

I would like to have a RadDateTimePicker with DataInput-ReadOnly="true".
Lets suppose initially there a no data selected. Afetr I will select I want to reset it (to empty the DataInput).
How can I do that without some JavaScript code ... othere are some property?

Another problem bellow.

I need the next behaviour:
1. My aplication contains: Domain Tier, ControllersTier, App Logic Tier, Presenters Tier, UI Tier.
I insert PresenterTier for reusing later in another UI the same logic ... For me the UI is just a mapping way between User and App Logic.

2. I am not interested to do any kind of validation on UI side. So my validation are made in presenters. So I need to pass to the server all values (either wrong which the user enters .. I will validate in presenter and I will fire a message).

3. The RadDateTimePicker  when has a wrong data will pass in PostBack null value.  I do not want that.
I am interested to get the wrong value (not NULL) when the user input has introduced into UI (because validation I will make in Presenter)
So i need to deactivate the validation mechanism for RadDateTimePicker ... because the RadDateTimePicker on the client side when somehting is not good with what the user enter then will pass null on postback. This is not good.

Thank you.
Princy
Top achievements
Rank 2
 answered on 28 Aug 2013
2 answers
198 views
Hi,
I created my master page menu using radpanelbar by setting parent child datafileds
Sometimes i am getting an error
These columns don't currently have unique values

This is happening occasionally.So i cant even debug it..I dont knw where to begin to solve this problem.

Any idea..
Thanks in advance....
Princy
Top achievements
Rank 2
 answered on 28 Aug 2013
1 answer
218 views
Hi All,

How to bind SQL data to RadHtmlChart-pie control? All example are just binding static data only, i want to know how to bind sql query result (Name and total) columns in RadHtmlChart-pie?
Marin Bratanov
Telerik team
 answered on 28 Aug 2013
1 answer
117 views

We have a telerik grid with 2 freezed columns . we have used below code to make the column freeze.

<Scrolling AllowScroll="True" SaveScrollPosition="true" UseStaticHeaders="true" FrozenColumnsCount="2" />

 

We have a hyperlink in a column of Grid. And Clicking on that link one popup opens. But when we scroll and click on that link then it shows 3 columns and that popup never opens. and also horizontal scrollbar gets disappear.  Please find the screen shots for the same in attached doc.

Please provide the solution asap.

Princy
Top achievements
Rank 2
 answered on 28 Aug 2013
3 answers
332 views
Where can I find sample database / structure to the example Grid - Attachment Column
Maria Ilieva
Telerik team
 answered on 28 Aug 2013
3 answers
255 views
Hi,

I have a pie chart where I am trying to assign a color based on the series data item being returned from a stored procedure. However, no matter what I seem to do it always appears to maintain a gradient in the pie segment as well as coloring it RED.

What am I doing wrong? I have also set SkinsOverrideStyles="false"
protected void rcOrderTotalStages_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
    {
        //bind the legend to the report type title name from SQL data source
        e.SeriesItem.Name = (string)DataBinder.Eval(e.DataItem, "report_type_title") + " (" + (Int32)DataBinder.Eval(e.DataItem, "report_type_count") + ")";
        e.ChartSeries.Appearance.ShowLabelConnectors = true;
        
        e.SeriesItem.ActiveRegion.Tooltip =  (string)DataBinder.Eval(e.DataItem, "report_type_desc") + " (" + (Int32)DataBinder.Eval(e.DataItem, "report_type_count") + ")";
   
        //for each of the chart series set the exploded property to true and bind a colour to the pie segment depending on status/report_type-title
        int ChartSeriesItemCount = e.ChartSeries.Items.Count;
        for (int i = 0; i < ChartSeriesItemCount; i++)
        {
            e.ChartSeries.Items[i].Appearance.Exploded = true;
            string status = "";
            status = (string)DataBinder.Eval(e.DataItem, "report_type_title");
          
            switch (status)
            {                   
                case "Delivered":
                    e.ChartSeries.Items[i].Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Green;                   
                    break;
                case "Bill & Hold":
                    e.ChartSeries.Items[i].Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Green;                   
                    break;
                case "Prep Complete":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Green;
                    break;
                case "In Prep":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Orange;
                    break;
                case "Sent To Schedule":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Orange;
                    break;
                case "On Order/Ghost Slot":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Orange;
                    break;
                case "On Order":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Red;
                    break;
                case "Stock":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Red;
                    break;
                case "Not On Stock":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Red;
                    break;
                case "Cancelled":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Blue;
                    break;
                case "Status Unknown":
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Gray;
                    break;
                default:
                    e.ChartSeries.Items[i].Appearance.FillStyle.MainColor = System.Drawing.Color.Yellow;
                    break;
 
            }
             
        }
    }
Saroop
Top achievements
Rank 1
 answered on 28 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?