Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
450 views
I was surprised I didn't find anything in the search on this - how would you go about making the Cancel button the default one for a RadConfirm dialog?
Lee
Top achievements
Rank 1
 answered on 13 Jul 2016
1 answer
141 views
When I bind RadAutoCompleteBox with attribute item. But get RadAutoCompleteBox.Entries (item not have properties attribute)
Ivan Danchev
Telerik team
 answered on 13 Jul 2016
5 answers
131 views
guys, i've got a weird one. when i use this for frozen columns in the mark up, it works perfectly.   
<ClientSettings EnableRowHoverStyle="true" >                 
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="6">
                        </Scrolling>
however when i use this in the code behind - on items databind, i get two headers on the grid. or it actually looks like a grid in a grid.
very strange. anyway i can use this in the code behind where it works perfectly?
 InventoriesRadGrid.ClientSettings.Scrolling.AllowScroll = true;
            InventoriesRadGrid.ClientSettings.Scrolling.UseStaticHeaders = true;
            InventoriesRadGrid.ClientSettings.Scrolling.SaveScrollPosition = true;
            InventoriesRadGrid.ClientSettings.Scrolling.FrozenColumnsCount = 6;
Sandeep
Top achievements
Rank 1
 answered on 13 Jul 2016
1 answer
167 views

is there an option for RadEditor whereby whenever the content inside it change, i can call a javascript function?

 

Joana
Telerik team
 answered on 13 Jul 2016
1 answer
94 views

Hi, I have a nested grid.
I need to pass my bitfield as a key in the Parent Table Relation Key.
Like :

 <ParentTableRelation>
 <telerik:GridRelationFields DetailKeyField="MSE_PK" MasterKeyField="MSE_PK" />  
 <telerik:GridRelationFields
    DetailKeyField="(MST_BitField & MSE_myBit)"
         MasterKeyField="MSE_myBit" />
 </ParentTableRelation>

I need a way to to Something like this is my 'DetailKeyField' .

 

Viktor Tachev
Telerik team
 answered on 13 Jul 2016
1 answer
109 views

Hi All...

So, I've built a Grid programmatically and databound it... so far so good.  I need to add a column containing dropdown list, which would be databound.  I need to be able to use it as an edit button so that when the selected value changed fires, it updates the particular field for that row.  I've found a number of threads similar but for the life of me, don't see this particular scenario addressed...

I'd be very grateful for any assistance!

Thank you!

Eyup
Telerik team
 answered on 13 Jul 2016
7 answers
154 views

Hi

I have implemented an Ajax call when the chart zooms it gets more data at greater granularity the attached Js file (I have to screen shot it). This works fine.

However is there a way of keeping the navigator not zoomed in:

Danail Vasilev
Telerik team
 answered on 13 Jul 2016
4 answers
978 views
I'm using a radcombo box within radgrid itemtemplate.  How do I set the value of a label control on selectedindexchanged. The label control is not within the grid. there's a screen shot attached to give you an idea.

Thanks,
Jose
Top achievements
Rank 1
 answered on 12 Jul 2016
4 answers
154 views

Hello,
I'm using advancedEditTemplate and I am unable to rescue the components inside us click and update events.

I have this code:

 

    <telerik:RadScheduler ID="RadSchedulerAgenda" runat="server"
        Localization-HeaderToday="Hoje"
        Localization-HeaderDay="Dia"
        Localization-HeaderWeek="Semana"
        Localization-ConfirmDeleteTitle="Cancelar Horário"
        Localization-ConfirmDeleteText="Deseja cancelar horário?" Height="100%" RowHeight="50px" Culture="pt-BR" Localization-HeaderMonth="Mês"
        Localization-AdvancedDescription="Descrição"
        Localization-AdvancedSubject="Assunto"
        Localization-AdvancedAllDayEvent="Todo o Dia"
        Localization-AdvancedStartTimeRequired="Inicio"
        Localization-AdvancedRecurrence="Evento Recorrente"
        Localization-AdvancedEditAppointment="Editar Agendamento"
        Localization-Save="Salvar"
        Localization-Cancel="Cancelar"
        Reminders-Enabled="false"
        ShowFooter="False"
        ShowAllDayRow="False"
        ShowNavigationPane="False"
        Skin="Bootstrap"
        DayStartTime="07:00:00"
        DayEndTime="19:00:00"
        WorkDayStartTime="07:00:00"
        WorkDayEndTime="19:00:00"
        DataKeyField="idAgendamento"
        DataSubjectField="Solicitacao.Protocolo"
        DataDescriptionField="Descricao"
        DataStartField="DataInicio"
        DataEndField="DataFim"
        AdvancedForm-EnableCustomAttributeEditing="true"
        AdvancedForm-Modal="true"
        AllowInsert="False"
        OnFormCreated="RadSchedulerAgenda_FormCreated"
        OnNavigationCommand="RadSchedulerAgenda_NavigationCommand"
        OnAppointmentDataBound="RadSchedulerAgenda_AppointmentDataBound"
        OnAppointmentClick="RadSchedulerAgenda_AppointmentClick"
        OnAppointmentDelete="RadSchedulerAgenda_AppointmentDelete"
        OnAppointmentUpdate="RadSchedulerAgenda_AppointmentUpdate" DisplayRecurrenceActionDialogOnMove="True" EnableCustomAttributeEditing="True">

        <AppointmentContextMenus>
            <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                <Items>
                    <telerik:RadMenuItem Text="Abrir" Value="CommandEdit">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem IsSeparator="True">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Categorize">
                        <Items>
                            <telerik:RadMenuItem Text="Não Atendido" Value="1">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="Na Recepção" Value="2">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="Em Atendimento" Value="3">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="Atendido" Value="4">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem IsSeparator="True">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="https://safeweb.com.br/ecommerce/icons/deletered.png">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadSchedulerContextMenu>
        </AppointmentContextMenus>

        <AdvancedEditTemplate>
            <div class="rsDialog rsAdvancedEdit rsAdvancedModal" style="position: relative">

                <div class="rsAdvTitle">
                    <h1 class="rsAdvInnerTitle">Visualizar Agendamento</h1>
                    <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose" CommandName="Cancel" />
                </div>
                <div class="rsAdvContentWrapper">
                    <ul class="rfbGroup">
                        <li class="rfbRow">
                            <telerik:RadTextBox RenderMode="Lightweight" ID="Assunto_RadTextBox" runat="server" Width="100%" Label="Assunto : " CssClass="form-control" ReadOnly="true" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadDatePicker RenderMode="Lightweight" ID="DtInicio_RadDatePicker" CssClass="toDate" Width="50%" runat="server" DateInput-Label="Data/Hora Inicio" Skin="Bootstrap" />
                            <telerik:RadTimePicker RenderMode="Lightweight" ID="HrInicio_RadTimePicker" runat="server" Skin="Bootstrap" TimeView-Interval="00:30" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadDatePicker RenderMode="Lightweight" ID="DtFim_RadDatePicker" CssClass="toDate" Width="50%" runat="server" DateInput-Label="Data/Hora Fim" Skin="Bootstrap" />
                            <telerik:RadTimePicker RenderMode="Lightweight" ID="HrFim_RadTimePicker" runat="server" Skin="Bootstrap" TimeView-Interval="00:30" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadTextBox RenderMode="Lightweight" ID="Nome_RadTextBox" runat="server" Width="100%" Label="Nome/Razão Social : " CssClass="form-control" ReadOnly="true" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadTextBox RenderMode="Lightweight" ID="Documento_RadTextBox" runat="server" Width="100%" Label="Documento : " CssClass="form-control" ReadOnly="true" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadTextBox RenderMode="Lightweight" ID="Email_RadTextBox" runat="server" Width="100%" Label="Email : " CssClass="form-control" ReadOnly="true" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadTextBox RenderMode="Lightweight" ID="Telefone_RadTextBox" runat="server" Width="100%" Label="Telefone : " CssClass="form-control" ReadOnly="true" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadTextBox RenderMode="Lightweight" ID="Produto_RadTextBox" runat="server" Width="100%" Label="Produto : " CssClass="form-control" ReadOnly="true" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadComboBox RenderMode="Lightweight" ID="Atendente_RadComboBox" runat="server" EmptyMessage="Selecione o Atendente" Width="100%" Label="Atendente : " DataSourceID="SqlDataSourceAtendentes" DataValueField="idUsuario" DataTextField="Nome" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadComboBox RenderMode="Lightweight" ID="Status_RadComboBox" runat="server" Width="100%" Label="Status : " DataSourceID="SqlDataSourceStatus" DataValueField="Value" DataTextField="Text" Skin="Bootstrap" />
                        </li>
                        <li class="rfbRow">
                            <telerik:RadTextBox RenderMode="Lightweight" ID="Observacao_RadTextBox" runat="server" TextMode="MultiLine" Width="100%" Label="Observação : " Skin="Bootstrap" BorderWidth="1px" />
                        </li>
                    </ul>

                    <asp:Panel runat="server" ID="Panel1" CssClass="rsAdvancedSubmitArea">
                        <div class="rsAdvButtonWrapper">
                            <asp:LinkButton CommandName="Update" runat="server" ID="LinkButton2" CssClass="rsAdvEditSave" Text="Salvar" />
                            <asp:LinkButton runat="server" ID="LinkButton3" CssClass="rsAdvEditCancel" CommandName="Cancel" Text="Cancelar" />
                        </div>
                    </asp:Panel>

                </div>
            </div>
        </AdvancedEditTemplate>

        <AppointmentTemplate>
            <asp:Label runat="server" ID="teste_lbl" Text='<%# Eval("Subject") %>'></asp:Label>
        </AppointmentTemplate>

        <ExportSettings>
            <Pdf PageTopMargin="1in" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in"></Pdf>
        </ExportSettings>

    </telerik:RadScheduler>

How do I get access to the elements?

Thanks in advance.

 

Ivan Danchev
Telerik team
 answered on 12 Jul 2016
2 answers
169 views

I have a Radgrid nested two levels, parent/child.  When loading the grid I get all values in the parent grid when I just want distinct values on the parent.

 

<telerik:RadGrid RenderMode="Lightweight" ID="grdChartofAccounts" runat="server" AutoGenerateColumns="false" AllowSorting="true" AllowMultiRowSelection="false" OnNeedDataSource="grdChartofAccounts_NeedDataSource">
    <MasterTableView DataKeyNames="JobID" CommandItemDisplay="Bottom">
        <DetailTables>
            <telerik:GridTableView>
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="JobID" MasterKeyField="JobID" />
                </ParentTableRelation>
 
                <Columns>
                    <telerik:GridBoundColumn HeaderText="Task" UniqueName="Task" DataField="TaskID_Job" />
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
            <telerik:GridBoundColumn HeaderText="Job" UniqueName="Job" DataField="JobID" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

protected void grdChartofAccounts_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
    List<tasks> taskList = new List<tasks>();
 
    for (int i = 1; i <= 5; i++)
        for (int x = 1; x <= 5; x++)
        {
            tasks task = new tasks();
 
            task.JobID = i;
            task.TaskID = x;
 
            taskList.Add(task);
        }
 
    DataTable dt = new DataTable();
 
    dt.Columns.Add("JobID");
    dt.Columns.Add("TaskID_Job");
 
    foreach (tasks task in taskList)
    {
        DataRow dr = dt.NewRow();
 
        dr["JobID"] = task.JobID.ToString();
        dr["TaskID_Job"] = task.TaskID;
 
        dt.Rows.Add(dr);
    }
 
    this.grdChartofAccounts.DataSource = dt;
}

 

I've attached two images of my existing output and my desired output.

Keith
Top achievements
Rank 1
 answered on 12 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?