Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
116 views
Hi, Im having problem while using the chart image in the webfarm,
We r using the sqlsession state in our webfarm,
I read some threads in this blog , and for webfarm the telerik customer service said:
The solution for web farm environment would be to implement State server or SQL server session state mode or sticky sessions, ensuring that all the request from one user will be handled by the same server.  
[http://www.telerik.com/community/forums/aspnet-ajax/chart/issue-while-loading-radchart-image.aspx ]

Now my question is why only one machine has to serve the requests for the page i have my charts on that when we are storing our session item in the database?
If the picture stored in the session the picture has to be in the sqlserver , and all of the requests are requesting the same session collection.
Im not that expert about how the exactly sql session mode works but im really interested find the solution or atleast know the reason of this situation.

Thank u very much.
Amir Mohammad
Top achievements
Rank 1
 answered on 18 Sep 2012
1 answer
141 views
Hi , 

I  looking the code to add the Confirmation to "Update" ,"Insert","Cancel" Buttons same like the "delete" Button as given below

  protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if ((e.Item is GridDataItem))
            {
                LinkButton button = e.Item.FindControl("AutoGeneratedDeleteButton") as LinkButton;
                button.Attributes["onclick"] = "return confirm('Are you sure you want to delete " +
                "" + "?')";
            }
        }
Expecting your valuable advise

Regards
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Sep 2012
8 answers
623 views
Hello everyone I'm trying to make these field un-editable (see attached) on edit mode.
I can't make it read only because when the field is gone(read-only) it passes "null" on my SQL Proc

Kindly please help on how to achieve this ?

aj
Top achievements
Rank 1
 answered on 18 Sep 2012
3 answers
406 views
Hi,


  I'm using read grid to bind records, its bing record from datatable, from codebehind. In this rad gridview i'm using rad combo box, check box and aspx label controls etc. So I want to handle the check boxes on selection changed event , while selecting the combox box (inside rad event) selection changed event I want to get value from that combox and  label (also in rad grid) and do some calculations and again need to display in that label. Currently I 'm not getting value from label in that row. . Here I including the code, I want to use code only in client side not server side to do the events of the drop downs in rad grid.

 Please help ....


   <tr><td >
    <asp:UpdatePanel runat="server" id="UpdatePanel">
    <ContentTemplate>
     <telerik:radgrid ID="grdFinalizedInvoice" runat="server"  Width="100%" Height="200px"
            AutoGenerateColumns ="False" AllowPaging="True"    ondeletecommand="grdFinalizedInvoice_DeleteCommand"
            AllowSorting="True" CellSpacing="0" Skin="Office2007" GridLines="None" DataKeyNames="ID" 
           >
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
        <MasterTableView EnableColumnsViewState ="false" TableLayout ="Fixed"  >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>


<ExpandCollapseColumn Visible="True" UniqueName="DeleteItem" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
        <Columns>
        <telerik:gridclientdeletecolumn ConfirmText="Are you sure you want to delete this row?" CommandName ="Delete"
                        HeaderStyle-Width="25px" ButtonType="ImageButton" />
                       
     <telerik:gridtemplatecolumn  UniqueName="tmpxfer" HeaderText ="Job Number" 
                DataField ="ExchCompleteDate" DataType="System.String" >
                       <HeaderStyle Width ="50px"  />
                       <ItemStyle  />
                        <ItemTemplate>
                       
                        <%# PrepareJobNumber()%>  
                       
                        </ItemTemplate>
                    </telerik:gridtemplatecolumn>


          <telerik:gridtemplatecolumn  UniqueName="tmpToName" HeaderText ="Technique"  >
                  <HeaderStyle Width ="105px" />
                         <ItemStyle />
                         <ItemTemplate>
                             
                          
                             <telerik:radcombobox ID="ddlTechnique" runat="server"  Width="90px" Height="150" 
                                        DropDownWidth="130px" ShowDropDownOnTextboxClick="true" 
                                   MarkFirstMatch="true"  AutoPostBack ="true"  Skin="Vista"  
                                        ShowToggleImage="false" AppendDataBoundItems="true"   DataSource ="<%# BindDropDownTechnique() %>"
                                        DataValueField="TechniqueID" DataTextField="Description" SelectedValue='<%# Bind("TechniqueID") %>'
                                        AllowCustomText="false" 
                                   OnSelectedIndexChanged="ddlTechnique_OnSelectedIndexChanged" > 
                                    <Items> 
                                        <telerik:radcomboboxitem Text="" /> 
                                    </Items> 
                                </telerik:radcombobox> 
                                <asp:HiddenField ID="hdnGridTechniqueID" runat ="server" Value ='<%# Bind("TechniqueID") %>' />
                        
                         </ItemTemplate>
                    </telerik:gridtemplatecolumn>
                    <telerik:gridtemplatecolumn DataField="InstrumentGroup" 
                HeaderStyle-Width ="100px" HeaderText="InstrumentGroup" 
                UniqueName="InstrumentGroup">
                       <HeaderStyle Width ="100px" />
                        <ItemTemplate>
                            <telerik:radcombobox ID="rcbInstrumentGroup" 
                                runat="server"  DropDownWidth="130px" Width="85px" 
                                ShowDropDownOnTextboxClick="true" MarkFirstMatch="true" 
                                AutoPostBack="true" AppendDataBoundItems="true"  ShowToggleImage="false"
                                Skin="Vista"  Text='<%# GetInstrumentGroupID(Convert.ToString(DataBinder.Eval(Container.DataItem, "InstrumentGroupDescription"))) %>'
                                DataTextField="Description"   OnSelectedIndexChanged="rcbInstrumentGroup_OnSelectedIndexChanged"
                                DataValueField="InstrumentGroupID"
                              >  
                                                       
                            </telerik:radcombobox>
                        </ItemTemplate>
                    </telerik:gridtemplatecolumn>

                     <telerik:GridTemplateColumn DataField="Instrument" HeaderStyle-Width ="100px" HeaderText="Instrument" UniqueName="Instrument">
                      
                       <HeaderStyle Width ="100px" />
                        <ItemTemplate>
                      <asp:HiddenField ID="hdnInstruemtGrpID" runat ="server" Value ='<%# Bind("InstrumentGroupID") %>' />
                            <telerik:RadComboBox ID="rcbInstrument"   
                                runat="server"  DropDownWidth="130px" Width="85px"  MarkFirstMatch="true" 
                                AutoPostBack="true" ShowToggleImage="false"         
                                Skin="Vista" AppendDataBoundItems="true"                                 
                                DataTextField="Description" ShowDropDownOnTextboxClick="true"  Text='<%# GetInstrumentGroupID(Convert.ToString(DataBinder.Eval(Container.DataItem, "InstrumentDescription"))) %>'
                                DataValueField="InstrumentID"  
                              >     
                                                      
                            </telerik:RadComboBox>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>


                     <telerik:GridTemplateColumn   UniqueName="tmpGridDesc"  HeaderStyle-Width ="300px"  DataType ="System.String" >
                        <HeaderTemplate>
                       <label id="lb1" style ="text-align:center;">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp Description <br /> <font size=1>(check box to add text that will replace the standard description)</font></label>
                    </HeaderTemplate>
                       <ItemStyle  />
                        <ItemTemplate>
                      
                        <telerik:RadComboBox ID="cmbGridDescription"  ClientIDMode ="Static" runat="server" Width="250px"  DataTextField="Description" 
                         DataSource ='<%# BindDropDownPriceListDesc(Convert.ToString(DataBinder.Eval(Container.DataItem, "TechniqueID"))) %>'  >
                        <HeaderTemplate>
                            <ul>
                                <li >Description &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</li>
                                <li >Rate</li>
                            </ul>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <ul>
                                <li>
                                    <%# DataBinder.Eval(Container.DataItem, "Description")%></li>
                                <li>
                                    <%# DataBinder.Eval(Container.DataItem, "Amount")%></li>
                            </ul>
                        </ItemTemplate>
                        </telerik:RadComboBox>
                        <asp:CheckBox ID="chkShowDesc" runat ="server"   Checked= "false" />
                 
                        <asp:TextBox ID="txtInternalNotes" rows=2 cols=160  Width="240px" TextMode=MultiLine Visible ="false" runat="server"></asp:TextBox>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                      <telerik:GridTemplateColumn  HeaderStyle-Width ="95px"  UniqueName="tmpOccured1"   DataType ="System.String" >
                       <HeaderTemplate >
                       <label id="lb" style ="text-align:center;">&nbsp&nbsp&nbsp Units</label>                       
                        <a id="linkLookup" rel="tooltip" title="Hover to see Lookup" >(Lookup)</a>
                        
                    
                       </HeaderTemplate>
                       <ItemStyle  />
                        <ItemTemplate>
                         <%# PrepareUnitsTextBoxLineItems(Eval("Quantity"))%> 
                         <asp:DropDownList ID="ddl_s" runat="server" SelectedValue='<%# GetChargeUnitsID(Convert.ToString(DataBinder.Eval(Container.DataItem, "ChargeUnitsID"))) %>' >
                          <asp:ListItem Text="U" Value="U"></asp:ListItem>
                          <asp:ListItem Text="H" Value="H"></asp:ListItem>
                          <asp:ListItem Text="S" Value="S"></asp:ListItem>
                          <asp:ListItem Text="M" Value="M"></asp:ListItem>
                          <asp:ListItem Text="I" Value="I"></asp:ListItem>
                          <asp:ListItem Text="D" Value="D"></asp:ListItem>
                          <asp:ListItem Text="E" Value="E"></asp:ListItem>
                          <asp:ListItem Text="L" Value="L"></asp:ListItem>
                          <asp:ListItem Text="B" Value="B"></asp:ListItem>
                          <asp:ListItem Text="C" Value="C"></asp:ListItem>
                          <asp:ListItem Text="V" Value="V"></asp:ListItem>
                          <asp:ListItem Text="A" Value="A"></asp:ListItem>
                          <asp:ListItem Text="P" Value="P"></asp:ListItem>
                          <asp:ListItem Text="R" Value="R"></asp:ListItem>
                          <asp:ListItem Text="X" Value="X"></asp:ListItem>
                          <asp:ListItem Text="T" Value="T"></asp:ListItem>
                        </asp:DropDownList>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn  UniqueName="tmpToName2" HeaderStyle-Width ="50px"   >         
                        <HeaderTemplate >
                        <label id="lblHeadRate" style ="text-align:center;">&nbsp Rate <br />&nbsp USD</label>
                       </HeaderTemplate>
                         <ItemStyle />
                        <ItemTemplate>
                           <%# PrepareRateTextBoxLineItems( Eval("Rate"))%> 
                       
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                       <telerik:GridTemplateColumn   UniqueName="tmpOccured3" HeaderStyle-Width ="80px"  HeaderText ="% RTA"  DataType ="System.String" >
                       <ItemStyle  />
                        <ItemTemplate>
                      
                        <telerik:RadComboBox ID ="ddl_Percentage" ClientIDMode ="Static" runat ="server" Width="65px" onclientselectedindexchanging="AllowSelectionChange" >
                          <Items >
                             <telerik:RadComboBoxItem Text ="none" Value= "1" runat ="server"  />
                             <telerik:RadComboBoxItem Text ="20%" Value ="20" runat ="server" />
                             <telerik:RadComboBoxItem Text ="25%" Value ="25" runat ="server" />
                             <telerik:RadComboBoxItem Text ="30%" Value ="30" runat ="server" />
                             <telerik:RadComboBoxItem Text ="35%" Value ="35" runat ="server" />
                             <telerik:RadComboBoxItem Text ="40%" Value ="40" runat ="server" />
                             <telerik:RadComboBoxItem Text ="50%" Value ="50" runat ="server"/>
                             <telerik:RadComboBoxItem Text ="75%" Value ="75" runat ="server"/>
                     
                             <telerik:RadComboBoxItem Text ="100%" Value ="100" runat ="server" />
                             <telerik:RadComboBoxItem Text ="200%" Value ="200" runat ="server"/>
                             <telerik:RadComboBoxItem Text ="300%" Value ="300" runat ="server"/>
                          </Items>
                        </telerik:RadComboBox>
                       
                      
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>   
                       <telerik:GridTemplateColumn  UniqueName="tmpOccured4" HeaderText ="% Discount (incl. RTA)"   DataType ="System.String" >
                       <HeaderStyle Width ="65px" />
                       <ItemStyle  />
                        <ItemTemplate>
                        
                         <%# PreparePerDiscountTextBoxLineItems(Eval("PercentDiscount100"))%> 
                        </ItemTemplate>
                        
                    </telerik:GridTemplateColumn>


                    <telerik:GridTemplateColumn UniqueName="EntendedPrice" HeaderText ="Extended Price" HeaderStyle-Width ="60px"  DataType ="System.String" >
                       <HeaderStyle />
                       <ItemStyle  />
                        <ItemTemplate>
                         <asp:Label id="lblExtdPrice" runat ="server" ClientIDMode ="Static" Text='<%# ExtendedPrice(Eval("DBStatus").ToString(), Eval("Quantity"), Eval("Rate"), Eval("PercentRTA"), Eval("PercentDiscount"), Eval("DiscountAppliesToRTA"))%>'></asp:Label>
                        <asp:HiddenField ID="hdnExtendedPriceItem" runat ="server" ClientIDMode ="Static" Value ='<%# ExtendedPrice(Eval("DBStatus").ToString(), Eval("Quantity"), Eval("Rate"), Eval("PercentRTA"), Eval("PercentDiscount"), Eval("DiscountAppliesToRTA"))%>' />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                     
                   
                      <telerik:GridTemplateColumn UniqueName="tmpJCSiteID"  HeaderText ="Site"  DataField ="JCSiteID" HeaderStyle-Width ="30px" >
                          <ItemStyle />
                        <ItemTemplate>
                         <%# PrepareColumnText(Eval("DBStatus").ToString(), Eval("JCSiteID").ToString())%> 
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                      <telerik:GridTemplateColumn UniqueName="tmpRevenueCode"  HeaderText ="Revenue Code & Cost Center"  DataField ="JobNumber" HeaderStyle-Width ="135px" >
                          <ItemStyle />
                        <ItemTemplate>
                        <asp:Label runat ="server" ID="lblRevenueCost"></asp:Label>
                         <%# PrepareHiddenItems(Eval("DBStatus").ToString(), "EstimateAccountingCode", Eval("AccountingCode").ToString())%>   
                         <%# PrepareHiddenItems(Eval("DBStatus").ToString(), "EstimateCostCenterCode", Eval("CostCenterCode").ToString())%>   
                         <%--<%# PrepareRevenueCost(Eval("DBStatus").ToString(), Eval("AccountingCode").ToString(), Eval("CostCenterCode").ToString())%> --%>
                         <%# PrepareSiteAccountingCodeLabelBox()%> 
                         <%# PrepareItemAccountingCodeTextBox(Eval("AccountingCode"))%> 
                         <%# PrepareSiteAccountDivisionLabelBox()%> 
                         <%# PrepareCostCenterCodeTextBox(Eval("CostCenterCode"))%> 
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
      </Columns>
     
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
    </MasterTableView>
            <HeaderStyle BackColor="Silver" Font-Bold="True" Font-Names="Calibri" 
                Font-Size="Larger" />


<FilterMenu  EnableImageSprites="False"></FilterMenu>
<ClientSettings AllowDragToGroup="True">
<ClientEvents OnRowSelected ="RowSelected"/> 
                <Selecting AllowRowSelect="True"></Selecting>
                <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="275px"></Scrolling>
                <ClientMessages DragToGroupOrReorder="Drag to group" />
            </ClientSettings>
        </telerik:RadGrid>
        </ContentTemplate>
       </asp:UpdatePanel>
        </td></tr>
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Sep 2012
5 answers
224 views
Hi everyone,

I have implemented Rows Drag/Drop in a Radgrid. But when i move my row, i donot get the small dashed line to indicate which row position i am currently at. Someone please suggest me what i am doing wrong?? here is my code


    <telerik:RadGrid ID="grdSearches" runat="server" OnRowDrop="grdSearches_RowDrop"
                        AllowSorting="false" GridLines="None" ShowFooter="false" Skin="Vista"
                        Width="585px" Style="margin-top: 0px" AutoGenerateColumns="False"
                        AllowFilteringByColumn="false" 
                        EnableNoRecordsTemplate="true" OnNeedDataSource="grdSearches_NeedDataSource" >
                        <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="false" EnableRowHoverStyle="true" AllowRowsDragDrop="true" >
                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                            <Scrolling AllowScroll="true" ScrollHeight="136px" UseStaticHeaders="true" />
                        </ClientSettings>
                  
                        <MasterTableView DataKeyNames="SearchID" TableLayout="Auto" AutoGenerateColumns="False" Width="100%" AlternatingItemStyle-Wrap="True">
                        <Columns>
                                <telerik:GridDragDropColumn  HeaderStyle-Width="30px"></telerik:GridDragDropColumn>
                                <telerik:GridTemplateColumn Visible="true" AllowFiltering="false" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="120px" ItemStyle-Width="125px" HeaderText="Actions" >
                                <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton10" CommandName="Update" ImageAlign="Middle" runat="server" Width="15" Height="15" ImageUrl="/_LAYOUTS/Images/edit_active.png"
                                            />
                                        <asp:ImageButton ID="ImageButton40" CommandName="Delete" ImageAlign="Middle" runat="server" Width="15" Height="15" ImageUrl="/_LAYOUTS/Images/delete_available.png"
                                            />
                                 </ItemTemplate>
                                 <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn UniqueName="Description" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="255px" ItemStyle-Width="255px" HeaderText="Saved Searches" DataField="SearchName"></telerik:GridBoundColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="80px" ItemStyle-Width="80px" HeaderText="Move Up" ImageUrl="/_layouts/images/arrGreen.JPG" CommandName="MoveUp" Text="Move Up"></telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="80px" ItemStyle-Width="80px" HeaderText="Move Down" ImageUrl="/_layouts/images//arrRed.jpg" CommandName="MoveDown" Text="Move Down"></telerik:GridButtonColumn>
                            </Columns>
                        </MasterTableView>
                        <HeaderStyle BackColor="#99FFCC" Font-Bold="False" Font-Italic="False" Font-Names="Verdana"
                            Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False" Font-Underline="False"
                            ForeColor="#009999" Wrap="True" />
                    </telerik:RadGrid>
Pavlina
Telerik team
 answered on 18 Sep 2012
1 answer
72 views
Hello,

I have a RadGrid that I'm using to display employee information. I have developed my app on my nice big developer monitors and when I went to preview the app for my manager last night he asked to see it on 800x600 which is what a lot of the users "in the field" will view it on - when I did so the columns did not line up with their respective values. How do I fix that? I'm sure it's got to be a simple fix but I'm not aware of what it is. 

Any help is appreciated. :-)
Pavlina
Telerik team
 answered on 18 Sep 2012
1 answer
81 views
Hi Guys,

We have a query about use of the RadPrompt & RadAlert and if they are the correct control to use. We have investigated and used the forums unsuccessfully to be able to figure it out thus far.

We have a C# function that runs on a user pressing a button. Within the C# function the first section performs some validation, based on the validation we want to be able to prompt a user with a message and give them the option to continue or cancel.

Hard part is we want the C# code to stop processing when they are prompted and based on their response continue on through the function.

So far we have got a RadPrompt that comes up but we have noticed that by the time it is up on the screen the function has actually already finished its processing which makes the users choice pointless.

Let me know what you think and if there is a better control for us to use.

Regards,
Justin 
Marin Bratanov
Telerik team
 answered on 18 Sep 2012
2 answers
163 views
I have been playing around with the new Metro Touch skin and having great success.

I am curious as to the font families used, as well as the sizes and any other CSS embellishments. (if any)

I tried to reverse-engineer from Visual Style Builder, but it's apparently too soon to use this skin as a base for a new one, as it is not listed.

Can anybody tell me how to determine the fonts used by this or any other skin?

I don't see any options in Style Builder, so maybe all of the attributes are inherited from the base CSS that I would define.

Basically what I want to do is to make sure that my menus and other controls match the text fonts in the site.

The solution may be obvious to many, but I don't see where I should look...
Tomica
Top achievements
Rank 2
 answered on 18 Sep 2012
4 answers
197 views

Hello,

Apparently the default ViewMode for the RadEditor ImageManager for SharePoint 2010 is now set as "Thumbnail". The problem is that our clients got used to the "Grid" view displayed as default in the SharePoint 2007 edition.

I'm looking for a simple solution to set the property via the ConfigFile.xml but I can't manage to find one. According to your help page (http://www.telerik.com/help/aspnet-ajax/moss-sp2010-image_manager.html), it seems that it's not possible to change it using the configuration file.

Is there another way to change it or did I miss something ?

Regards,

L.A.

Rumen
Telerik team
 answered on 18 Sep 2012
2 answers
110 views
How do you disable and grey out a grid in javascript?

Thanks in advance

K
Kevin Cauchi
Top achievements
Rank 1
 answered on 18 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?