Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
354 views
Hello 
i have  a problem with Radgrid and RadNumericTextBox
i am using a EditFormType Template that user updates only 2 values
 from the selected row of gridview.

inside that template i am using a RadNumericTextBox to let user insert a 
desired numeric value...
the problem is that when i hit the Update button , NULL value is stored in
database....If i use a standart
asp textbox the value is stored fine.
Could somebody help?






<
telerik:RadGrid ID="RadGrid1" runat="server"  AllowAutomaticUpdates="True"
                                AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
                                AutoGenerateEditColumn="True"
            DataSourceID="SqlDataSource1" GridLines="None"
  
                                PageSize="100" ShowGroupPanel="True" Skin="Default">
                                <ClientSettings AllowDragToGroup="True">
                                    <Selecting AllowRowSelect="True" />
                                    <ClientEvents OnRowDblClick="RowDblClick" />
                                </ClientSettings>
                                <MasterTableView  autogeneratecolumns="False" datakeynames="ic"
                                    datasourceid="SqlDataSource1" EditMode="PopUp" GroupLoadMode="Client">
                                    <GroupByExpressions>
                                        <telerik:GridGroupByExpression>
                                            <SelectFields>
                                                <telerik:GridGroupByField FieldAlias="symbasi" FieldName="symbasi" />
                                            </SelectFields>
                                            <GroupByFields>
                                                <telerik:GridGroupByField FieldName="symbasi" />
                                            </GroupByFields>
                                        </telerik:GridGroupByExpression>
                                    </GroupByExpressions>
                                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                        <HeaderStyle Width="20px" />
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                        <HeaderStyle Width="20px" />
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridBoundColumn AllowFiltering="false" Visible="false" UniqueName="ic" HeaderText="ic" DataField="ic">
                                        <HeaderStyle Width="60px"></HeaderStyle>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn  UniqueName="Symbasi" HeaderText="Σύμβαση" DataField="Symbasi">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Logar" HeaderText="Λογαριασμός" DataField="Logar">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="asset_class" HeaderText="Asset Class" DataField="asset_class">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="poso" HeaderText="Ποσό" DataField ="poso"  dataFormatString="{0:###,##0.00}" >
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="pososto" HeaderText="Ποσοστό" DataField="pososto" dataFormatString="{0:###,##0.00}"  >
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Ekptosi" HeaderText="Εκπτωση" DataField="Ekptosi" dataFormatString="{0:###,##0.00}">
                                        </telerik:GridBoundColumn>     
                                        <telerik:GridBoundColumn UniqueName="Total" HeaderText="Total" DataField="Total" dataFormatString="{0:###,##0.00}">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                     
                                    <EditFormSettings   InsertCaption="Add new item" CaptionFormatString="ic: {0}"
                CaptionDataField="ic" EditFormType="Template" PopUpSettings-Modal="true">
                                        <EditColumn    FilterControlAltText="Filter EditCommandColumn column">
                                        </EditColumn>
                                        <FormTemplate>
                                            
                                            <table ID="Table1" border="0" cellpadding="1" cellspacing="1" width="250">
  
                                                <tr>
                                                    <td>
                                                        Ποσό: </td><td>
                                                        <asp:TextBox ID="TextBox1" Enabled="false" runat="server" Text='<%# Bind("poso","{0:0.00}") %>' > </asp:TextBox></td></tr><tr>
                                                    <td>
                                                        ΕΚΠΤΩΣΗ: </td><td>
                                                       <telerik:RadNumericTextBox
                                                         ID="TextBox10"  
                                                         DbValue='<%#  Convert.ToDouble(Eval("Ekptosi"))   %>'
                                                         runat="server"
                                                         ShowSpinButtons="true" 
                                                         MinValue="0"
                                                         MaxValue='<%# Convert.ToDouble(Eval("poso")) %>'>
                                                         <ClientEvents OnKeyPress="NumericTextBoxOnLoad" />
                                                       </telerik:RadNumericTextBox>
  
                                                    </td></tr><tr>
                                            </tr><tr>
                               
                                 </tr></table><table style="width: 100%">
                                                <tr>
                                                    <td align="right" colspan="2">
                                                        
                                                        <asp:Button ID="Button1" runat="server" CommandName="Update" Text="Update"   />
                                                          <asp:Button ID="Button2" runat="server" CausesValidation="False"
                                                            CommandName="Cancel" Text="Cancel" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </FormTemplate>
  
                                    </EditFormSettings>
                                </MasterTableView>
                               
                            </telerik:RadGrid>

George
Top achievements
Rank 1
 answered on 25 May 2012
1 answer
69 views
Please see the following scenarios, can they be treated as a bugs?

Scenario to reproduce:
1) Type some line of the text
2) Delete some count of characters from the end of line using the backspace
3) Click "Undo"
Result:
the whole line is deleted
When expected:
Deleted characters come back

Separate situation occurs with line breaks:
1) Insert some line breaks
2) Delete last one using backspace
3) Click Undo
Result:
Nothing happens
When expected:
Deleted line break comes back
Rumen
Telerik team
 answered on 25 May 2012
3 answers
153 views
Hi there

I have a very long description field in my radgrid, what I would like to do is display the first 50 chars and then have a mouse over event that will show the full description.

Normally I do this with the <abbr> tag, but not sure how to apply this to a radgrid, or even if there is a built in function to handle something like this?
Jako
Top achievements
Rank 1
 answered on 25 May 2012
4 answers
283 views
The issue I am having here is, if the ParentID of the data item of a node is not present in the data source then the node does not display.  Is there a way around this?  Is there a way to show all nodes regardless if the parent is present or not?  I am also using Web Service LoadOnDemand.
Plamen
Telerik team
 answered on 25 May 2012
2 answers
54 views
Hi,
I am using this Demo to add and remove different docks dynamically. The RadDockZone and RadDockLayout won't be changed so only the docks are dynamically created.

Everything works fine when adding docks and even if I remove a dock and then add a new dock. The problem occurs when I close more than one dock after the other, they dissapear as they should, but then when I add a new one the most recent one created from the closed ones re-appers along with the new one just created.

If you try it in your demo page the problem is that the page redirects to a Page Not Found page. I can't figure out whats the problem

Can you kindly help me.

Michael
Top achievements
Rank 1
 answered on 25 May 2012
3 answers
206 views
I have just started using this pie chart and I have 4 series and all the slices are appearing correctly but 2 are shades of blue and 2 are shades of green. My chart has a legend but the greens and blues are so similar it's difficult to tell which is which!
I have checked out the samples and it's the same there.
Surely there is some mistake? Is there some setting to make it change the default colours, rather than having to manually set the colour of each series?

My chart is as follows:
<telerik:radchart id="RadChart1" runat="server" defaulttype="Pie" skin="Vista" charttitle-textblock-text="" OnItemDataBound="RadChart1_ItemDataBound">
<Series
 <telerik:ChartSeries Appearance-LegendDisplayMode="ItemLabels" Type="Pie" DataYColumn="Meters" />
 </Series>
</telerik:radchart>

and I am binding like this:

RadChart1.DataSource =myDS;
RadChart1.DataBind();

Bex
Bex
Top achievements
Rank 1
 answered on 25 May 2012
1 answer
161 views
What am I doing wrong here?  I am trying to get a formatted Date out of my datepicker in Javascript that is culture sensitive.



function getDate() {
 
    sender = $find('<%= RadDatePciker1.ClientID %>');
    var selectedDate = sender.get_selectedDate();
    var shortDatePattern = sender.get_calendar().DateTimeFormatInfo.ShortDatePattern;
    var formattedDate = sender.get_calendar().DateTimeFormatInfo.FormatDate(selectedDate, shortDatePattern);
    alert(formattedDate);
 
}
Dan
Top achievements
Rank 1
 answered on 25 May 2012
1 answer
104 views
How can we change the default backcolor when sorted?It should not show any color on sorting.
Princy
Top achievements
Rank 2
 answered on 25 May 2012
6 answers
122 views

Hi,

I have ASP.Net AJAX Q1 2012 and would like to know where I can get the non-minimized css files for use as a custom skin?

cheers

Gavin.

Gavin
Top achievements
Rank 1
 answered on 25 May 2012
2 answers
56 views
Is there a quick way to tell if an e.item is in detail view?  I'm having problem with ItemDataBound  and ItemCreated not finding the columns because it in detail view.  I just want to check if it's in detail view and skip the code.

Thank you in advance for you help.
Shinu
Top achievements
Rank 2
 answered on 25 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?