Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
236 views
I just udated to the latest version of 3.5 grid and now my column filter for the gridnumericcolumn isn't working:

<telerik:GridNumericColumn FilterControlWidth="75px" DataField="Hectare" HeaderText="Hectares" NumericType="Number" DataType="System.Decimal" DecimalDigits="1" AllowRounding="true" DataFormatString="{0:N1}"><ItemStyle HorizontalAlign="Right" />
				</telerik:GridNumericColumn>


this hides the icon and doesn't work, worked fine before with the previous version.  Is this a bug or did something change?  If I remove the width, the icon shows up and works just fine.
Andrey
Telerik team
 answered on 02 May 2012
0 answers
75 views
Hi,

I have a Radgrid which is used to display some values on the UI. Some fields are simple dropdowns while others are text box.
The issue here is We have used a coding where in if no data is entered then textbox should be default filled with zero.This was because other wise it would have thrown exception "input string not in correct format".

Now with some enhancements there is a need that if I enter nothing in the text box, then the value should be filled with null.
I know this is possible in framework 3.5 but application is bulit on dot Net 2.0 where in concept of "nullabel " wont work.

Have a look at the present coding that fills zero.
decimal rccAggInto2UomMult = 0;
        if (((TextBox)row.Cells[27].Controls[1]).Text != "")
            rccAggInto2UomMult = Convert.ToDecimal(((TextBox)row.Cells[27].Controls[1]).Text);

Any alternate way out ?
Thanks,
Tarang
Tarang
Top achievements
Rank 1
 asked on 02 May 2012
0 answers
81 views
Hi,

I have a Radgrid which is used to display some values on the UI. Some fields are simple dropdowns while others are text box.
The issue here is We have used a coding where in if no data is entered then textbox should be default filled with zero.This was because other wise it would have thrown exception "input string not in correct format".

Now with some enhancements there is a need that if I enter nothing in the text box, then the value should be filled with null.
I know this is possible in framework 3.5 but application is bulit on dot Net 2.0 where in concept of "nullabel " wont work.

Have a look at the present coding that fills zero.
decimal rccAggInto2UomMult = 0;
        if (((TextBox)row.Cells[27].Controls[1]).Text != "")
            rccAggInto2UomMult = Convert.ToDecimal(((TextBox)row.Cells[27].Controls[1]).Text);

Any alternate way out ?
Thanks,
Tarang
Tarang
Top achievements
Rank 1
 asked on 02 May 2012
1 answer
106 views
I have a chart which I am trying to get to fit in a specific width on a page, oriented horizontally. Everything is fine except for the Y axis, which has a scale of 1000. The numbers on the Y axis are running together. I think this would be fixed if I were able to set the scale to 2000 instead of 1000, but when I try to do so at runtime, the scale is set to 1000. Here is my code: 
RadChart1.Height = dt.Rows.Count * 50;
           RadChart1.DataSource = dt;
           RadChart1.PlotArea.XAxis.DataLabelsColumn = "Team";
            
           RadChart1.AutoLayout = true;
           RadChart1.PlotArea.YAxis.Step = 2000;
           RadChart1.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Horizontal;
           //RadChart1.AutoTextWrap = true;
           RadChart1.ChartTitle.TextBlock.Text = "Team Totals";
           RadChart1.Legend.Visible = false;
           RadChart1.DataBind();
Evgenia
Telerik team
 answered on 02 May 2012
3 answers
146 views
Hi, I'm using RadWindowManger in a DNN module and calling it up from the server side. However, when it pops up it stays at the center of the screen for a moment, but then pops up centered as if the scroll bar was all the way up. This is more noticeable when the module is further down the page. To the user it will pop up for a moment then move outside of the scroll area if it's scrolled down far enough. Here's the server side code and .ascx code. The .ascx code is located at the very bottom of my .ascx if that matters.

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" KeepInScreenBounds="True"></telerik:RadWindowManager>
<script type="text/javascript">function alertCallBackFn(arg) { }</script>

RadWindowManager1.RadAlert("An error has occured!", 330, 100, "Error", "alertCallBackFn")
Marin Bratanov
Telerik team
 answered on 02 May 2012
9 answers
932 views
I'm having trouble rebinding over javascript, and I think its partly cause i'm confused with master pages and their interactions with the ajaxmanager.

RadGrid1 is the id of my RadGrid
RadAjaxMasterManager1 is the id of my RadAjaxManager in the master page
RadAjaxManager1 is the id of my RadAjaxManagerProxy

I'm getting a javascript error of ajaxMgr is null

here is the javascript code that gets called:
    function ReloadGrid() 
    { 
        var ajaxMgr = $find("<%=RadAjaxManager1.ClientID %>");   
        ajaxMgr.ajaxRequest("RefreshGrid");   
    } 

<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server"> 
    <AjaxSettings>  
        <telerik:AjaxSetting  AjaxControlID="RadAjaxManager1"> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting>    
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 


My master pages RadAjaxManager is this:
telerik:radajaxmanager ID="RadAjaxMasterManager1" runat="server"> 
            </telerik:radajaxmanager> 


Any hints would be greatly appreciated.

John
Gabriel
Top achievements
Rank 1
 answered on 02 May 2012
1 answer
104 views
Hi,
In my aspx page, left side I'm displaying Treeview, right side a Panel which nodes for creating new node.
I'm Creating Treeview dynamically.
I have a Treeview context menu for creating new node.
When user creates new node using context menu(user provides details on right side), and clicks on create, that nodes should be created and that node path to be expanded and selected.
I 've tried like this

string NewNodeName = ViewState["NewChart"] != null ? ViewState["NewChart"].ToString() : string.Empty;
           foreach (RadTreeNode node in TreeLubeChart.GetAllNodes())
           {
               if (node.Text == NewNodeName)
               {
                   node.Selected = true;
                   node.Expanded = true;
               }
           }
But this is not making my work done. I placed this under button click where new node is created, but New node which user provides is creating, but I need its path to be expanded and selected state.


Thanks
Krishna
Plamen
Telerik team
 answered on 02 May 2012
1 answer
198 views
I have added a value (DeptID) to the appointment table which is not one of the Telerik appointment defined fields.  Since I already have the value available in a Session Variable I DO NOT want to have the user select the DeptID value from a drop down in advanced options dialog.  I have set up the datasource which includes the DeptID data field including using it in the select statement.  The data field shows up in the generated html code in both the insert statement and in the select statement as parameters.  What I can't find is how and where to value the parameter with the Session Variable.   So the question is what event and what syntax do I use to set the parameter @DeptID = Session["DeptID"].  As you can see I have set the DeptID as a custom attribute and have a select parameter for the DeptID including the Session Field to the DeptID.

Thanks,
Tom

 <telerik:RadScheduler ID="RadScheduler1" runat="server"
        CustomAttributeNames="DeptID"
        DataKeyField="ID"
        DataSubjectField="Subject"
        DataStartField="Start"
        DataEndField="End"
        DataDescriptionField="Description"
        DataRecurrenceField="RecurrenceRule"
        DataRecurrenceParentKeyField="RecurrenceParentID"
        DataSourceID ="SqlDataSource1"
        onappointmentdatabound="RadScheduler1_AppointmentDataBound" >
        <AdvancedForm />
        </telerik:RadScheduler>
       
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:crozetfdConnectionString %>"
            DeleteCommand="DELETE FROM [Appointments] WHERE [ID] = @original_ID"
            InsertCommand="INSERT INTO [Appointments] ([DeptID], [Subject], [Description], [Start], [End], [RecurrenceRule], [RecurrencePartentID], [Annotations]) VALUES (@DeptID, @Subject, @Description, @Start, @End, @RecurrenceRule, @RecurrencePartentID, @Annotations)"
            OldValuesParameterFormatString="original_{0}"
            SelectCommand="SELECT * FROM [Appointments] WHERE ([DeptID] = @DeptID)"
            
            UpdateCommand="UPDATE [Appointments] SET [DeptID] = @DeptID, [Subject] = @Subject, [Description] = @Description, [Start] = @Start, [End] = @End, [RecurrenceRule] = @RecurrenceRule, [RecurrencePartentID] = @RecurrencePartentID, [Annotations] = @Annotations WHERE [ID] = @original_ID">
            <DeleteParameters>
                <asp:Parameter Name="original_ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="DeptID" Type="Int32" />
                <asp:Parameter Name="Subject" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Start" Type="DateTime" />
                <asp:Parameter Name="End" Type="DateTime" />
                <asp:Parameter Name="RecurrenceRule" Type="String" />
                <asp:Parameter Name="RecurrencePartentID" Type="Int32" />
                <asp:Parameter Name="Annotations" Type="String" />
            </InsertParameters>
            <SelectParameters>
                <asp:SessionParameter DefaultValue="" Name="DeptID" SessionField="DeptID" Type="Int32" />
            </SelectParameters>
            <UpdateParameters>
                <asp:Parameter Name="DeptID" Type="Int32" />
                <asp:Parameter Name="Subject" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Start" Type="DateTime" />
                <asp:Parameter Name="End" Type="DateTime" />
                <asp:Parameter Name="RecurrenceRule" Type="String" />
                <asp:Parameter Name="RecurrencePartentID" Type="Int32" />
                <asp:Parameter Name="Annotations" Type="String" />
                <asp:Parameter Name="original_ID" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
Peter
Telerik team
 answered on 02 May 2012
1 answer
112 views
Hi,
I have made a Default page that call a user control number 1 and that user control number 1 call many users control,one of their contient a Grid view,
How to do to display the Rad Grid in the Default page 
Thankx
Med
Top achievements
Rank 1
 answered on 02 May 2012
3 answers
147 views
Hello

Similiar Thread
http://www.telerik.com/community/forums/aspnet-ajax/splitter/radsplitter-height-100.aspx

To test
http://esm.demo.ipconfigure.com
user: telrik
pass: P@ssword

The Alarm Tab or Archive Tab both don't display the Splitter to the full height.  The height displayed is 1/2 of the available size.  If I enable compatibility mode then it displays full height.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" HeightOffset="58" Skin="WebBlue" BackColor="#D1D8E2" BorderSize="0" PanesBorderSize="0" BorderWidth="0">
    <telerik:RadPane ID="navigationPane" runat="server" Width="244px" Scrolling="Y" Height="100%" BorderStyle="None">
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="NavPaneHeader">
                    Building Directory
                </td>
            </tr>
            <tr>
                <td>
                    <telerik:RadTreeView ID="RadTreeView1"
                                        runat="server"
                                        DragAndDrop="false"
                                        OnClientNodeClicked = "AfterClickHandler"
                                        OnClientNodeExpanded="onClientNodeToggle"
                                        OnClientNodeCollapsed="onClientNodeToggle"
                                        EnableViewState="false">
                    </telerik:RadTreeView>
                </td>
            </tr>
        </table>
    </telerik:RadPane>
    <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" EnableResize="true" />
    <telerik:RadPane ID="map_frame" runat="server" BackColor="#cccccc" Scrolling="None" BorderStyle="None" ContentUrl="map_detail.aspx">
    </telerik:RadPane>
</telerik:RadSplitter>

Dobromir
Telerik team
 answered on 02 May 2012
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?