Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
60 views
Hi ,
I am experiencing strange behavior from  RadComboBox located inside Radgrid's edit form template,
if I used  inplace editmod  works.

I have 3 cascading combobox.
When I doing the second  postback (by combobox) fires the ItemCommand.
The  CommandName property lose values. Instead of "InitInsert" is  random .
The combo becomes empty and the EditMode becomes   inplace.

With the same code :
If I use GridEditMode.EditForms the second postback (generated by combos) fires itemCommand_events.
If i use GridEditMode.inPlace the second postback (generated by combos) don't fires itemCommand_events.



Can you send me an example of RadGrid ,GridEditMode.EditForms ,with cascading combobox loaded programmatically? (c #)

Thanks

Antonio Stoilkov
Telerik team
 answered on 30 Dec 2011
1 answer
73 views
Hi all,

I am trying the same thing in given url.
http://demos.telerik.com/aspnet-ajax/scheduler/examples/dbschedulerprovider/defaultvb.aspx

But i am not able to add web config file .

<telerik.web.ui>

        <radScheduler defaultAppointmentProvider="Integrated">

            <appointmentProviders>

                <add name="ReadOnlySchedulerData" type="Telerik.Web.Examples.Scheduler.MyDbSchedulerProvider"

                    connectionStringName="TelerikConnectionString"

                    persistChanges="true" />

            </appointmentProviders>

        </radScheduler>

    </telerik.web.ui>

Please give a sample for how to get data from database and display using radshedular. Please give me full sample code and how to display.

Thanks,
Dhamu.

Helen
Telerik team
 answered on 30 Dec 2011
1 answer
96 views
I'm getting the following error when I click on the edit link in my grid.  Any help would be appreciated.

Specified argument was out of the range of valid values.
Parameter name: index


Aspx:
<telerik:RadGrid ID="grdWebForm" CssClass="infoDisplayGrid" runat="server" Skin="Office2007"
                  AllowPaging="true" OnPageIndexChanged="grdWebForm_PageIndexChanged" 
                  OnPageSizeChanged="grdWebForm_OnPageSizeChanged" PageSize="25"
                  AllowSorting="true" OnSortCommand="grdWebForm_SortCommand" OnNeedDataSource="grdWebForm_NeedDataSource"  OnItemDataBound="grdWebForm_ItemDataBound" 
                  AutoGenerateColumns="false" 
                  OnUpdateCommand="grdWebForm_UpdateCommand" OnDeleteCommand="grdWebForm_DeleteCommand" OnInsertCommand="grdWeForm_InsertCommand" OnPreRender="grdWebForm_PreRender">        
     <PagerStyle AlwaysVisible="true" />
     <MasterTableView DataKeyNames="RTFieldQCId" EditMode="InPlace" CommandItemDisplay="Top">
         <Columns>
             <telerik:GridDropDownColumn UniqueName="FullName" HeaderText="Tech Name" DataField="TechId" ListValueField="TechId" ListTextField="FullName" DropDownControlType="DropDownList"></telerik:GridDropDownColumn>                      
             <telerik:GridBoundColumn  UniqueName="LegacyMeterSerial" SortExpression="LegacyMeterSerial" HeaderText="Legacy Meter #" DataField="LegacyMeterSerial"></telerik:GridBoundColumn>
               
             <telerik:GridDateTimeColumn UniqueName="QCDate" PickerType="DatePicker" HeaderText="Date" DataField="QCDate" DataFormatString="{0:MM/dd/yyyy}"  EditDataFormatString="MMMM dd">
                 <ItemStyle Width="120px" />
             </telerik:GridDateTimeColumn>
             <telerik:GridNumericColumn UniqueName="Score" SortExpression="Score" HeaderText="Score" DataField="Score" ColumnEditorID="GridNumericColumnEditor1"></telerik:GridNumericColumn>
             <telerik:GridNumericColumn UniqueName="MaxScore" SortExpression="MaxScore" HeaderText="Max Score" DataField="MaxScore" ColumnEditorID="GridNumericColumnEditor1"></telerik:GridNumericColumn>
             <telerik:GridBoundColumn  UniqueName="Action" SortExpression="Action" HeaderText="Action" DataField="Action">
             </telerik:GridBoundColumn>                    
             <telerik:GridEditCommandColumn UpdateText="Update" UniqueName="EditCommandColumn" CancelText="Cancel" EditText="Edit">
                 <HeaderStyle Width="85px"></HeaderStyle>
             </telerik:GridEditCommandColumn>        
             <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"  /> 
         </Columns>
           
     </MasterTableView>
</telerik:RadGrid>          
     <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor1" runat="server">
     <NumericTextBox MaxLength="4" EmptyMessage="Ext." runat="server">
         <NumberFormat GroupSeparator="," />
     </NumericTextBox>
 </telerik:GridNumericColumnEditor>

CodeBehind:
protected void grdWebForm_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
 {
     //if (rt_table != string.Empty)
     //{
         grdWebForm.DataSource = GetWebFormData();
     //}
 }
 protected void grdWebForm_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item is GridEditableItem && e.Item.IsInEditMode)
     {
         GridEditableItem editedItem = e.Item as GridEditableItem;
         GridEditManager editMan = editedItem.EditManager;
         GridDropDownColumnEditor editor = editMan.GetColumnEditor("FullName") as GridDropDownColumnEditor;
         List<TechInfo> techList = BuildTechSelectLists(false);
         editor.DataSource = techList; // BuildTechSelectLists(false);
         editor.DataTextField = "FullName";
         editor.DataValueField = "UserId";
         editor.DataBind();
     }
     if (e.Item is GridDataItem)
     {
         GridDataItem item = (GridDataItem)e.Item;
         DataRowView row = (DataRowView)e.Item.DataItem;
         item["FullName"].Text = row["FullName"].ToString();
     }
 }
public DataTable GetWebFormData()
 {
     SqlConnection connection = new SqlConnection(
     ConfigurationManager.ConnectionStrings["ProFieldMeter"].ConnectionString);
     DataTable dt = new DataTable();
     string strquery = "Select qc.RTFieldQCID,qc.TechId,qc.LegacyMeterSerial,qc.QCDate,qc.Score,qc.MaxScore,qc.Attachment,qc.Action, u.Lastname + ', ' + u.FirstName as FullName FROM RTFieldQC qc left join ProFieldCore.dbo.ProfieldUser u on qc.TechId = u.UserId";
     SqlDataAdapter adapter = new SqlDataAdapter(strquery, connection);
     adapter.Fill(dt);
     return dt;
 }
Antonio Stoilkov
Telerik team
 answered on 30 Dec 2011
3 answers
87 views
can anyone tell me please if there are known issues with edit form column number being set.  All of my settings are working except for this one.  any assistance appreciated.  using the latest release and I cannot get the row of the dataset to break into columns.
<EditFormSettings ColumnNumber="2" CaptionDataField="Plaintiffs" CaptionFormatString="Edit Single Record {0}"
                InsertCaption="New Product">
                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                    Width="100%" />
                <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                <EditColumn ButtonType="PushButton" UpdateText="Update record"
                    UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                </EditColumn>
                <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
            </EditFormSettings>
regina
Top achievements
Rank 1
 answered on 30 Dec 2011
6 answers
149 views
Hi,

I'm using RadEditor (telerik v 2010.2.826.35) in my aspx pages. i have customized its default font to Calibri. So, when the  user clicks in the editor to type something, the default font sets to Calibri. Now, i save the content in the editor in database. When I checked the DB entry, I found that the default font (Calibri) is not stored in DB. However, if i change the font in editor while writing, that very font details is stored in the DB.

My requirement is that text entered in the editor should be stored with the default styling as well if no customization is done and not just for customized style.

Can you please suggest me something?


Thanks

Sumit
Rumen
Telerik team
 answered on 30 Dec 2011
1 answer
104 views
I am trying to use the chart control, but things are not going as expected.  I have entered the Data from my query with the columns of data from what i expect to be the smallest to largest.  In the building process DataYColumn = 1, DataYColumn2 = 2,and DataYColumn3 = 4396.  All I end up seeing is one line of data in the Legend and nothing is stacked.

 

 

 

 

 

<telerik:RadChart ID="RadChart3" runat="server" DefaultType="StackedBar100"
        SeriesOrientation="Horizontal" ChartImageFormat="Jpeg"
        DataSourceID="AccessDataSource4" Skin="BabyBlue" Width="500px">
        <Appearance>
            <FillStyle MainColor="239, 255, 254">
            </FillStyle>
            <Border Color="188, 229, 231" Width="8" />
        </Appearance>
        <Series>
<telerik:ChartSeries Name="" Type="StackedBar100" DataLabelsColumn="contactdate By Month"
                DataYColumn="Expr1" DataYColumn2="Sum Of contactdates_custno"
                DataYColumn3="CountOfcustsales">
    <Appearance>
        <FillStyle FillType="Solid" MainColor="194, 230, 252">
        </FillStyle>
        <TextAppearance TextProperties-Color="78, 168, 188">
        </TextAppearance>
        <Border Color="177, 215, 250" />
    </Appearance>
            </telerik:ChartSeries>
</Series>
        <Legend>
            <Appearance Corners="Round, Round, Round, Round, 6"
                Dimensions-Margins="20%, 3%, 1px, 1px">
                <ItemTextAppearance TextProperties-Color="120, 162, 19">
                </ItemTextAppearance>
                <Border Color="194, 212, 109" />
            </Appearance>
        </Legend>
        <PlotArea>
            <XAxis>
                <Appearance Color="226, 218, 202" MajorTick-Color="216, 184, 86"
                    ValueFormat="Percent">
                    <MajorGridLines Color="244, 227, 195" Width="0" />
                    <TextAppearance TextProperties-Color="78, 168, 188">
                    </TextAppearance>
                </Appearance>
                <AxisLabel>
                    <Appearance RotationAngle="270">
                    </Appearance>
                    <TextBlock>
                        <Appearance TextProperties-Color="78, 168, 188">
                        </Appearance>
                    </TextBlock>
                </AxisLabel>
            </XAxis>
            <YAxis>
                <Appearance Color="226, 218, 202" MajorTick-Color="216, 184, 86"
                    MinorTick-Color="216, 184, 86">
                    <MajorGridLines Color="244, 227, 195" />
                    <MinorGridLines Color="244, 227, 195" />
                    <TextAppearance TextProperties-Color="78, 168, 188">
                    </TextAppearance>
                </Appearance>
                <AxisLabel>
                    <Appearance RotationAngle="0">
                    </Appearance>
                    <TextBlock>
                        <Appearance TextProperties-Color="78, 168, 188">
                        </Appearance>
                    </TextBlock>
                </AxisLabel>
            </YAxis>
            <YAxis2>
                <AxisLabel>
                    <Appearance RotationAngle="0">
                    </Appearance>
                </AxisLabel>
            </YAxis2>
            <Appearance Dimensions-Margins="20%, 24%, 12%, 10%">
                <FillStyle MainColor="255, 249, 239" SecondColor="Transparent">
                </FillStyle>
                <Border Color="226, 201, 156" />
            </Appearance>
        </PlotArea>
        <ChartTitle>
            <Appearance Dimensions-Margins="4%, 10px, 10px, 7%">
                <FillStyle MainColor="">
                </FillStyle>
            </Appearance>
            <TextBlock Text="Customers Interested">
                <Appearance TextProperties-Color="232, 140, 0"
                    TextProperties-Font="Verdana, 20pt, style=Bold">
                </Appearance>
            </TextBlock>
        </ChartTitle>
    </telerik:RadChart>

Evgenia
Telerik team
 answered on 30 Dec 2011
4 answers
145 views
I have a radgrid that I am trying to setup a filter template for it.

The column is a checkbox column.  It is a bit field in the database.  
<telerik:GridCheckBoxColumn DataField="Requirement_Received" DataType="System.Boolean"
     HeaderText="Requirement Received?" SortExpression="Requirement_Received" UniqueName="Requirement_Received">
    <HeaderStyle Width="125px" />
 </telerik:GridCheckBoxColumn>

The end users want it to just be a dropdown box with All, Yes, No.  I have tried a few things with no luck.  

I have another column that displays a "Labor Estimate" for an int data type.
The end users would like to have a  drop down list with All, Less than 10, 10 to 40, and more than 40.  Is this possible to do also?
Antonio Stoilkov
Telerik team
 answered on 30 Dec 2011
6 answers
504 views
Hello,

I wonder If somebody knows how to create center align button in RadAlert ? I've tried some css tricks (.rwpopupbutton class) but without success :(

In the attachment there is a picture which describes my request:
Red rounded rectangle shows standard position of button.
Green rounded rectangle is what I need to achieve.

Could you help me please to solve this issue ?

Best regards

Vasssek
Roberto
Top achievements
Rank 1
 answered on 30 Dec 2011
4 answers
138 views
Hi,

i am working on telerik tree view with the following code

var tree = $find("<%= RadTreeView1.ClientID %>");
                        var node = tree.findNodeByText('str');                     
                        node.select();
                    
 var nodes = tree.get_allNodes();
                        for (var i = 0; i < nodes.length; i++) {                      
                            if (nodes[i].get_nodes().get_count() != 0 && nodes[i].get_text()!="") {                             
                                nodes[i].expand();
                            }
                        }

i want to search a node by text. then i want to expand all the tree and also need a click on searched node. above code is not working properly. please guide me.
i shall be very thankful to you for that.

Regards,

Faisal
Bozhidar
Telerik team
 answered on 30 Dec 2011
3 answers
138 views
Hi There,

Thanks for the previous reply's here i was struck up with one problem which is i am unable to access particular page directly using Access Key's such as i am unable to Access any navigate URL page directly without clicking "Enter: instead it is only selected.

Can help me out how can i navigate directly by using access keys with out clicking "Enter".



Thanks in Advance,
T.Ramakrishna.
Sanjay
Top achievements
Rank 1
 answered on 30 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?