Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
I am trying to hide the edit column fro a bound column with user id=25 using getcolumn() method in prerender.But it hides the column for all users.How to hide the column for single user?
Princy
Top achievements
Rank 2
 answered on 25 May 2012
2 answers
1.1K+ views
Hi everyone,
I'd like to run a JS-function wich does several stuff to the available controls, right after the loading of the site.
Now, I tried to us window.onload but the problem is if i use there the $.find method, the page is not yet loaded completely and the return of the $find-call is empty.
Are there other ways to solve this, like other events, which are only called when the page was toatally loaded?
How to use this other possibilities?

Greetings,
Marcel
Marcel
Top achievements
Rank 1
 answered on 25 May 2012
6 answers
125 views
We have an application developed in .net framework 2.0. All rad controls are working fine in IIS6. But when we host the application in IIS 7.0 all controls except rad editor is working fine. The rad editor is showing as a text area. Is there any fix?
josephjijo
Top achievements
Rank 1
 answered on 25 May 2012
1 answer
363 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
72 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
158 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
293 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
56 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
212 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
172 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?