Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
hi all,

am simpling trying to beutify a project by adding a chart that is programatically polulated.
below is the snipet of the chart aspx script 

<telerik:radchart id="RadChart1" runat="server" defaulttype="Line" skin="Office2007" style="margin-right: 32px" width="500px" chartimageformat="Jpeg" enableviewstate="False" tempimagesfolder="~/radchart" height="500px" usesession="False" onitemdatabound="RadChart1_ItemDataBound">
<ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="14" />
<Series>
<cc1:ChartSeries Name="Series 1" Type="Line">
<Appearance>
<FillStyle FillType="Solid" MainColor="69, 115, 167">
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
<Border Color="69, 115, 167" />
</Appearance>
</cc1:ChartSeries>
<cc1:ChartSeries Name="Series 2" Type="Line">
<Appearance>
<FillStyle FillType="Solid" MainColor="107, 70, 68">
</FillStyle>
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
<Border Color="107, 70, 68" />
</Appearance>
</cc1:ChartSeries>
</Series>
<PlotArea>
<XAxis DataLabelsColumn="transactiondate" Appearance-ValueFormat="ShortDate">
<Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134">
<MajorGridLines Color="134, 134, 134" Width="0" />
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
<LabelAppearance RotationAngle="90" >
</LabelAppearance>
</Appearance>
<AxisLabel>
<TextBlock Text="Date">
<Appearance TextProperties-Color="Black">
</Appearance>
</TextBlock>
</AxisLabel>
<Items>
<cc1:ChartAxisItem>
</cc1:ChartAxisItem>
<cc1:ChartAxisItem Value="1">
</cc1:ChartAxisItem>
<cc1:ChartAxisItem Value="2">
</cc1:ChartAxisItem>
<cc1:ChartAxisItem Value="3">
</cc1:ChartAxisItem>
<cc1:ChartAxisItem Value="4">
</cc1:ChartAxisItem>
<cc1:ChartAxisItem Value="5">
</cc1:ChartAxisItem>
<cc1:ChartAxisItem Value="6">
</cc1:ChartAxisItem>
<cc1:ChartAxisItem Value="7">
</cc1:ChartAxisItem>
</Items>
</XAxis>
<YAxis>
<Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134" MinorTick-Color="134, 134, 134">
<MajorGridLines Color="134, 134, 134" />
<MinorGridLines Color="134, 134, 134" />
<TextAppearance TextProperties-Color="Black">
</TextAppearance>
</Appearance>
<AxisLabel>
<TextBlock>
<Appearance TextProperties-Color="Black">
</Appearance>
</TextBlock>
</AxisLabel>
</YAxis>
<Appearance>
<FillStyle MainColor="" FillType="Solid">
</FillStyle>
</Appearance>
</PlotArea>
<Appearance>
<Border Color="134, 134, 134" />
</Appearance>
<ChartTitle>
<Appearance>
<FillStyle MainColor="">
</FillStyle>
</Appearance>
<TextBlock Text="Message Traffic">
<Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 18px">
</Appearance>
</TextBlock>
</ChartTitle>
<Legend>
<Appearance Dimensions-Margins="15%, 2%, 1px, 1px" Dimensions-Paddings="2px, 8px, 6px, 3px" Position-AlignedPosition="TopRight">
<ItemTextAppearance TextProperties-Color="Black">
</ItemTextAppearance>
<ItemMarkerAppearance Figure="Square">
</ItemMarkerAppearance>
</Appearance>
</Legend>
</telerik:radchart>

the problem is that the x label keeps overlapping with the chart how can i fix these
another is there are so many record and i would so much like to enabe scrolling but i does not display any despite adding 
<ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="14" />

pls help

thanks

E-Larry
Evgenia
Telerik team
 answered on 14 Sep 2010
0 answers
284 views

Hi,
i am using RadUpload control for uploading files.after uploading a file when try to open it i am getting below error.
cannot find 'file:///D:\ '.make sure the path or internet address is correct

while the file is successfully uploaded and it is there in the containing folder.

this error is coming only on test and production server after deploy the application on IIS.

in development the same is working fine.

there is no issue of permission also.the folder is having administrator rights.

please help.

waiting for your reply.
bharat kumar
Top achievements
Rank 1
 asked on 14 Sep 2010
3 answers
176 views
Any Ideas.... Why doesn't the AllowRowSelect allow me to click on a row to select it?
thanks again


 

 

<telerik:RadGrid ID="GridManage" runat="server"

 

 

 

AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"

 

 

 

AllowMultiRowSelection="True"

 

 

 

ShowStatusBar="True" Skin="WebBlue" GridLines="None"

 

 

 

Width="960px" onselectedindexchanged="GridManage_SelectedIndexChanged"

 

 

 

onitemcreated="GridManage_ItemCreated"

 

 

 

onneeddatasource="GridManage_NeedDataSource" PageSize="25" Height="620px"

 

 

 

GroupingEnabled="False" onpagesizechanged="GridManage_PageSizeChanged" ><AlternatingItemStyle BackColor="Silver" /><MasterTableView TableLayout="Fixed" DataKeyNames="ConstituentID" >

 

 

 

 

<RowIndicatorColumn><HeaderStyle Width="20px"></HeaderStyle></RowIndicatorColumn><ExpandCollapseColumn>

 

 

 

 

<HeaderStyle Width="20px"></HeaderStyle></ExpandCollapseColumn><Columns>

 

 

 

 

 

<telerik:GridClientSelectColumn HeaderStyle-Width="25px" DataTextField="CONSTITUENTID" Visible="False" >

 

 

 

 

<HeaderStyle Width="20px" HorizontalAlign="Center"/>

 

 

 

 

 

</telerik:GridClientSelectColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" ><HeaderTemplate>

 

 

 

<asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server">

 

 

 

</asp:CheckBox></HeaderTemplate><ItemTemplate><asp:CheckBox id="CheckBox1"

 

 

 

OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox></ItemTemplate><HeaderStyle HorizontalAlign="Center" Width="25px" />

 

 

 

<ItemStyle Width="25px" Wrap="False" /></telerik:GridTemplateColumn><telerik:GridBoundColumn DataField="CONSTITUENTID" Display="False"

 

 

 

HeaderText="Corr ID" UniqueName="column" Visible="False"><HeaderStyle HorizontalAlign="Center" />

 

 

 

<ItemStyle Wrap="False" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

<telerik:GridBoundColumn DataField="LastName" HeaderText="Last"

 

 

 

UniqueName="Last" SortExpression="LastName"><HeaderStyle Width="100px" HorizontalAlign="Center"/>

 

 

 

 

<ItemStyle Width="125px" HorizontalAlign="Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="FirstName" HeaderText="First"

 

 

 

UniqueName="Last" SortExpression="FirstName"><HeaderStyle Width="100px" HorizontalAlign="Center" />

 

 

 

<ItemStyle Width="125px" HorizontalAlign="Center" Wrap="False" />

 

 

 

 

</telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Organization" HeaderText="Org"

 

 

 

UniqueName="Organization" SortExpression="Organization"><HeaderStyle Width="50px" HorizontalAlign="Center" />

 

 

 

 

<ItemStyle Width="200px" HorizontalAlign="Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Address1" HeaderText="Address"

 

 

 

UniqueName="Address1" SortExpression="Address1"><HeaderStyle Width="150px" HorizontalAlign="Center" />

 

 

 

<ItemStyle Width="125px" HorizontalAlign="Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="City" HeaderText="City"

 

 

 

UniqueName="City" SortExpression="City"><HeaderStyle Width="100px" HorizontalAlign="Center" />

 

 

 

<ItemStyle Width="125px" HorizontalAlign="Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="State" HeaderText="ST"

 

 

 

UniqueName="State" SortExpression="State"><HeaderStyle Width="30px" HorizontalAlign="Center" />

 

 

 

<ItemStyle Width="125px" HorizontalAlign="Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Zip" HeaderText="Zip"

 

 

 

UniqueName="Zip" SortExpression="Zip"><HeaderStyle Width="50px" HorizontalAlign="Center" />

 

 

 

<ItemStyle Width="125px" HorizontalAlign="Center" Wrap="False" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Email" HeaderText="Email"

 

 

 

UniqueName="Email" SortExpression="Email"><HeaderStyle Width="100px" HorizontalAlign="Center" />

 

 

 

<ItemStyle Width="125px" HorizontalAlign="Center" Wrap="False" /></telerik:GridBoundColumn></Columns><PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle></MasterTableView>

 

 

 

<SelectedItemStyle BackColor="#CCCCCC" ForeColor="Black" BorderStyle="Outset" />

 

 

 

<HeaderStyle Font-Bold="False" Font-Size="Small" />

 

 

 

 

 

 

<ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="True">

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

</ClientSettings>

 

 

 

 

 

</telerik:RadGrid>

 

Pavlina
Telerik team
 answered on 14 Sep 2010
2 answers
82 views
Am getting an error when someone tried to click the expand icon next to a row while that row is in edit mode. It seems to be a databinding issue where it's looking for a field in the parent object for the detail object. If I cancel the current edit and then click the expand icon it works fine. What's the best way to solve this? I guess to me it would seem that hiding or disabling the expand icon for the row while in edit mode would be the best. Ideas?

Dan
Digital Man
Top achievements
Rank 2
 answered on 14 Sep 2010
1 answer
92 views

Hi,

When radgrid loads ona page it should not display filter option. When cilck the link button on commanditemtemplate it should display the filter option and when i click hide button it should hide the filter option. Can anyone help me how to do this?

Thanks
Babu

Dimo
Telerik team
 answered on 14 Sep 2010
1 answer
348 views
In the grid when a user clicks a field to sort for the first time how does one set the default order to be descending instead of ascending? What happens now is that when you click on any column that is not currently sorted it sorts initially as ascending. I would like it when they click to sort initially as descending, then ascending and then none. Thanks in advance.
Mira
Telerik team
 answered on 14 Sep 2010
6 answers
270 views
I'm putting my pages in the Toolbar, but it had several pages that have no problems running the hovered when I pass the mouse over the icon nothing happens!

I was commenting the code to find where was the problem.
When I place the CalendarExtender or MaskedEditExtender for running the Toolbar.

Just use this code that happens the problem.

<asp:TextBox ID="TextBoxDe" runat="server" Width="70px"></asp:TextBox>
<ajax:CalendarExtender ID="CalendarExtender2" runat="server" FirstDayOfWeek="Sunday"
    Format="dd/MM/yyyy" TargetControlID="TextBoxDe">
</ajax:CalendarExtender>
<ajax:MaskedEditExtender ID="MaskedEditExtenderDe" runat="server" AcceptNegative="None"
    ClearMaskOnLostFocus="true" CultureName="pt-BR" DisplayMoney="None" Mask="99/99/9999"
    MaskType="Date" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
    OnInvalidCssClass="MaskedEditError" TargetControlID="TextBoxDe">
</ajax:MaskedEditExtender>
 
 
<telerik:RadToolBar ID="radBotoes" runat="server">
    <Items>
        <telerik:RadToolBarButton runat="server" Text="Test 1">
        </telerik:RadToolBarButton>
        <telerik:RadToolBarButton runat="server" Text="Test 2">
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>

How solved this?
Peter
Telerik team
 answered on 14 Sep 2010
1 answer
174 views
hello,

my problem is, i am using the radgrid in that i am showing the status of each row (it is a hyperlink)
on click of status i am showing the radwindow in that i have option to change the status for that row.
on rad window i have 2 buttons Save and close on on save i am saving the status in database and redirecting to the parent page
while redirecting it should refresh the parent page and update the status of that row.
even on close button i want same ,

but now it is refreshing the page only first time when i open the radwindow and closed it but after i want to change the status of second row i am getting the jscript error "element parent node is null" and "Object doesnot support property or method" after this idid some changes,
i used  DestroyOnClose="true"  then it is showing the
 
my code is below on Parent page
i using the
<telerik:RadAjaxPanel ID="rjxPanel_PurchaseOrder" runat="server"
                    LoadingPanelID="RadAjaxLoadingPanel1" Width="100%" Height="100%" >
<tr>
        <td>
            <div id="RestrictionZone" class="module" style="margin-top: 4px; height: 300px; width: 400px;">
                    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index:7001">
                        <Windows>
                            <telerik:RadWindow runat="server" ID="RadWindow1" ReloadOnShow="true"
                                ShowContentDuringLoad="true" Modal="true"
                                Height="560px" Width="620px" NavigateUrl="ManagePurchaseOrder.aspx"
                                Animation="Fade" />
                        </Windows>
                    </telerik:RadWindowManager>
            </div>
        </td>
        </tr>
function ChangeStatus(OrderID)
        {
           var EntityID =document.getElementById("ctl00_ContentPlaceHolder1_HiddenField_EntityID").value;
          // window.showModalDialog('ManageStatusChange.aspx?EntityID=' + EntityID + '&EntityType=PurchaseOrder&EntityKeyID='+OrderID , this, "status:no;help:no;overflow:auto;center:yes;dialogWidth:775px;dialogHeight:675px");
           var PopupWindow=radopen('ManageStatusChange.aspx?EntityID=' + EntityID + '&EntityType=PurchaseOrder&EntityKeyID='+OrderID , "RadWindow1");
           PopupWindow.Center();
        }
function refreshParent(arg)
        {
             //Get reference to RadAjaxManager on page  
            if (radManager == null)       
            var radManager = $find('<%= RadAjaxManager.GetCurrent(this).ClientID %>'); 
            //Fire ajax request (optionally pass an event arg value)
            radManager.ajaxRequest(arg);   
        }
in parentAspx.cs
#region RadAjax CodeBlock
 
        RadAjaxManager rjxManager = RadAjaxManager.GetCurrent(this);
        //Create a new delegate to handle the AjaxRequest event  
        rjxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(rjxManagerPurchaseOrder_AjaxRequest);
        rjxManager.AjaxSettings.AddAjaxSetting(rjxManager, rjxPanel_PurchaseOrder);
 
        #endregion
#region Rad Ajax Event
 
    protected void rjxManagerPurchaseOrder_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument == "Rebind")
        {
            Session["currentObject"] = null;
            RadGrid_Orders.Rebind();
        }
    }
 
    #endregion


and another page which will show in radwindow

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">  
 
 function GetRadWindow()
  {
       var oWindow = null;
             
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
             
            return oWindow;
   }
 
function closeRadWindow()  
{
 
    GetRadWindow().Close();    
}  
 function CloseAndRebind(args)
 {
      GetRadWindow().Close();
      GetRadWindow().BrowserWindow.refreshParent(args);
 }
 
</script>  
</telerik:RadCodeBlock>

and on close button :-
<asp:Button ID="btnClose_Top" runat="server" Text="Close"            
                        OnClientClick="javascript:closeRadWindow();return false;" />

and on save button

string script = "<script>CloseAndRebind('Rebind')</" + "script>";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "CloseAndRebind", script, false); 


PlZ plz tell the solution
Mira
Telerik team
 answered on 14 Sep 2010
1 answer
63 views
Hi Telerik Team,


                      Data is not binding when I use datatimebound column. Always saying "No records found"  when I filter using Date picker in datetimebound column. But, I can reterive the object list which contain 4 rows. But, It is not getting to rad grid.

Code :
Load Grid Function:

objSearchResultsDO =

new SearchResultsDO();

 

objSearchResultsDO = Pfizer.Clink.Business.Factory.

BusinessFactory.GetRequestTrackerService().GetAllRequestTracker(objSearchDO, ref _objPfizerClinkException);

 

grdSearch.DataSource = objSearchResultsDO.ResultsDO; // Contains 4 rows.

on Need_Datasource I am calling Load Grid function.


Thanks In Advance

Martin
Telerik team
 answered on 14 Sep 2010
6 answers
206 views
Hello,

I was testing a simple scheduler control scenario in visual studio.  In Visual studio 2010 everything works fine when using start without debug.  When I double click or right click the Add Appointment Form appears.

I published the site out to IIS 7 on Windows server 2008 R2 and when I double click the control or use the context menu (

Value

 

 

="CommandAddAppointment")  the page just refreshes and no form appears.

 

Peter
Telerik team
 answered on 14 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?