I am currently working on developing a time card entry application, and evaluating the Telerik ASP.NET Ajax controls.
I have spent the day trying to make the following work, however I have not had any success. Was wondering if you would be able to offer some suggestions?
Scenario:
I have a grid that is populated with data from a SQL query done in code server side (and this works ok). We need to be able to edit this data in grid. I have been trying to make this work in a FormTemplate.
a. Two of the columns (Job and Cost Code) should be drop down lists. They are from different data tables (We'll call them JobCode and CostCode for now) - and there is a foreign key relationship between these two tables.
b. On initial click of the Edit, I need it to:
- Populate the job list
- Select the appropriate job based on that row's data (JobID)
- Populate the cost code list with those available for that job (based on JobID column and key relationship)
- Select the appropriate cost code based on that rows data (CostCodeID)
c. If the Job SelectedIndex is changed, I need it to:
- Populate the cost code list with those available for that job (based on JobID column and key relationship)
- Select the first available item in the cost code drop down list
Any suggestions/ideas?
I have spent the day trying to make the following work, however I have not had any success. Was wondering if you would be able to offer some suggestions?
Scenario:
I have a grid that is populated with data from a SQL query done in code server side (and this works ok). We need to be able to edit this data in grid. I have been trying to make this work in a FormTemplate.
a. Two of the columns (Job and Cost Code) should be drop down lists. They are from different data tables (We'll call them JobCode and CostCode for now) - and there is a foreign key relationship between these two tables.
b. On initial click of the Edit, I need it to:
- Populate the job list
- Select the appropriate job based on that row's data (JobID)
- Populate the cost code list with those available for that job (based on JobID column and key relationship)
- Select the appropriate cost code based on that rows data (CostCodeID)
c. If the Job SelectedIndex is changed, I need it to:
- Populate the cost code list with those available for that job (based on JobID column and key relationship)
- Select the first available item in the cost code drop down list
Any suggestions/ideas?