Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
355 views
Hi,

I have the following grid, all the  GridBoundColumn's populate when the grid is loaded but the radcombobox does not. How can I get it to display the current value?  Does anyone have an example of a radgrid where one of the columns is a drop down or combo box?

 


Thanks for any help in advance,

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                <telerik:AjaxUpdatedControl ControlID="Label1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid 
    ID="RadGrid1" 
    DataSourceID="SessionDataSource1" 
    OnItemDataBound = "RadGrid1_ItemDataBound"
    Width="97%"
    ShowStatusBar="True" 
    AllowSorting="True" 
    PageSize="7" 
    GridLines="None" 
    AllowPaging="True"
    runat="server" 
    AllowAutomaticUpdates="True" 
    AutoGenerateColumns="False">
    <MasterTableView 
                TableLayout="Fixed" 
                DataKeyNames="checklistNo" 
                EditMode="InPlace" 
                DataSourceID="SessionDataSource1">
      <Columns>
        <telerik:GridBoundColumn UniqueName="CategoryID" DataField="CategoryID" HeaderText="CategoryID" ReadOnly="True" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="checklistNo" DataField="checklistNo" HeaderText="checklistNo"  Display="False" ReadOnly="True" >
            <HeaderStyle Width="25%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="Related_item_type_label" DataField="Related_item_type_label" HeaderText="Question"  ReadOnly="True">
            <HeaderStyle Width="30%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="Service_impact_category" DataField="Service_impact_category" ReadOnly="True" HeaderText="Service Impact" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
         <telerik:GridTemplateColumn UniqueName="Inspection Result" DataField="INSPECTION_RESULT" HeaderText="Inspection Result">
            <HeaderStyle Width="17%" />   
            <ItemStyle Width="17%" />
            <EditItemTemplate>
               <telerik:RadTextBox Visible="False" AutoPostBack="true" ID="lblInspectionResult" runat="server"  Text='<%#Eval("INSPECTION_RESULT")%>'>
               </telerik:RadTextBox>
               <telerik:RadComboBox visible="True" ID="cbInspectionResult" AppendDataBoundItems="true" runat="server"  DataTextField="INSPECTION_RESULT" DataValueField="INSPECTION_RESULT">
               </telerik:RadComboBox>
            </EditItemTemplate>
         </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn UniqueName="Inspection_Fault" DataField="Inspection_Fault" HeaderText="Fault" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="inspection_comment" DataField="inspection_comment" HeaderText="Comments" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
      </Columns>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents 
              
            OnRowClick="RowClick"
            OnRowDblClick="RowDblClick"
              
            OnGridCreated="GridCreated" 
            OnCommand="GridCommand" />
    </ClientSettings>
</telerik:RadGrid>

,
Judy

Charlyne Zeno
Top achievements
Rank 1
 answered on 16 Dec 2011
3 answers
76 views
Hi, I would like to persist the grid row order after the user reorder it.
I'm almost there, but i cant get the "updated" values from the grid. Whenever I access the e.DestinationGrid.Items or the grid.Items on the RowDrop event, the grid isnt updated yet, so i'm stuck with the old values.

ASPX:
<div>
    <telerik:RadGrid ID="gridSubjects" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" Skin="Telerik" OnDeleteCommand="gridSubjects_DeleteCommand"
        OnNeedDataSource="gridSubjects_NeedDataSource" OnInsertCommand="gridSubjects_InsertCommand"
        OnUpdateCommand="gridSubjects_UpdateCommand"
        onrowdrop="gridSubjects_RowDrop">
        <ClientSettings AllowRowsDragDrop="true" EnablePostBackOnRowClick="True">
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
        </ClientSettings>
        <MasterTableView DataKeyNames="SubjectID,Sequence" InsertItemPageIndexAction="ShowItemOnCurrentPage"
            AutoGenerateColumns="false" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Adicionar"
            CommandItemSettings-RefreshText="Atualizar">
            <CommandItemSettings AddNewRecordText="Adicionar" RefreshText="Atualizar" ExportToPdfText="Export to PDF">
            </CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridDragDropColumn Visible="true" />
                <telerik:GridTemplateColumn DataField="SubjectID" HeaderText="ID" UniqueName="SubjectID"
                    Visible="false" ReadOnly="true">
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Nome" UniqueName="Name" />
                <telerik:GridBoundColumn DataField="Description" HeaderText="Descrição" UniqueName="Description" />
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="SubjectID" DataNavigateUrlFormatString="~/TrainingsControl/Topics.aspx?SID={0}"
                    DataTextField="TopicsCount" DataTextFormatString="Tópicos ({0})" UniqueName="TopicsCount" />
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="QuizID,SubjectID" DataNavigateUrlFormatString="~/TrainingsControl/QuizzesControl/Quiz.aspx?QID={0}&SID={1}"
                    UniqueName="Quiz" DataTextField="QuestionsCount" DataTextFormatString="Questionário ({0})" />
                <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                <telerik:GridButtonColumn ConfirmText="Deseja realmente deletar o módulo?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Confirmação" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="100px"
                    ConfirmDialogWidth="220px" />
            </Columns>
            <EditFormSettings>
                <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <StatusBarSettings LoadingText="Carregando..." ReadyText="Pronto" />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Telerik">
        </HeaderContextMenu>
    </telerik:RadGrid>
</div>


c#
protected void gridSubjects_RowDrop(object sender, GridDragDropEventArgs e)
{
    Subject subject = new Subject();
    Dictionary<int, short> order = new Dictionary<int, short>();
    //I tried the alternative below too
    //foreach (GridDataItem item in gridSubjects.Items)
    foreach (GridDataItem item in e.DestinationGrid.Items)
    {
        int subID = Int32.Parse(item.GetDataKeyValue("SubjectID").ToString());
        short subSeq = Int16.Parse(item.GetDataKeyValue("Sequence").ToString());
        order.Add(subID, subSeq);
    }
    using (Pro10Entities db = new Pro10Entities())
    {
        subject.Reorder(db, order);
    }
}



So, can someone help?
Thanks! And sorry for the english!
Pavlina
Telerik team
 answered on 16 Dec 2011
1 answer
124 views
Hi,
with an IFrame control we are able to zoom the contents with css like so:

#MyFrameID

 

{

 

zoom

 

: 120%;

 

}

However when I try the same with a RadPane it doesn't zoom the contents of the pane, but zooms the whole control
I am wondering how I can achieve the same effect with the RadPane?

Basically I want to add zoom in and zoom out controls that will zoom the radpane in an out.

Richard

Dobromir
Telerik team
 answered on 16 Dec 2011
2 answers
104 views
i am using RadDateTimePicker in modal radwindow(with autosize), and a picker popup is hidden under the borders of modal winodow. Need to scroll to select a value. I don't know if i made it clear. Is there a way to work around this?
Zÿm
Top achievements
Rank 1
 answered on 16 Dec 2011
1 answer
109 views

I'm currently using a global RadLoadingPanel in my master template...

Code:

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Web20"
    IsSticky="true" Style="position: absolute; top: 0; left: 0; height: 100%; width: 100%;"
    InitialDelayTime="200" MinDisplayTime="500" Transparency="30">

The glitches I've noticed are some telerik controls like TAB controls , Radio appears above the transparent layer and are clickable ... The other controls and hmlt links are inaccessible which is how it should be...

Also, the transparent layer doesnt cover the whole page ...

Is there a hack i need to do so that it covers correctly the whole page so that none of the controls are accessible?


Attached is the page where i've hilighted all the glitches...
The Green Hilights denotes accsible controls or section of the page... you will see a semi-transparent layer where the loading image is... at below it cuts off... making everythnig else accessible below.

Pavlina
Telerik team
 answered on 16 Dec 2011
0 answers
72 views
Hi
I encounterred pager can't display NextPrevandNumeric Image issue when I put a Grid in content page. I suppose that this is caused due to some css/styple problem, but I can't figure it out...please help if you have any idea how to fix it, thank you.



Jack Liao
Top achievements
Rank 1
 asked on 16 Dec 2011
4 answers
157 views
Hi
Are there problems with using Generate Local Resource in VS 2008 against the latest version of the rad grid?
After I ran it against a radgrid the edit option stopped working correctly - eg.  filter data displayed in the grid and then edit a row, the grid displays the first page of the none filtered data with one of the rows in that page in edit mode.  removing the meta resourcekey from the rad grid got rid of this problem.

What the recommendation for localising the the latest version?

Thanks
Afework
Top achievements
Rank 1
 answered on 16 Dec 2011
5 answers
179 views
Hi,
I have a three tier hierarchical grid with sqldatasource.I wanna export all of the data in the grid.I've looked the example given in this link.
I added <CommandItemSettings ShowExportToExcelButton="true" ShowExportToWordButton="true"
                ShowExportToPdfButton="true" /> and <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
            <Excel Format="Html" />
        </ExportSettings>
in my aspx page,but I can't make it.
How  I can export the data to pdf?
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Dec 2011
2 answers
159 views
I am trying to attach a client handler to the button click event via the property OnClientClick, but it's not working. Am I missing something here?
Slav
Telerik team
 answered on 16 Dec 2011
2 answers
778 views
Hi,

Must be a tiresome topic, since there are lots of post about this, but still i didnt manage to make it work.
i run IIS 7.5 under Windows Server 2008 R2. and i simply want to show some charts on a simple website.
instead of a chart i always can see the message:
 "The Chart http handler is not registered. Please, manually add the following line to your Web.config httpHandlers section:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.3.1317.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />"


i read here about how i should register the handler:
http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html
i also read here:
http://www.telerik.com/help/aspnet-ajax/introduction-registering-the-httphandlers-on-windows-vista-iis-7-integrated-mode.html

i tried to use the classic mode (pipline) instead of integrated, but then i get either an Error 500 or 404.

the library "Telerik.Web.UI.dll" is in the bin folder of the web application.

if you wanna make me really happy, please tell me what i have to write into my Web.Config.

my current Web.Config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <connectionStrings>
    <-- some connection strings -->
  </connectionStrings>
  <appSettings>
    <-- some settings -->
  </appSettings>
  <system.web>
    <compilation debug="false" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>
    <customErrors mode="Off" defaultRedirect="Error.aspx">
      <error statusCode="404" redirect="/NotFound.aspx" />
    </customErrors>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <handlers>
        <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
        <add name="ChartImage.axd" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
    </handlers>
    <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>
  <system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="999999999" />
      </webServices>
    </scripting>
  </system.web.extensions>
</configuration>

Yves
Top achievements
Rank 1
 answered on 16 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?